techdiagrams.net
← All templates

Audit & privacy for a regulated platform

Tamper-evident audit logging, maker-checker approvals, tokenized PII with per-user keys, and right-to-erasure implemented as crypto-shredding.

Open in editor — free, no login Download JSON
PII BOUNDARY — RAW DATA NEVER LEAVESpurpose allowed?tokenize PIIencrypt under user keystore tokensprivileged op → 2nd humanproposal + approvalevery action, hash-chaineddestroy key = crypto-shredverify chain integrityBusiness Servicesthe whole app tierConsent Storepurpose × user grantsMaker-Checkerfour-eyes approvalsToken VaultPII ⇄ tokenPer-User Keysone key per userApp Datatokens only — no raw PIIAudit Loghash-chained · append-onlyErasure ServiceGDPR art. 17 executorAuditor / DPOverifies the chaincrypto-shredding: backups are immutable, so you can'tdelete a user from last month's tape. But if their dataonly ever existed under their key — burn the key andevery copy everywhere becomes noise.

What this design does

Compliance features bolted on late become spreadsheets and apologies. Built in, they're four mechanisms: every action lands in a hash-chained audit log that provably hasn't been edited; privileged operations need a second human (maker-checker); raw PII lives only in a tokenization vault, encrypted with per-user keys; and 'right to be forgotten' is executed by destroying the user's key — crypto-shredding — which erases them from every backup ever taken, instantly.

The patterns it composes

Import it, attach your own numbers, and verify the design against failures — or read the engineering notes.