Data protection
Protecting personal and sensitive data through its whole life.
Data protection covers encryption, minimization, retention and access control for personal data. Collecting less is the strongest protection. It connects engineering practice to legal duties like GDPR.
Why it matters for a product engineer
Personal data creates duties and risks from the moment you collect it: a breach, a legal request, a user who asks for deletion. Engineers decide what is collected, where it is copied and how long it stays. The strongest protection is not encryption. It is not having the data at all.
How to do it
- List the personal data each feature collects, and remove what it does not need.
- Map every copy: databases, logs, backups, analytics, caches, third-party services.
- Encrypt data in transit and at rest, and keep the keys separate from the data.
- Give access only to the people and services that need it, and log that access.
- Set a retention period for each kind of data, and delete it automatically when it ends.
- Build deletion so it reaches every copy, and test it.
Common mistakes
- Collecting data “in case it is useful later”.
- Personal data in logs and error reports.
- Deleting a user from the main database and not from backups, analytics or search indexes.
- Treating encryption as the whole answer.
- Sending personal data to a third party without knowing what it keeps.
Example
Signal designed its service to keep as little as possible about its users. When a federal grand jury subpoena asked for information about two users, Signal could only give two facts per account: when it registered and when it last connected. There was nothing else to hand over, because Signal never stored it.
We've designed the Signal service to minimize the data we retain about Signal users, so the only information we can produce in response to a request like this is the date and time a user registered with Signal and the last date of a user's connectivity to the Signal service.
Sources: Government communication (Signal) ↗ · Cryptographic storage cheat sheet (OWASP) ↗
Technical leverage
Implement encryption, access controls, minimization and deletion across storage, logs and external AI calls.
Evidence of mastery
Put it into practice- Practice
- Trace sensitive data through a product feature, including any model provider or retrieval index.
- Artifact
- A data-flow record and implemented controls with access and deletion checks.
What good looks like
- Only necessary data reaches each service.
- Retention and deletion behavior is verified across derived copies and logs.
Use this evidence to assess your work. Your map status is a self-assessment, not a certification.
In practice
Real productsResources
1- docsGo deeper
Cryptographic storage cheat sheet ↗
OWASP · 14 minHow to store sensitive data safely, and which algorithms and key handling to use.
Tools
1- ToolFreemium
Semgrep
Static analysis for security bugs and code patterns, with an open-source core engine.