[M-12] CRL lifecycle: revoked-before-publish, no retry/scheduler, concurrent publishes can tear the file, no nextUpdate/CRLNumber #24
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#24
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
The record is marked revoked before the CRL publish; if publish fails the client gets 500 but the record stays revoked and the on-disk CRL is stale forever (nothing re-publishes). Two concurrent revocations can interleave writes to the same crl.crl path (torn reads by relying parties). revocation reason is hardcoded
:unspecified; nextUpdate/CRLNumber are left to the library defaults.Evidence
lib/mdid_ws_web/controllers/cert_management_controller.ex:423-434lib/mdid_ws/cert_management/crl_publisher.ex:22-31, 55-57, 97-106, 115Impact
Stale or torn CRLs served to relying parties; no revocation-reason fidelity.
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): per-issuer serialized publish, temp-file rename, nextUpdate, increasing CRLNumber, real reasons, CrlRepublisher retry (A5).