简体   繁体   中英

AWS KMS: What's the difference between CMK and key material?

In the following documentation, AWS refers to a concept called key material .

AWS KMS Documentation : Using a custom key store

AWS KMS supports custom key stores backed by AWS CloudHSM clusters. When you create an AWS KMS customer master key (CMK) in a custom key store, AWS KMS generates and stores non-extractable key material for the CMK in an AWS CloudHSM cluster that you own and manage.

Take an asymmetric encryption key pair in KMS as an example, what is key material? what is CMK? what's the difference between CMK and key material?

For asymmetric key, the "key material" would be your private key . You could generate it yourself using AWS CloudHSM Dynamic Engine if you were using your own CloudHSM cluster at AWS, not AWS-owned cluster used for KMS.

Since you are using KMS, you have no direct access to the private key as it is "non-extractable".

Customer master key (CMK) is an AWS resource allowing you to manage and indirectly use the key material (ie private key for asymmetric). So because you can't directly see nor operate on your private key, you use CMK resource to use it. Since CMK is a resource, it provides a lot of additional functionality build around the key material, such as:

  • automated key rotation
  • KMS key policies and IAM policies
  • transparent integration with numerous AWS services, such as S3, EBS, RDS,
  • and others.

CMK is the logical container, which contains:

  • key material, which is used to encrypt data and decrypt data.
  • key-id
  • ARN
  • other stuff.

Reference

https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys

AWS KMS is replacing the term customer master key (CMK) with AWS KMS key and KMS key. The concept has not changed. To prevent breaking changes, AWS KMS is keeping some variations of this term.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM