-
Type:
Task
-
Resolution: Unresolved
-
Priority:
High
-
Affects Version/s: None
-
Platform
-
Dev
What this is
A record of every consent action that nobody can change later.
Steps
- Write an entry to cm_audit_log for every consent action: action, patient, purpose, status, who did it, source IP.
- Link each entry to the one before it (prev_hash and entry_hash), so any change can be spotted.
- Do not allow the application database user to update or delete the audit log.
- When the DPO exports records for an audit or regulator request, include the consent history, proof details and an audit-log integrity check.
Done when
- Every consent action has an audit entry.
- The application cannot change or delete an entry.
- A changed entry is detected by the integrity check.
Source: DPDPA Compliance Proposal v14, sections 3.2.1, 5, 6 (C24)