ladderlore
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 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.
阅读云从业者课程
Service or app
KMS
Data key
Encrypted data
  1. 1The service asks KMS for a data key.
  2. 2KMS returns the key twice: in plain form, and encrypted by the KMS key.
  3. 3The service encrypts the data with the plain key, then discards it. It stores the encrypted data key with the data.
Envelope encryption, step by step.
  • S3

    On by default for every new object
  • EBS

    Off, unless the account setting is on for the Region
  • RDS

    You choose it at creation
  • DynamoDB

    Always on
What each service does by default.

是什么

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.