fix(devops): enable OpenBao in Swarm and fix healthchecks

- Enable OpenBao + init sidecar in Swarm compose (was commented out)
- Fix healthcheck to accept uninitialized/sealed vault states
  (add ?uninitcode=200&sealedcode=200 to /v1/sys/health)
- Replace nc-based healthcheck with wget in dev compose
- Add ORCHESTRATOR_URL env var to API service in Swarm compose
- Uncomment OpenBao volumes in Swarm compose

The healthcheck was returning HTTP 501 for uninitialized vault,
causing Swarm to restart OpenBao before init sidecar could run.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-11 19:38:34 -06:00
parent 6a5a4e4de8
commit b3c0f51dc9
3 changed files with 65 additions and 37 deletions

View File

@@ -40,7 +40,7 @@ services:
- wget
- --spider
- --quiet
- http://localhost:8200/v1/sys/health?standbyok=true
- http://localhost:8200/v1/sys/health?standbyok=true&uninitcode=200&sealedcode=200
interval: 10s
timeout: 5s
retries: 5