forked from mtusi2026/mtusi2026lab7
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user