[M-10] Renewal leaves the superseded local certificate good; revokes the remote cert before the replacement exists #22
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
Renewal creates a new record but never revokes the prior local record (only remote ClcData is revoked) — old and new certs both answer OCSP
goodand the old serial is absent from the CRL. Worse, the still-valid remote cert is revoked before the new one is generated; a mid-flight failure leaves the subscriber with nothing.Evidence
lib/mdid_ws/cert_management/renewal.ex:153-181— new record, old untouchedrenewal.ex:369, 384-415— revoke-then-issue orderingImpact
Two simultaneously-valid certs per identity (revocation semantics broken); availability hit for subscribers on failed renewals.
Fix
Line numbers refer to the initial import commit
282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).Verified fixed on main (
1b6216b): renewal issues the replacement first, then revokes the superseded local cert and republishes the CRL (A5).