Collect less, protect it, let people see and erase their data: the engineering side of privacy law.
Data privacy is about handling information on real people with care: collect only what you need, keep it safe, use it only for the reason you gave, and let people see and erase it. GDPR is the European Union law that turns these ideas into duties, and many other laws (such as California's CCPA) follow similar lines.
Personal data is any information that can identify a person, directly or together with other data: a name, email, phone number, IP address, device ID, location or account number. Sensitive (special category) data needs extra care: health, biometrics, religion, political views, and so on. The company deciding why and how data is used is the controller. A company handling it on the controller's behalf, such as a cloud or analytics vendor, is a processor.
GDPR says you need a lawful basis to use personal data: for example consent, a contract, a legal duty or a legitimate interest. People (data subjects) also get rights: to access their data, correct it, have it erased, receive a copy in a portable form, and object to some uses.
| Right | In plain words | What engineering needs |
|---|---|---|
| Access | Show me what you hold about me | Find all of a person's data across systems and export it |
| Rectification | Fix wrong data | Update in the source and all derived copies |
| Erasure | Delete my data (the 'right to be forgotten') | Delete or anonymise in every store, with exceptions where law requires keeping it |
| Portability | Give me my data in a usable format | Export in a common machine-readable format such as JSON or CSV |
| Objection / restriction | Stop using my data for some purposes | Flags and filters that downstream jobs respect |
| Withdraw consent | I changed my mind | A consent record that is checked before each use |
| Technique | What it does | Still personal data? |
|---|---|---|
| Pseudonymisation | Replace identifiers with a code. A separate key table links back | Yes. It lowers risk but can be reversed |
| Anonymisation | Remove or change data so a person can no longer be identified, even with other data | No, if it is truly irreversible. This is hard to do well |
| Encryption | Scramble data so only key holders can read it | Yes, while the key exists |
| Aggregation | Keep only totals and averages | Often no, but small groups can leak identity |
An illustration, not legal advice. The weights and stores are examples, and real systems have more copies than eight. What counts as βerasedβ and how fast depends on your law and your lawyers.
| Term | Meaning in easy words |
|---|---|
| Personal data | Any information that can identify a person, alone or combined |
| Sensitive data | Special categories such as health, biometrics or beliefs, with extra rules |
| Data subject | The person the data is about |
| Controller | Decides why and how personal data is used |
| Processor | Handles personal data on the controller's behalf |
| Lawful basis | The legal reason for using data, such as consent or contract |
| Data minimisation | Collecting and keeping only what is needed |
| Purpose limitation | Using data only for the reason you gave |
| Right to erasure | The right to have personal data deleted, with exceptions |
| Pseudonymisation | Replacing identifiers with codes, reversible with a key |
| Anonymisation | Making identification impossible, irreversibly |
| DPIA | Data protection impact assessment, done before risky processing |
| Data residency | Rules about the country where data is stored or processed |
| Crypto-shredding | Erasing data by destroying its encryption key |
| Choice | We gain | We lose |
|---|---|---|
| Collect less | Less risk and cost | Less data for product and analytics |
| Short retention | Lower exposure | Less history for audits and debugging |
| Per-user keys | Easy erasure everywhere | Many keys, more KMS load |
| Pseudonymise | Safer analytics | Still personal data, keys must be guarded |
| Keep data in one region | Simpler residency | Higher latency for far users, less redundancy |