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
+15
View File
@@ -43,6 +43,17 @@
# права шлюзов (infra/otel/*-gateway.cfg, gateway.cfg, haproxy.cfg) = DNS
# SAN этих строк — сверяет быстрый тест.
#
# openbao, cleaner, migrate, bao-operator (change openbao-secrets, design,
# решение 7): openbao — сервер OpenBao (openbao — имя в сети стенда,
# localhost — порт на хосте для консоли и оператора); cleaner и migrate —
# вход уборщика и миграций в OpenBao (cert auth, роль = CN = имя строки, SAN
# = имя); bao-operator — транспорт команд оператора и проверок к слушателю
# OpenBao (сертификат клиента обязателен), прав в OpenBao он не даёт — их
# даёт root token из каталога оператора; ни одному сервису не отдаётся.
# Leaf api-client, worker, relay служат и OpenBao. Роли входа
# infra/openbao/bao.py и таблица процессов src/infra/secrets/ = CN и SAN этих
# строк — сверяет быстрый тест.
#
# имя профиль SAN форма
haproxy client haproxy bundle
api server api split
@@ -62,3 +73,7 @@ grafana server grafana,localhost split
otel-collector-client client otel-collector split
prometheus-client client prometheus split
grafana-client client grafana split
openbao server openbao,localhost split
cleaner client cleaner split
migrate client migrate split
bao-operator client bao-operator split