[M-17] Issuer data store breaks the protocol it implements: dirty ops on CA-key records, inconsistent signatures, omits wait_for_tables #29
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#29
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 Issuer implementation uses
dirty_write/dirty_delete/dirty_readfor the most sensitive records (CA keys) while every sibling uses transactions; itsfind(id, ...)argument order andexec(context, fun)shape contradict the protocol's other implementations; it's the only init withoutwait_for_tables— contradicting the invariant documented in AGENTS.md. IssuerManager works around it by bypassing the facade.Evidence
lib/mdid_ws/cert_management/issuer.ex:44-119(dirty ops at :72, :79, :84)Impact
CA-key records skip the transaction/log barrier; any generic protocol call would misbehave for Issuer.
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): Issuer store uses sync_transaction, protocol-conformant find and wait_for_tables (A6).