Wire API and worker secrets through OpenBao AppRole
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-20 20:56:40 +03:00
parent 1b10180092
commit 10aa0bf55a
7 changed files with 128 additions and 4 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# OpenBao operator bootstrap
The service runs in server mode with file-backed persistent storage, never in dev mode. The operator initializes and unseals it interactively; root token and unseal keys must not be written to the repository:
The service runs in server mode with file-backed persistent storage, never in dev mode. `openbao-init` performs the reproducible local initialization and AppRole issuance; root token and unseal keys are written only to ignored local storage and must not be committed:
```sh
docker compose exec openbao bao operator init -key-shares=3 -key-threshold=2
@@ -11,4 +11,4 @@ docker compose exec openbao bao policy write messenger-api /bao/policies/api.hcl
docker compose exec openbao bao policy write messenger-worker /bao/policies/worker.hcl
```
The application is deliberately not given a root token. Production deployment must add AppRole or workload identity, short TTLs, audit logging, and TLS on the OpenBao listener.
The application is never given a root token. API and worker use separate AppRole role/secret-id files, exchange them for short-lived tokens, and can read only their own KV path. Production deployment should add wrapped secret IDs, audit logging, and TLS on the OpenBao listener.