feat: run a per-run OpenBao for failure checks, bench, CI and driver stands

Every stand with its own storages now brings up its own OpenBao and acts
as its operator: materials live in the run's temporary directory and are
removed on any outcome; the working stand's OpenBao is never touched.

- make failure_checks: own OpenBao, 20 s / 60 s token roles, six new
  OpenBao fault checks, hook actions and the secrets log summary
- bao.py rewrite and waiting for the active node after unseal
- bench/: OpenBao in every fresh stand, "before" variants get secrets
  via ${...} references, passport stand.secrets and limits.openbao
- CI job: BAO_ADDRESS, run OpenBao operator, override with openbao,
  cleaner and migrate pairs, test_ci_override.py
- driver: shared temporary stand for freeze-lb and reconcile-signal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 18:21:57 +03:00
co-authored by Claude Opus 5.5
parent 40cc91b346
commit 6353889349
28 changed files with 2860 additions and 200 deletions
+14
View File
@@ -48,9 +48,23 @@ services:
# API (docker compose run) и worker — без телеметрии: сервисы телеметрии
# стенд не запускает, методика и сроки прежние (design change
# otel-telemetry, решение 20)
# Срок ожидания OpenBao при старте API — 15 с, а не 30: проверка «новый API
# без OpenBao» ждёт его целиком; больше срока запроса (5 с, валидатор).
# Значение run_failures.py передаёт тестам (FAULT_SECRETS_STARTUP_TIMEOUT_S;
# change openbao-tooling, design, решение 2)
api:
environment:
TELEMETRY__ENABLED: "false"
SECRETS__STARTUP_TIMEOUT_SECONDS: "15"
# свой OpenBao прогона (change openbao-tooling, design, решения 1, 2): тот же
# сервис основного файла — образ, config.hcl, слушатель mTLS, healthcheck,
# cap_drop; порт основного файла — только 127.0.0.1:${BAO_OUT_PORT}
# (свободный порт, его ставит run_failures.py в окружение compose) для
# оператора прогона; данные — volume проекта (переживают stop / start,
# уходят с down -v). Без перезапуска: падение не прячется, проверки сами
# останавливают, запускают, запечатывают и распечатывают его (hook)
openbao:
restart: "no"
# свой брокер со своим volume, порт AMQP не публикуется
rabbitmq:
ports: !reset []