Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Privacy & data protectionMixed 24 series

Encryption layers: at rest, in transit, in use

Encryption is usually described as a switch. In practice it is a stack, and the stack is only as strong as its lowest layer.

Quick reference

At rest, in transit, in use: each one fails differently.

Read it bottom to top.

LayerWhat it doesTypical tech
Key custodyWho can unwrap the data key, and where the root lives.KMS
At restDisk, database, object store; stolen media stays unreadable.REST
In transitTLS between services, verified, with no plaintext fallback.TLS
In useEnclaves 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 $KEY

Explained

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?

More notes: Privacy & data protection

Open in the notes app: search, filters, copy This note on GitHub