Quick reference
At rest, in transit, in use: each one fails differently.
Read it bottom to top.
| Layer | What it does | Typical tech |
|---|---|---|
| Key custody | Who can unwrap the data key, and where the root lives. | KMS |
| At rest | Disk, database, object store; stolen media stays unreadable. | REST |
| In transit | TLS between services, verified, with no plaintext fallback. | TLS |
| In use | Enclaves and memory hygiene; the layer most teams skip. | MEM |
In one line: A key in the same account is a lock taped to the door. Encrypt the data, then check who holds the key.
Check the key scope:
aws kms describe-key --key-id $KEYExplained
At rest covers disks, database files, object stores and the backup copy nobody remembers. It protects against stolen media and misconfigured snapshots, and it does nothing once the application is allowed to read the data.
In transit covers TLS between services, from clients, and to the database. Verify the certificate, refuse the plaintext fallback, and remember that a service mesh sidecar terminating TLS still hands plaintext to the application.
In use is the layer most teams skip. Data is decrypted in memory to be processed, so anyone with a core dump, a debugger or a hypervisor can read it. Confidential computing and tight memory hygiene reduce that window; neither removes it.
Under all three sits key custody. A key stored in the same account, with the same access, as the ciphertext is a lock taped to the door.
The honest caveat: encryption changes who can read the data, not whether the processing is lawful or the access is appropriate. Those are separate controls, and this one does not substitute for either.
Your turn: Which layer would your last design review have skipped?
Related on this site
More notes: Privacy & data protection
- P1161Data discovery and deletion commands
- P1160Five questions before you share a dataset
- P1159Access logs that survive an audit
- P1157Four privacy numbers worth writing down
- P1156Retention that deletes itself
- P1155Answering a data subject request
- P1154Five places PII hides in plain sight
- P1153Classifying data without a committee
Open in the notes app: search, filters, copy This note on GitHub