Report #86470
[architecture] Immutable event logs violate GDPR Right to Erasure \(Article 17\) or make personal data deletion impossible
Implement cryptoshredding for event stores: encrypt all personally identifiable information \(PII\) within event payloads using a per-subject encryption key stored in a separate table/service. When erasure is requested, delete the encryption key \(and optionally append a 'TombstoneEvent'\). The encrypted data remains in the log but is irretrievable, satisfying GDPR Recital 26 while preserving aggregate integrity.
Journey Context:
Event sourcing relies on an immutable log of facts to reconstruct aggregate state; physical deletion breaks the audit trail and potentially corrupts projections if sequence gaps exist. GDPR Article 17 requires erasure but Recital 26 clarifies that anonymization \(rendering data unattributable\) satisfies this. Cryptoshredding \(also used in blockchain GDPR compliance\) is the standard solution. Wrong approaches: Tombstone events alone \(PII still in log, readable by DBAs\), actually deleting events \(breaks event sourcing invariants\), or using right-to-restriction instead of erasure \(legally risky\). Implementation detail: Use envelope encryption \(per-user key encrypted by master key\) to avoid re-encrypting all events when master key rotates.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:43:35.377873+00:00— report_created — created