fix: address rotation-revocation re-verify findings

Name only the repeat of rotate_secret while sessions of the previous
PostgreSQL password may stay open, compare KV version time with the
container start when the load record is gone, refuse run_docker and
rolling_update next to a running rotation, defer SIGQUIT, and name the
remaining windows and cases in the trust matrix and threat model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 12:40:25 +03:00
co-authored by Claude Opus 5.5
parent 6b637109de
commit d4a882ddd6
32 changed files with 1371 additions and 215 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ identity `ingress` (change `https-tooling`, design, решение 4).
<identity> --superseded` — все действующие, кроме leaf каталога стенда (нечего — код 0, база та же),
`issue … --not-after YYYYMMDDHHMMSSZ`, `status` называет identity с действующими прежними leaf и отозванный
leaf стенда (`REVOKED`); `revoke --hold` (его зовёт `make revoke_identity`) — `stand` этой identity leaf не
выдаёт, пока не выполнен `rotate`. Изменяющие команды идут по одной на CA (`flock` / `lockf` файла `.lock`
выдаёт, пока не выполнен `rotate` (имя не из списка и неудавшийся отзыв отметки не оставляют; новый CA её не знает; файлов
удержанной нет — `status` `MISSING, held until infra/pki/pki.sh rotate …`). Изменяющие команды идут по одной на CA (`flock` / `lockf` файла `.lock`
каталога оператора; занята дольше `PKI_LOCK_WAIT` — код 2).
`pki_revoke` — только файлы: применяет отзыв `make revoke_identity` (`rotation.md`).
`make run_docker`, `make run_dev` и `driver.py start` зависят от `pki_stand`: стенд из