Repository navigation
feat: reload the broker configuration without restart #61
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6631f3a
feat: reload the broker configuration without restart
JounQin d0a75f4
fix: make fs.watch the primary reload trigger
JounQin 2a16ed6
fix: use the selected config basename and loaded digest
JounQin 85a2de7
fix: keep the poll safety net and test live reload
JounQin 726a0a7
fix: quote the mounted config path and harden the reload test
JounQin ab1deb1
test: isolate the daemon environment and watcher test
JounQin ee7c5b2
test: make the reload suite independent of watch delivery
JounQin 46a7c83
test: wait for the audit record and cover a silent watch
JounQin 864597d
test: bound daemon socket requests
JounQin 6947753
refactor: remove the redundant handler options and poll call
JounQin c9efc14
fix: retry a failed reload digest
JounQin 55cb543
fix: keep a forced reload pending while the file is absent
JounQin 960f1e5
fix: report a broken reload once per content
JounQin b78783c
fix: report an unreadable config once and do not throw from start
JounQin 432ec57
fix: report a new reload failure reason for the same digest
JounQin 44bdb89
fix: follow a symlinked config when rendering compose
JounQin 92f4b44
fix: derive the deployment directory from the config target
JounQin 46b7983
fix: quote compose volume entries as YAML scalars
JounQin 57349de
fix: keep the reloadable config directory off the token path
JounQin 8d6817d
docs: use the mounted config directory in the dev example
JounQin 16d303c
docs: align the config-directory mount advice
JounQin 1715048
docs: note the sidecar config path in the changeset
JounQin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| 'gcb-host': minor | ||
| --- | ||
|
|
||
| Reload `broker.config.yml` without restarting: use a directory watch plus a 5-second safety poll, | ||
| accept `SIGHUP`, keep the last good snapshot on a parse/validation failure, and swap providers | ||
| atomically. The generated sidecar mounts the configuration directory at | ||
| `/etc/git-cred-broker/config` and passes the matching `--config`; the key and refresh token stay | ||
| outside that mount. `socketPath`, `socketMode` and `auditPath` still need a restart. |
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.