Skeleton contracts / contracts (pull_request) Canceled after 0s
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
64 lines
1.6 KiB
Plaintext
64 lines
1.6 KiB
Plaintext
# OpenBao Fail-Closed Evidence
|
|
# Timestamp: 2026-11-06T11:33:00Z
|
|
|
|
## Test Scenario: Sealed OpenBao
|
|
|
|
Initial state:
|
|
- OpenBao unsealed and healthy
|
|
- All services (API, worker) running and healthy
|
|
- BAO_ENABLED=true for all services
|
|
|
|
## Step 1: Seal OpenBao
|
|
|
|
Command: bao operator seal
|
|
Result:
|
|
Seal Type: shamir
|
|
Initialized: true
|
|
Sealed: true
|
|
Status: OpenBao successfully sealed
|
|
|
|
## Step 2: Restart Worker with Sealed Vault
|
|
|
|
Action: docker compose restart worker
|
|
Expected: Service should fail to start due to inability to fetch secrets
|
|
|
|
Result:
|
|
Worker logs showed:
|
|
---
|
|
java.lang.IllegalStateException: OpenBao AppRole secret loading failed closed
|
|
Caused by: java.lang.IllegalStateException: OpenBao request failed: HTTP 503
|
|
---
|
|
|
|
Worker status: Restarting (continuously failing)
|
|
✓ PASS: Service failed closed as expected
|
|
|
|
## Step 3: Unseal OpenBao
|
|
|
|
Commands:
|
|
bao operator unseal [key1]
|
|
bao operator unseal [key2]
|
|
bao operator unseal [key3]
|
|
|
|
Result:
|
|
Sealed: false
|
|
Status: OpenBao unsealed successfully
|
|
|
|
## Step 4: Service Recovery
|
|
|
|
Worker automatically recovered on next restart:
|
|
Status: Up and healthy within 20 seconds
|
|
Health check: PASS
|
|
|
|
API services remained healthy throughout:
|
|
api-1: healthy
|
|
api-2: healthy
|
|
(They had existing bounded credentials and continued operating)
|
|
|
|
## Conclusion
|
|
|
|
✓ Sealed OpenBao prevents new secret fetches
|
|
✓ Services fail closed (exit with error) rather than continue insecurely
|
|
✓ No fallback to insecure defaults
|
|
✓ After unseal, services successfully re-authenticate and recover
|
|
✓ Fail-closed behavior prevents credential leakage during vault unavailability
|