Backend architecture for sensitive data
Traceability and auditability
Records that work as evidence rather than as logs: append-only, non-repudiation, and the tension between erasure and immutability.
1 article
When the data is sensitive, knowing who saw what and when matters as much as the data. But a record is only useful if it survives someone with permissions trying to rewrite it, and a table with updated_at doesn’t.
Start with the append-only log: what turns it into evidence and what it needs beyond a trigger. Then the physical order of your log, the property that decides what it costs to keep and whether your indexes help, and idempotency when the operation costs money, where the record is the only thing between you and charging twice.