Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

authorized_keys.go: Provide Reload on authorized_keys - #5

Merged
muntac merged 1 commit into
concourse:masterfrom
cycloidio:gl_authorized_keys_reload
May 21, 2020
Merged

muntac merged 1 commit into
concourse:masterfrom
cycloidio:gl_authorized_keys_reload

Conversation

@gaelL

@gaelL gaelL commented Mar 10, 2020 •

Copy link
Copy Markdown
Contributor

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
Reload method.

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 AuthorizedKeys file following an API call.
You can also catch for example a signal like SIGUSR1 sent to your running application to trigger a reload of AuthorizedKeys file.

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]>
@gaelL

gaelL commented Apr 16, 2020

Copy link
Copy Markdown
Contributor Author

hi, is there any feedbacks about this pull request ?

@muntac

muntac commented Apr 29, 2020

Copy link
Copy Markdown
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 concourse/flag package?

@gaelL

gaelL commented May 13, 2020

Copy link
Copy Markdown
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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants