Refresh host secrets through the API - #50
Merged
Merged
Conversation
czpython
force-pushed
the
dru-550-exchange-api
branch
2 times, most recently
from
September 14, 2026 12:40
4e15301 to
27662d9
Compare
Add POST /hosts/{host_id}/secrets/{service}/refresh. The API checks
the host and the secret, then orders the exchange on loopback to drop
its value and fetch a new one. A missing host or secret returns 404, a
static secret 409 SECRET_STATIC, and an exchange that did not answer
or an issuer that supplied nothing 503 SECRET_REFRESH with Retry-After.
The route sends no Authorization header to the exchange.
The API reads the exchange address from SECRETS_EXCHANGE_BIND_HOST and
SECRETS_EXCHANGE_PORT, the same settings the exchange binds with. The
doctor reports exchange health. make dev starts the exchange beside the
API, and the deployment docs keep the exchange on loopback in the API
network namespace and say to recreate the three services together.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
czpython
force-pushed
the
dru-550-exchange-api
branch
from
September 14, 2026 12:47
27662d9 to
045cd80
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
POST /hosts/{host_id}/secrets/{service}/refresh. The API checks the host and the secret, then orders the exchange on loopback to drop its value and fetch a new one. A missing host or secret returns404, a static secret409withSECRET_STATIC, and an exchange that did not answer or an issuer that supplied nothing503withSECRET_REFRESHandRetry-After. The route sends noAuthorizationheader to the exchange.The API reads the exchange address from
SECRETS_EXCHANGE_BIND_HOSTandSECRETS_EXCHANGE_PORT, the settings the exchange binds with. The doctor reports exchange health.make devstarts the exchange beside the API. The deployment docs keep the exchange on loopback in the API network namespace and say to recreate the three services together.