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
+19
View File
@@ -78,6 +78,25 @@ services:
memory: ${BENCH_S3_MEMORY:?run make bench}
memswap_limit: ${BENCH_S3_MEMORY:?run make bench}
# OpenBao прогона (change openbao-tooling, design, решение 6): тот же сервис
# основного файла (образ, config.hcl, слушатель mTLS, healthcheck,
# cap_drop) в каждом свежем стенде рабочих профилей; init, unseal, сведение
# и наполнение паролями прогона делает run.py (bao.py ready) до
# postgres-bootstrap и миграций. Порт основного файла —
# 127.0.0.1:${BAO_OUT_PORT} (свободный порт метки из окружения run.py) —
# единственный порт стенда на хосте и только для оркестратора; volume
# основного файла уходит с down -v проекта. Лимиты — рабочего стенда, без
# swap и без перезапуска
openbao:
container_name: mtusi-bench-openbao
restart: "no"
deploy:
resources:
limits:
cpus: ${BENCH_BAO_CPUS:?run make bench}
memory: ${BENCH_BAO_MEMORY:?run make bench}
memswap_limit: ${BENCH_BAO_MEMORY:?run make bench}
# уборщик незавершённых загрузок (design change upload-consistency,
# решение 9) описан, как s3; сервис не запускается: старт стенда
# перечисляет сервисы, реплики — с --no-deps. Профиль сверки (change