Skip to content

Refresh host secrets through the API - #50

Merged
czpython merged 1 commit into
mainfrom
dru-550-exchange-api
Sep 14, 2026
Merged

czpython merged 1 commit into
mainfrom
dru-550-exchange-api

Conversation

@czpython

@czpython czpython commented Sep 14, 2026

Copy link
Copy Markdown
Owner

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 with SECRET_STATIC, and an exchange that did not answer or an issuer that supplied nothing 503 with SECRET_REFRESH and 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 settings the exchange binds with. The doctor reports exchange health. make dev starts 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.

@czpython
czpython force-pushed the dru-550-exchange-api branch 2 times, most recently from 4e15301 to 27662d9 Compare September 14, 2026 12:40
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
czpython force-pushed the dru-550-exchange-api branch from 27662d9 to 045cd80 Compare September 14, 2026 12:47
@czpython
czpython merged commit 1051596 into main Sep 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant