服务 · 安全性、身份与合规性
AWS Key Management Service (AWS KMS)
Creates and controls the keys that encrypt your data, with every use logged in AWS CloudTrail.
本课尚未翻译,暂以英文显示。
- 1You upload an object to an S3 bucket that is set to use your KMS key.
- 2S3 asks KMS for a data key. KMS returns it, together with a copy encrypted under your KMS key.
- 3S3 encrypts the object with the data key, and stores only the encrypted copy of that key with it.
- 4KMS records the request in AWS CloudTrail.
分步说明
- 1You upload an object to an S3 bucket that is set to use your KMS key.
- 2S3 asks KMS for a data key. KMS returns it, together with a copy encrypted under your KMS key.
- 3S3 encrypts the object with the data key, and stores only the encrypted copy of that key with it.
- 4KMS records the request in AWS CloudTrail.
Customer managed key
- Created by
- You, in your account
- What you control
- Who can use it, rotation and deletion
- Use shown in CloudTrail
- Yes
AWS managed key
- Created by
- An AWS service, in your account
- What you control
- Nothing. AWS rotates it every year.
- Use shown in CloudTrail
- Yes
AWS owned key
- Created by
- An AWS service, in its own account
- What you control
- Nothing
- Use shown in CloudTrail
- No
| Key type | Created by | What you control | Use shown in CloudTrail |
|---|---|---|---|
| Customer managed key | You, in your account | Who can use it, rotation and deletion | Yes |
| AWS managed key | An AWS service, in your account | Nothing. AWS rotates it every year. | Yes |
| AWS owned key | An AWS service, in its own account | Nothing | No |
1 / 2
Customer managed key
- Created by
- You, in your account
- What you control
- Who can use it, rotation and deletion
- Use shown in CloudTrail
- Yes
AWS managed key
- Created by
- An AWS service, in your account
- What you control
- Nothing. AWS rotates it every year.
- Use shown in CloudTrail
- Yes
| Key type | Created by | What you control | Use shown in CloudTrail |
|---|---|---|---|
| Customer managed key | You, in your account | Who can use it, rotation and deletion | Yes |
| AWS managed key | An AWS service, in your account | Nothing. AWS rotates it every year. | Yes |
2 / 2
AWS owned key
- Created by
- An AWS service, in its own account
- What you control
- Nothing
- Use shown in CloudTrail
- No
| Key type | Created by | What you control | Use shown in CloudTrail |
|---|---|---|---|
| AWS owned key | An AWS service, in its own account | Nothing | No |
是什么
AWS Key Management Service (AWS KMS) is a managed service for creating and controlling encryption keys. KMS keys are protected by hardware security modules (HSMs) validated under FIPS 140-3 Security Level 3, a US government security standard. They never leave KMS unencrypted.
Most AWS services that store data, such as Amazon S3, Amazon EBS and Amazon RDS, are integrated with KMS. To encrypt your data, a service asks KMS for a data key, encrypts the data with it, and stores the data key in encrypted form next to the data. This is called envelope encryption. Only someone who is allowed to use your KMS key can decrypt the data key and read the data.
是什么
You decide who may use each key, with key policies and IAM policies. Every request to use a key is recorded in AWS CloudTrail, so you can see who used which key and when. You can also turn on automatic key rotation.
要记住
- The usual choice for encryption at rest in AWS services.
- Customer managed keys: you create them and control who can use them, rotation and deletion.
- AWS managed keys: an AWS service creates them in your account, and AWS rotates them every year. You can see them but not change them.
- AWS owned keys: AWS services use them for you. You cannot see or manage them.
要记住
- Every use of your keys is logged in AWS CloudTrail.
- Passwords and API keys belong in AWS Secrets Manager. KMS holds encryption keys.
考试中
- “Create and control encryption keys that work with AWS services, with every use logged” points to AWS KMS.
- “Single-tenant hardware where only the customer controls the keys” points to AWS CloudHSM instead.
- “Store and rotate database passwords” points to AWS Secrets Manager, not KMS.
别和这些弄混
AWS CloudHSMDedicated hardware security modules in your own VPC, for keys that only you can use.
AWS Secrets ManagerKeeps secrets such as database passwords and API keys out of your code, and rotates them automatically.
AWS Certificate Manager (ACM)Issues, deploys and renews the SSL/TLS certificates that let users connect to your site over HTTPS.