Concept
Encryption at rest and in transit
Scrambling data so that only someone with the right key can read it, both where it is stored and while it moves.
What it protects
- At rest
- Stored data: disks, databases and backups
- In transit
- Data that moves across a network
How
- At rest
- Data is encrypted with a key before it is written
- In transit
- TLS, the protocol behind HTTPS, or an encrypted VPN tunnel
AWS tools
- In transit
ACM
Site-to-Site VPN
Example
- At rest
- An encrypted Amazon EBS volume
- In transit
- A browser connecting to a load balancer over HTTPS
| Compare | At rest | In transit |
|---|---|---|
| What it protects | Stored data: disks, databases and backups | Data that moves across a network |
| How | Data is encrypted with a key before it is written | TLS, the protocol behind HTTPS, or an encrypted VPN tunnel |
| AWS tools | ||
| Example | An encrypted Amazon EBS volume | A browser connecting to a load balancer over HTTPS |
1 / 2
What it protects
- At rest
- Stored data: disks, databases and backups
- In transit
- Data that moves across a network
How
- At rest
- Data is encrypted with a key before it is written
- In transit
- TLS, the protocol behind HTTPS, or an encrypted VPN tunnel
| Compare | At rest | In transit |
|---|---|---|
| What it protects | Stored data: disks, databases and backups | Data that moves across a network |
| How | Data is encrypted with a key before it is written | TLS, the protocol behind HTTPS, or an encrypted VPN tunnel |
2 / 2
AWS tools
- In transit
ACM
Site-to-Site VPN
Example
- At rest
- An encrypted Amazon EBS volume
- In transit
- A browser connecting to a load balancer over HTTPS
| Compare | At rest | In transit |
|---|---|---|
| AWS tools | ||
| Example | An encrypted Amazon EBS volume | A browser connecting to a load balancer over HTTPS |
What it is
Encryption turns readable data into scrambled data, called ciphertext. Without the right key, ciphertext is useless. Encryption is one of the main security benefits of the cloud: AWS builds it into most services, so you can often turn it on with one setting. Many services encrypt data by default. For example, Amazon S3 has encrypted every new object automatically since January 2023.
What it is
Data needs protection in two states. Encryption at rest protects data where it is stored: on disks, in databases and in backups. Encryption in transit protects data while it moves across a network, usually with Transport Layer Security (TLS), the protocol behind HTTPS. To connect a data center to AWS, AWS Site-to-Site VPN sends traffic through encrypted tunnels over the internet.
AWS gives you the tools. AWS Key Management Service (AWS KMS) and AWS CloudHSM manage the keys for data at rest. AWS Certificate Manager (ACM) provides the certificates that TLS needs. Under the shared responsibility model, you decide what to encrypt and who controls the keys.
Remember
- At rest = stored data. In transit = data moving over a network, usually protected with TLS (HTTPS in a browser).
- Server-side encryption: the AWS service encrypts the data after it receives it. Client-side encryption: you encrypt the data before you send it.
- AWS also encrypts traffic on its own network between Regions and between Availability Zones. Traffic between your users and your application still needs TLS.
Remember
- From a data center to AWS: AWS Site-to-Site VPN is encrypted. AWS Direct Connect is not encrypted by default.
- Protect the keys as carefully as the data. AWS KMS records each use of your keys in AWS CloudTrail.
- Other security benefits of the cloud: AWS secures the data centers and hardware, many protections are on by default, and security checks can run automatically in every account.
On the exam
- “Protect data stored in Amazon S3, Amazon EBS or Amazon RDS” is encryption at rest, usually with keys from AWS KMS.
- “Protect data that travels between users and a website” is encryption in transit with TLS, using a certificate from ACM.
- “Who is responsible for encrypting customer data?” The customer, under the shared responsibility model. AWS provides the tools, and some services encrypt by default.
Do not mix it up with
AWS Key Management Service (AWS KMS)Creates and controls the keys that encrypt your data, with every use logged in AWS CloudTrail.
AWS Certificate Manager (ACM)Issues, deploys and renews the SSL/TLS certificates that let users connect to your site over HTTPS.
- AWS shared responsibility modelWho secures what: AWS protects the cloud itself, and you protect what you put in it.