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
+4
View File
@@ -1458,6 +1458,10 @@ def _loaded_modules(imports: str) -> set[str]:
code = (
"import json, sys\n"
# глобалы клиентов API берут секреты из OpenBao (change
# openbao-secrets): подстановка кодом теста, без сети
"from src.infra.secrets import substitute_for_tests\n"
"substitute_for_tests('api')\n"
f"import {imports}\n"
"prefixes = ('opentelemetry.sdk', 'opentelemetry.exporter',\n"
" 'google.protobuf', 'requests')\n"