Implement lab 7 mTLS OpenBao and certificate rotation

This commit is contained in:
2026-11-20 20:39:14 +03:00
parent 1416ea25e2
commit 1b10180092
17 changed files with 228 additions and 39 deletions
+14
View File
@@ -0,0 +1,14 @@
# 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:
```sh
docker compose exec openbao bao operator init -key-shares=3 -key-threshold=2
docker compose exec openbao bao operator unseal
docker compose exec openbao bao operator unseal
docker compose exec openbao bao secrets enable -path=secret kv-v2
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.