fix: address rotation-revocation narrow verify findings

Name restarting both the LB and the replicas when the LB has no ready
replica, state the measured 25 s bound of the LB metrics port, narrow the
missing files of a held identity to its certificate, and cover refusals
and signals during CRL issue with fast tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 17:45:36 +03:00
co-authored by Claude Opus 5.5
parent 10973231a0
commit 452c5953b8
17 changed files with 220 additions and 38 deletions
+3 -2
View File
@@ -828,7 +828,8 @@ class Stand:
"""Чем вернуть неготовый сервис: отозванный leaf — только заменой. LB
без реплик: отозванную `api-client` — заменой; на отозванном или
прежнем leaf `api` реплики работают, а LB их не принимает, и
`rotate_leaf api` ждёт LB — их перезапускает оператор."""
`rotate_leaf api` ждёт LB — их перезапускает оператор, и LB вместе с
ними: его процесс может держать отозванный leaf `haproxy`."""
for identity in sorted(self.revoked):
if identity in LEAVES and (
identity in ("haproxy", "api-client")
@@ -839,7 +840,7 @@ class Stand:
if service == "haproxy":
return (
"run make run_docker first; if the LB still has no ready "
"replica: docker compose restart api"
"replica: docker compose restart haproxy api"
)
return "run make run_docker first"