aws-notebook

My AWS Notebook

View the Project on GitHub kyhau/aws-notebook

AWS KMS (Key Management Service)

Topics


Highlights


Customer Master Keys (CMKs) and Data Keys

CMK (Customer Master Key)

Data Keys

Types of CMK

                        | Can view | Can manage | Used only for your AWS account
1. Customer managed CMK | Yes      | Yes        | Yes 
2. AWS managed CMK      | Yes      | No         | Yes 
3. AWS owned CMK        | No       | No         | No

Customer managed CMKs

AWS managed CMKs

AWS owned CMKs

Encrypt data and decrypt data with a data key

Operations

Envelope Encryption

Envelope encryption offers several benefits:

  1. Protecting data keys
    • When you encrypt a data key, you don’t have to worry about storing the encrypted data key, because the data key is inherently protected by encryption. You can safely store the encrypted data key alongside the encrypted data.
  2. Encrypting the same data under multiple master keys
    • Encryption operations can be time consuming, particularly when the data being encrypted are large objects. Instead of re-encrypting raw data multiple times with different keys, you can re-encrypt only the data keys that protect the raw data.
  3. Combining the strengths of multiple algorithms
    • In general, symmetric key algorithms are faster and produce smaller ciphertexts than public key algorithms, but public key algorithms provide inherent separation of roles and easier key management.
    • Envelope encryption lets you combine the strengths of each strategy.

Encryption Context

Key Rotation

AWS Encryption SDK

Managing access

Grants and Grant Tokens

KMS Key Policies

KMS Limits

Throttling Exception