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
+18
View File
@@ -163,6 +163,24 @@ def test_bao_tables_match_code_and_identities() -> None:
assert services == {"api", "worker", "relay", "cleaner", None}
def test_rewrite_choices_are_seed_paths() -> None:
"""`bao.py rewrite <путь>` (change `openbao-tooling`, design, решение 5):
выбор аргумента = пути таблицы `SEED`, чужой путь — ошибка argparse."""
bao = _bao()
parser = bao.build_parser()
commands = next(
action
for action in parser._actions # noqa: SLF001
if action.dest == "command"
)
rewrite = commands.choices["rewrite"]
path = next(a for a in rewrite._actions if a.dest == "path") # noqa: SLF001
assert set(path.choices) == set(bao.SEED)
with pytest.raises(SystemExit) as error:
parser.parse_args(["rewrite", "postgres/postgres"])
assert error.value.code == 2 # noqa: PLR2004
def test_identity_rows_of_openbao() -> None:
"""Строки списка identity change: сервер `openbao` (SAN `openbao`,
`localhost`), клиенты `cleaner`, `migrate`, `bao-operator`."""