Course map

Topic 170 / Advanced

Data privacy and governance: consent, erasure requests

Chapter 10.6 · Privacy, Compliance, and the Secure Lifecycle

What and why

Access control (→ 159–163) and encryption (→ 164) protect data from the wrong parties reading it; privacy governance is about whether the data should exist, be used that way, or still exist at all. Data minimization collects only what's actually needed; purpose limitation uses it only for what the user agreed to; consent records exactly what was agreed to and when; and erasure requests — deleting a person's data on request — must reach every copy, not only the obvious one. Builds on: → 81 (data lifecycle: source of truth, retention, archival, deletion).

Diagram

Principle What it requires Where it's enforced
Data minimization Collect only what's needed At ingestion/intake
Purpose limitation Use data only for the stated purpose Access-control policy
Consent Track what, when, and under what terms a user agreed A consent record store
Erasure Delete every copy on request Primary store + caches + search indexes + backups + derived stores + logs

How it works

  1. Minimize what's collected at intake — data never collected never needs protecting, consenting for, or erasing later.
  2. Limit use to the purpose consent was given for; using data collected for one purpose for an unrelated one breaks the agreement even if the data itself is secure.
  3. Track consent as data in its own right: what was agreed to, when, and under which version of the policy — without this record, there's no way to prove what a user actually agreed to.
  4. On an erasure request, locate every copy: the primary store, any cache (→ 85) holding a derived copy, search indexes, backups (→ 80), and logs.
  5. Caches and backups are the easy misses — a cached value survives until its TTL, and a backup survives until its own retention window, independent of when the primary record was deleted.
  6. Lean on retention schedules (→ 81) to make most data expire on its own, so manual erasure work is the exception, not the main mechanism.

Practical example

(illustrative). A user's erasure request deletes their row from the primary database immediately. A backup taken the previous night, and a search index entry built from the same row, both still contain their data for days afterward. The erasure process has to either wait out the backup's retention window before the request is considered complete, or explicitly purge the backup and index too — and whichever is chosen needs to be documented, not left implicit.

When to use it

  • Use for any system storing personal data — the mechanics here are universal regardless of which specific legal regime applies, and this topic deliberately stays at that mechanical level.
  • Avoid collecting data "just in case it's useful later" — every field collected is something that later needs a consent record, a purpose, and an erasure path.
  • Failure scenarios: an erasure request satisfied in the primary store but missed in a cache, backup, or log, leaving the data recoverable after the user was told it was gone; no consent record at all, so there's no way to prove what was agreed to if challenged; a derived analytics table that silently keeps personal fields after the source record is deleted.
  • Simpler alternative: a system that stores no personal data at all (fully anonymous usage) has no obligation under this topic — but that claim has to be verified carefully, not assumed.

Practice

(Process kind — fill the template on a small real system; 20–30 min, no lab services). For Project 10 (notifications) or Project 20 (multi-tenant SaaS), list every place one user's data could live — primary database, cache, search index, backup, logs, any analytics/derived store — and write the erasure checklist that would actually remove it from each one. Done when every listed location has a specific action, not "handled automatically."

Key takeaway

Privacy governance is deciding what to collect, why, with what consent, and how completely it can be removed — and erasure is only as complete as its weakest copy. Done when you can: for a real system, list every place a user's data lives and the specific action that removes it from each. Used next in → 171 (erasure and consent actions need their own audit trail).

References

None — this topic makes no external claims.

Source directory

Search the guide