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
+2 -2
View File
@@ -3,9 +3,9 @@
| Actor / component | Trust boundary | Allowed access |
|---|---|---|
| Client | Host → HAProxy | HTTPS only on `8443`; certificate must be trusted by the client |
| HAProxy | Ingress → private Docker network | Routes TLS traffic to health-checked API replicas |
| HAProxy | Ingress → private Docker network | Routes external TLS and presents an `lb-client` certificate to API replicas |
| API | Application network | Reads PostgreSQL/Redis and uses MinIO through service credentials |
| Worker | Application network | Processes queued attachment jobs; no public listener |
| Data services | Private Docker network | No host-published data ports |
The certificate generated by `scripts/bootstrap.py` is self-signed for lab use. Production needs a managed CA, credential rotation, and mutual TLS or an identity-aware gateway for service-to-service authentication.
The certificate generated by `scripts/bootstrap.py` is self-signed for lab use. API replicas require a client certificate signed by the local CA, and only the LB identity is issued for that role. OpenBao uses persistent file storage and separate API/worker policies; the operator performs init/unseal and AppRole rollout without committing root material. Production needs a managed CA, credential rotation, and TLS on the OpenBao listener.