[M-13] Durability: async :mnesia.transaction for issuance/revocation — sync_transaction (wrap_with) implemented but never called #25
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#25
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
All data stores use async transactions (disc dump lag). A crash right after HTTP 201 can lose the issuance record while the client holds a real certificate (OCSP then answers
unknown; local revocation impossible). Every store already implementswrap_with→sync_transactionwith zero callers.Evidence
lib/mdid_ws/oauth/client_data_store.ex:42, 103-105Impact
Certificate/state divergence after crashes — integrity issue for a CA.
Fix
sync_transactionfor issuance and revocation writes (the tooling already exists)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): stores write via sync_transaction (MnesiaStore, Issuer) (A5).