feat: rotate and revoke credentials on the running stand

Add operator commands for leaf and secret rotation, identity revocation
and CRL renewal without rebuilding images, and a drill under load.
A rejected PostgreSQL role password is now 503 instead of 500.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 06:46:55 +03:00
co-authored by Claude Opus 5.5
parent 21b8a08e46
commit c40fbef36a
40 changed files with 5804 additions and 127 deletions
+6
View File
@@ -99,3 +99,9 @@ student_test` его не собирает. В образ не попадает
`config.hcl`, compose. Тесты точек входа процессом (`test_client_tls.py`, `test_broker_tls.py`,
`test_telemetry_tls.py`) дают действующие файлы `SECRETS__*`, чтобы дойти до проверяемого поля, а
процесс, который должен дойти до OpenBao, — закрытый порт и короткий срок ожидания.
- С change `rotation-revocation`: `unit/test_rotation.py` (импорт `infra/rotation/rotation.py` по пути:
`LEAVES` = `identities.conf` и `secrets` compose, `SECRETS` = `bao.SEED` и мосты compose, порядок
шагов на `FakeStand`, коды, фазы, сигналы, `.env`, runtime API LB), `unit/test_pki_rotation.py`
(настоящий `pki.sh` во временных каталогах), `unit/test_db_errors.py` (SQLSTATE → недоступность),
отзыв токенов — `unit/test_bao_operator.py`, истёкший leaf — `unit/test_api_tls.py`. Новый шаг команды
ротации — метод `Stand`, чтобы `FakeStand` его записал.