fix: address openbao-secrets verify findings

bao_check now compares cert auth roles and policies in OpenBao with
the repository and tries every foreign identity against every role
and without a role name; API and migrations exit with code 2 on
invalid settings; stop-at-start runs its attempts next to the stand's
OpenBao again; openbao-outage checks the exit code, the record and
the restart; run_docker restarts only services started before seed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 15:17:57 +03:00
co-authored by Claude Opus 5.5
parent 3875db4007
commit 4dd73299cf
16 changed files with 699 additions and 83 deletions
+4
View File
@@ -271,6 +271,10 @@ store is unavailable» (`waited_seconds`) — код 1; `error` «Secrets store
OpenBao в записях нет (тексты исключений клиента — класс, статус и путь). Записи загрузки — до
старта телеметрии: только stdout (в Loki — записи продления и возврата, если телеметрия
включена). Журнал аудита OpenBao — stdout контейнера `openbao`, токены и значения в нём — HMAC.
Неверные настройки (в том числе адрес OpenBao `http://…`) — у API «Invalid API settings» (модуль
`startup`), у миграций «Invalid migration settings» (`migrations`) мимо structlog
(`early_stop.write_settings_error`: `loc` и `msg` без значений) и код 2, как «Invalid worker
settings»; до правок verify W2 у них был traceback pydantic и код 1.
## Журнал уборщика (с лабы 4)