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
+18
View File
@@ -254,6 +254,24 @@ pass». Модуль `attachment_cleanup_service`: «Finished staging cleanup pa
(журнал за время команды без credentials).
- Stack trace — только в лог, никогда в ответ.
## Журнал секретов процесса (с change `openbao-secrets`)
Спек `service-logging`, «Журнал секретов процесса»; правило `secrets.md`. Модуль `secrets`, поля
`process` и `role`: при старте — `info` «Loaded process secrets» (`address`, `paths`, `versions`,
`token_ttl_seconds`, `token_renewable`, `token_policies`, `waited_seconds`) раньше «Started …»;
`warning` «Ignored secret settings» (`fields` — имена полей секретов из окружения, `.env`,
`config.toml`); `warning` «Waiting for secrets store» (`error_type`, один раз), `error` «Secrets
store is unavailable» (`waited_seconds`) — код 1; `error` «Secrets store refused access» (`reason`
— `login` / `permission` / `missing`, `status`, `path`) и «Secret field is missing» (`path`,
`field`) — код 2. В работе: `info` «Logged in to secrets store again» (`reason` — `max_ttl`,
`expired`, `renew_refused`), `warning` «Secrets store is unavailable» (одна на отказ), `info`
«Secrets store is available again», `warning` «Secret version changed» (`path`, `loaded_version`,
`current_version`), `debug` «Renewed secrets token», `error` «Secrets renewal failed»
(`error_type`). Значений секретов, токенов и accessor, содержимого сертификатов и тел ответов
OpenBao в записях нет (тексты исключений клиента — класс, статус и путь). Записи загрузки — до
старта телеметрии: только stdout (в Loki — записи продления и возврата, если телеметрия
включена). Журнал аудита OpenBao — stdout контейнера `openbao`, токены и значения в нём — HMAC.
## Журнал уборщика (с лабы 4)
Спек `service-logging`, «Журнал уборщика»; design change