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:
+2
-1
@@ -416,14 +416,15 @@ cmd_stand() {
|
||||
if [ -z "$reason" ]; then
|
||||
describe_cert "valid $name" "$PKI_STAND_DIR/$name.crt"
|
||||
elif [ -f "$held_dir/$name" ]; then
|
||||
echo "held $name: $reason; revoked by make revoke_identity, a new leaf only from make rotate_leaf IDENTITY=$name"
|
||||
case $reason in
|
||||
missing | "bundle missing")
|
||||
echo "held $name: $reason; revoked by make revoke_identity"
|
||||
# каталог стенда создан заново: стенд для rotate_leaf не
|
||||
# поднять, а прежние leaf остальных ещё действуют. Файлы
|
||||
# всех таких identity нужны разом; шаги — и в rotation.py
|
||||
echo "held $name: compose cannot start without its files; to return it: $(held_missing)make stop; make bao_unseal; make run_docker; make pki_renew"
|
||||
;;
|
||||
*) echo "held $name: $reason; revoked by make revoke_identity, a new leaf only from make rotate_leaf IDENTITY=$name" ;;
|
||||
esac
|
||||
else
|
||||
echo "reissue $name: $reason"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user