-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure joining nodes are immediately trusted #89
Commits on Mar 7, 2024
-
internal/rest/resources: Clearer error for unsuccessful join attempts
Signed-off-by: Max Asnaashari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 69fdacb - Browse repository at this point
Copy the full SHA 69fdacbView commit details
Commits on Mar 8, 2024
-
internal/rest/resources: Allow unauthenticated connections to /cluste…
…r/1.0 Untrusted systems should still be able to view this non-sensitive information. Signed-off-by: Max Asnaashari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5dacfbb - Browse repository at this point
Copy the full SHA 5dacfbbView commit details -
internal/daemon: Apply and update daemon config in StartAPI
Returns a copy of the config so that the upcoming non-cluster member support can utilize it, even though it's set to _ at the moment. Signed-off-by: Max Asnaashari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 84eb892 - Browse repository at this point
Copy the full SHA 84eb892View commit details -
internal/trust: Clean up StartAPI
This moves some of the logic in StartAPI out into other helpers to make it easier to read, and prevent duplication of those actions. This includes detecting when a cluster is finished comparing its schema version to other members, and obtaining clients for the whole cluster to send a notification. Signed-off-by: Max Asnaashari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2efa124 - Browse repository at this point
Copy the full SHA 2efa124View commit details -
internal/rest/client: Add SetClusterNotification helper
Signed-off-by: Max Asnaashari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1a9763b - Browse repository at this point
Copy the full SHA 1a9763bView commit details -
internal/rest/resources: Reorganize authentication handlers
Moves the authentication handlers out into their own function that is exported and can be used to facilitate finer control of authentication per-endpoint. Additionally adds a new RestrictNotification AccessHandler so that untrusted endpoints that are re-used for cluster notifications can restrict those communications only to trusted systems. Signed-off-by: Max Asnaashari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 146534a - Browse repository at this point
Copy the full SHA 146534aView commit details -
internal/rest/resources: Add endpoint for registering local cluster r…
…ecords on join Previously, local records weren't updated until the next heartbeat, except on the system that handled the join request. This adds a new method PUT to /cluster which will forward a request to every system, instructing it to add the newly added node to its store. As a result, the node forwarding a join request to a leader will no longer also implicitly trust whoever sent the request, as the token won't have been validated, and the endpoint does not have authentication. Join requests now have the RestrictNotification AccessHandler set so a request sent with the cluster notification flag will go through authentication. Lastly, as none of the methods on this endpoint should be called while the node is uninitialied, `AllowedBeforeInit` is set to false. Signed-off-by: Max Asnaashari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a363ca8 - Browse repository at this point
Copy the full SHA a363ca8View commit details -
internal/daemon: Register cluster members before calling PreJoin or O…
…nNewMember Ensures that each cluster member has actually recorded the joining node in their local trust store before executing the new-member hooks. Signed-off-by: Max Asnaashari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5b7f77e - Browse repository at this point
Copy the full SHA 5b7f77eView commit details -
internal/state: Ensure database is open before access
Signed-off-by: Max Asnaashari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d0a01c7 - Browse repository at this point
Copy the full SHA d0a01c7View commit details