概念 · CLF-C02 の発展
Encryption at rest and in transit
Envelope encryption, the defaults that each service gives you, and where TLS ends.
このレッスンはまだ翻訳されていないため、英語で表示しています。
クラウドプラクティショナーで学んだこと
- Encryption at rest protects stored data. Encryption in transit protects data on the move, usually with TLS.
- AWS KMS and CloudHSM manage keys. ACM provides certificates.
- Server-side encryption is done by the service. Client-side encryption is done by you before upload.
- 1The service asks KMS for a data key.
- 2KMS returns the key twice: in plain form, and encrypted by the KMS key.
- 3The service encrypts the data with the plain key, then discards it. It stores the encrypted data key with the data.
- On by default for every new object
- Off, unless the account setting is on for the Region
- You choose it at creation
- Always on
| Service | Encryption at rest |
|---|---|
| On by default for every new object | |
| Off, unless the account setting is on for the Region | |
| You choose it at creation | |
| Always on |
概要
AWS KMS does not encrypt your data directly in most designs. It uses envelope encryption. A service asks KMS for a data key. It encrypts the data with the data key, then stores the data key next to the data, encrypted by a KMS key. This is fast, because the big data never travels to KMS. It also means that only people who may use the KMS key can read the data.
概要
Defaults differ by service. Amazon S3 encrypts every new object with SSE-S3. For Amazon EBS, you turn on encryption by default per Region. For Amazon RDS and Aurora, you choose encryption when you create the database. A snapshot of an encrypted database is encrypted. To share an encrypted snapshot with another account, encrypt it with a customer managed key and share that key. The default AWS managed key cannot be shared.
概要
For TLS, an Application Load Balancer can terminate it: it decrypts at the load balancer, and traffic to the targets inside the VPC is plain unless you set HTTPS to the targets. For end-to-end encryption, use HTTPS from the load balancer to the targets, or a Network Load Balancer with TCP or TLS passthrough. To enforce encryption in transit, deny S3 requests when aws:SecureTransport is false, redirect HTTP to HTTPS at CloudFront or the ALB, and require TLS on the database.
覚えること
- Envelope encryption: a data key encrypts the data, a KMS key encrypts the data key.
- S3 encrypts new objects by default. EBS needs the account setting. RDS is chosen at creation.
- Sharing an encrypted snapshot needs a customer managed key shared with the other account.
- ALB termination: TLS ends at the load balancer. Use HTTPS to the targets for end to end.
覚えること
- S3: deny when aws:SecureTransport is false.
- Client-side encryption: AWS never sees the plaintext.
試験では
- “Encrypt large data quickly with a key you control” points to envelope encryption with KMS data keys.
- “Share an encrypted RDS snapshot with another account” points to a customer managed KMS key shared with that account.
- “Data must be encrypted all the way to the instance” points to HTTPS from the load balancer to the targets, or TLS passthrough on a Network Load Balancer.
混同しやすいもの
AWS Key Management Service (AWS KMS)Who may use a key, which key type, how keys rotate and delete, and where KMS limits you.
AWS Certificate Manager (ACM)Which certificate, how to validate it, where it can attach, and the Region rule for CloudFront.
- Protecting S3 dataEncryption options, locks against deletion, replication, and the access features you pick between.