forked from mtusi2026/mtusi2026lab7
Wire API and worker secrets through OpenBao AppRole
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user