feat: load process secrets from OpenBao via cert auth

OpenBao 2.7.3 (raft, TLS 1.3 with client certificates) holds the
PostgreSQL role passwords, the Valkey password and the S3 keys; each
process logs in with its own mTLS identity, reads only its paths and
renews its token in the background. Operator init, unseal, configure
and seed go through infra/openbao/bao.py and make bao_*; checks are
make bao_check and driver.py openbao-outage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 13:55:09 +03:00
co-authored by Claude Opus 5.5
parent 4dd4a957be
commit 64210dace0
64 changed files with 6709 additions and 321 deletions
+26
View File
@@ -0,0 +1,26 @@
# Политика worker обработки вложений (change openbao-secrets, design, решения
# 6–7). Вход — роль auth/cert/certs/worker: identity worker (CN), DNS SAN
# worker. Только read своих путей KV v2 messenger/data/…: пароль роли worker
# PostgreSQL и ключи пользователя worker S3; учётных данных API, уборщика и
# миграций нет, metadata/, список, запись и системные пути не выдаются.
# Шаблонов путей нет, политики default у токена нет. Своим токеном — только
# просмотр, продление и отзыв.
path "messenger/data/postgres/worker" {
capabilities = ["read"]
}
path "messenger/data/s3/worker" {
capabilities = ["read"]
}
path "auth/token/lookup-self" {
capabilities = ["read"]
}
path "auth/token/renew-self" {
capabilities = ["update"]
}
path "auth/token/revoke-self" {
capabilities = ["update"]
}