Проверка изоляции секретов OpenBao

This commit is contained in:
EgorAnti
2026-11-27 09:26:55 +03:00
parent a7463797e6
commit 68f14d6563
5 changed files with 99 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
| Grafana → backends | HTTPS/mTLS service endpoints | Service CA verify-full; datasource CA/cert/key injected at runtime from files | Отдельный cert SAN `spiffe://hla-lab7/grafana`; Prometheus exact SAN allowlist | Leaf 30 d, not stored in provisioning Git | No cert/foreign CA denied; query allowed | **PASS для transport/identity; backend fine-grained query ACL ограничен single-tenant режимом** |
| API Agent → OpenBao | `https://openbao:8200` | TLS verify; service CA + SAN `DNS:openbao` | AppRole `messenger-api`: read только собственного KV data/metadata; нет sys/auth/root/worker | Renewable token 15 min, max 1 h; re-auth; SecretID 24 h | `test-openbao-policies.ps1`: own path allowed; чужой path/policy write denied | **PASS (runtime test на initialized стенде)** |
| Worker Agent → OpenBao | `https://openbao:8200` | TLS verify | AppRole `messenger-worker`: read только собственного KV data/metadata | Независимые token, RoleID и SecretID с теми же TTL | Own path allowed; API path/policy write denied | **PASS (runtime test на initialized стенде)** |
| Agent → API/worker runtime file | Отдельные named volumes | Локальный file handoff; volume не общий между ролями | Agent рендерит allowlisted keys; app mount read-only; неожиданный key отклоняется entrypoint | Render interval 5 min; приложение перечитывает при restart | Нет файла → controlled startup failure после 120 s; чужой volume не mounted | **PASS** |
| Agent → API/worker runtime file | Отдельные named volumes | Локальный file handoff; bootstrap и rendered volumes не общие между ролями | Agent рендерит только 5 allowlisted credential keys; app mount read-only; root/unseal/BAO token отсутствуют | Render interval 5 min; приложение перечитывает при restart | `test-openbao-runtime-boundaries.ps1`: общий volume, writable mount, operator env/material или неожиданный key → FAIL | **PASS** |
| Operator → OpenBao | `https://localhost:8200`, только loopback | TLS + service CA, SAN `localhost` | Init/unseal/root только bootstrap/recovery; file audit включён | 3 shares, threshold 2; shares/root offline; root env удаляется после bootstrap | AppRole не может init/unseal/write policy; извне хоста порт не опубликован | **PASS по конфигурации; init/unseal остаётся ручной операцией** |
| Operator → Grafana | `https://localhost:3000` | TLS verify, service CA, SAN localhost, loopback only | Named admin; anonymous/signup disabled | Local generated password/rotation | Anonymous/app credential denied | **PASS** |
| Operator → MinIO admin | Не публикуется; bootstrap внутри сети | TLS verify | Root/operator отдельно; API/worker его не получают | Rotate after bootstrap/exposure | API/worker `mc admin info` denied | **PARTIAL:** port закрыт/policy test есть; HTTP и root env у init |