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
+5 -1
View File
@@ -386,7 +386,11 @@ git ls-files -z -co --exclude-standard | tar --null -T - -cf - | docker build -t
${POSTGRES_DB:?…}/attachments/` (окружение `s3-bootstrap`, не секрет)
и проверяет по `^[a-z0-9_]+/attachments/$` до любого шага (иначе
«FAILED: cleaner list prefix» и код 1); уборщику его не передают —
свой префикс он строит из имени базы. Новая политика доходит до шлюза
свой префикс он строит из имени базы. Ключи пользователя, кроме текущего
из `.env`, bootstrap удаляет; `S3_KEEP_STALE_KEYS=1` (change
`rotation-revocation`, только явный запуск `make rotate_secret SECRET=s3/…`,
в compose его нет) — не удаляет: прежний и новый действуют вместе до
обычного запуска. Новая политика доходит до шлюза
подпиской, как ключ: проверка списка — с ожиданием. `check` печатает
строки «cleaner key list attachments prefix» (200), «… objects»,
«… other prefix», «… other bucket» (403). Ожидание, пока ключ дойдёт до шлюза: у