This repository was archived by the owner on Apr 20, 2026. It is now read-only.
Repository navigation
authorized_keys.go: Provide Reload on authorized_keys - #5
Merged
Merged
Conversation
add `AuthorizedKeys.Reload` This commit add a Reload method on AuthorizedKeys, allowing a user to reload keys from an AuthorizedKeys file in a running application by calling the new `Reload` method. It is up to the user to implement how use it into an application. To give some example, it could come from an API call or a SIGKILL which trigger a reload of the keys. Signed-off-by: gaelL <[email protected]>
Contributor
Author
|
hi, is there any feedbacks about this pull request ? |
Contributor
|
Hi, @gaelL. Thanks for the PR! This seems fine. Is this for a feature that you'd like to implement in a Concourse related project, or is it something you were going to use on a project of your own where you happen to use the |
Contributor
Author
|
In my case I would like to use it to something related to Concourse but I feel it might be something which could be interesting for others people who want to reload this kind of file without restarting an application. |
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add
AuthorizedKeys.ReloadThis commit add a Reload method on
AuthorizedKeys, allowing a user to reload keysfrom an
AuthorizedKeysfile in a running application by calling theReloadmethod.It is up to the user to implement how use it into an application.
To give some examples, a running application can trigger a reload of
AuthorizedKeysfile following an API call.You can also catch for example a signal like
SIGUSR1sent to your running application to trigger a reload ofAuthorizedKeysfile.