fix(authority): retry transient bootstrap failures with configurable attempts
StandardPluginBootstrapper now retries up to 15 times (2s delay) so the admin user and client seeds converge after PostgreSQL becomes reachable. Exceptions bubble through the retry loop instead of being swallowed per-step. Tests cover the retry path with a FlakyUserRepository that fails once then succeeds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -24,10 +24,11 @@ Authority is the platform OIDC/OAuth2 control plane that mints short-lived, send
|
||||
- CLI/UI for login flows and token management.
|
||||
- Scheduler/Scanner for machine-to-machine scope enforcement.
|
||||
|
||||
## Operational notes
|
||||
- PostgreSQL (schema `authority`) for tenant, client, and token state.
|
||||
- Key material in KMS/HSM with rotation runbooks (`operations/key-rotation.md`).
|
||||
- Monitoring runbook (`operations/monitoring.md`) and offline-import Grafana JSON (`operations/grafana-dashboard.json`).
|
||||
## Operational notes
|
||||
- PostgreSQL (schema `authority`) for tenant, client, and token state.
|
||||
- Standard plugin bootstrap provisioning retries transient storage failures during startup so seeded local users/clients converge after PostgreSQL becomes reachable.
|
||||
- Key material in KMS/HSM with rotation runbooks (`operations/key-rotation.md`).
|
||||
- Monitoring runbook (`operations/monitoring.md`) and offline-import Grafana JSON (`operations/grafana-dashboard.json`).
|
||||
|
||||
## Related resources
|
||||
- ./operations/backup-restore.md
|
||||
|
||||
Reference in New Issue
Block a user