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
+13
View File
@@ -45,6 +45,9 @@ export CI_OTEL_COLLECTOR CI_PROMETHEUS_YML CI_LOKI_YAML CI_TEMPO_YAML \
CI_GRAFANA_DATASOURCES CI_GRAFANA_DASHBOARDS CI_GRAFANA_DASHBOARD_OVERVIEW \
CI_PROMETHEUS_RULES CI_OTEL_GATEWAY_CFG CI_LOKI_GATEWAY_CFG \
CI_TEMPO_GATEWAY_CFG CI_PROMETHEUS_GATEWAY_CFG
# конфигурация сервера OpenBao (change openbao-tooling)
CI_OPENBAO_CONFIG="$(cat infra/openbao/config.hcl)$nl"
export CI_OPENBAO_CONFIG
# файлы PKI прогона (change https-tooling, design, решение 3) — secrets
# override из окружения: каталог стенда, который заполнил make pki_stand
@@ -104,6 +107,16 @@ export CI_PKI_LOKI_PEM CI_PKI_TEMPO_PEM CI_PKI_PROMETHEUS_PEM \
CI_PKI_OTEL_COLLECTOR_CLIENT_KEY CI_PKI_PROMETHEUS_CLIENT_CRT \
CI_PKI_PROMETHEUS_CLIENT_KEY CI_PKI_GRAFANA_CLIENT_CRT \
CI_PKI_GRAFANA_CLIENT_KEY
# OpenBao, уборщик и миграции у OpenBao (change openbao-tooling): пары
# openbao, cleaner, migrate; bao-operator — только файл каталога job
CI_PKI_OPENBAO_CRT="$(cat "$ci_pki_dir/openbao.crt")$nl"
CI_PKI_OPENBAO_KEY="$(cat "$ci_pki_dir/openbao.key")$nl"
CI_PKI_CLEANER_CRT="$(cat "$ci_pki_dir/cleaner.crt")$nl"
CI_PKI_CLEANER_KEY="$(cat "$ci_pki_dir/cleaner.key")$nl"
CI_PKI_MIGRATE_CRT="$(cat "$ci_pki_dir/migrate.crt")$nl"
CI_PKI_MIGRATE_KEY="$(cat "$ci_pki_dir/migrate.key")$nl"
export CI_PKI_OPENBAO_CRT CI_PKI_OPENBAO_KEY CI_PKI_CLEANER_CRT \
CI_PKI_CLEANER_KEY CI_PKI_MIGRATE_CRT CI_PKI_MIGRATE_KEY
# готовность стенда через LB: /health/ready отвечает 200 от API_REPLICAS
# (из .env, по умолчанию 2) разных реплик — X-Instance-Id. Срок 60 с: