OpenBao service configuration and bootstrap
config.hcl configures a TLS listener and persistent file storage; Compose runs OpenBao outside dev mode. bootstrap-openbao.py provisions KV v2 secrets and per-process AppRoles after operator init/unseal.
The API, worker, publisher, migrator and reconciler use separate AppRole credentials and policies. Each policy can read only its own secret/data/messenger/<service> KV v2 path. Service tokens have a 15-minute TTL and a one-hour maximum TTL; AppRole SecretIDs expire after 24 hours. Application code never receives the operator root token.
Operator workflow:
- Generate local keys and bootstrap secrets with the scripts documented in the root README.
- Start the
openbaoservice, runbao operator init, and unseal it using the operator-held shares. Keep the initial root token outside the repository. - Run
python3 scripts/bootstrap-openbao.py --root-token-file <operator-only-file>. It writes non-root AppRole IDs/SecretIDs under ignoredsecrets/openbao/; values are not printed. - Start application services. On a normal restart, the file backend retains OpenBao state and the operator unseals it if required. If a service SecretID expires, provision a replacement and restart that service.
The script provisions distinct paths and identities; secret values originate from local bootstrap files and are not committed. Root token and unseal shares must never be mounted into application containers.