Skip to Content

Security & Encryption

Why and where to encrypt (in flight, at rest server-side, client-side), envelope encryption, the AWS security services at a glance, and the map of this group.

Why encryption

Encryption makes data unreadable to anyone without the right key. On AWS there are three places to encrypt:

Three kinds of encryption: in flight, TLS encrypts data between client and server; at rest server-side, the AWS service encrypts data with a data key it can use before storing it; client-side, the client encrypts data with its own key before sending it, so the storage never sees plaintext Three kinds of encryption: in flight, TLS encrypts data between client and server; at rest server-side, the AWS service encrypts data with a data key it can use before storing it; client-side, the client encrypts data with its own key before sending it, so the storage never sees plaintext

On the wire, in the service, or before it leaves the client.
  • Encryption in flight (TLS / SSL):
    • data is encrypted before sending and decrypted after receiving;
    • TLS certificates enable it (HTTPS);
    • it ensures no MITM (man-in-the-middle) attack can read or change the data on the way.
  • Server-side encryption at rest:
    • data is encrypted after being received by the server, and decrypted before being sent back;
    • it's stored encrypted, thanks to a key (usually a data key);
    • the encryption keys must be managed somewhere, and the server must have access to them (usually KMS).
  • Client-side encryption:
    • data is encrypted by the client and never decrypted by the server;
    • it's decrypted by a receiving client;
    • the server should not be able to decrypt the data;
    • it can use envelope encryption: a data key encrypts the data, and a KMS key encrypts the data key, which is stored alongside the data.

Security services at a glance

Identity (IAM, Organizations, Cognito, IAM Identity Center) is in the Identity & Access group, and S3 encryption options in S3 encryption.

Exam tips

  • "Encryption" for an AWS service → almost always KMS.
  • "The server must never see the plaintext" → client-side encryption.
  • "Protect data in transit" → TLS (HTTPS), with certificates from ACM.

Common traps

  • "Server-side encryption protects against the service reading the data." The service decrypts it transparently; only client-side encryption keeps the service from seeing it.

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt