KMS Flashcards
What is Encryption in flight?
Data is encrypted before sending and decrypted after receiving
• SSL certificates help with encryption (HTTPS)
• Encryption in flight ensures no MITM (man in the middle attack) can happen
What is server side encryption at rest?
• Data is encrypted after being received by the server
• Data is decrypted before being sent
• It is stored in an encrypted form thanks to a key (usually a data key)
• The encryption / decryption keys must be managed somewhere and
the server must have access to it
What is client side encryption?
- Data is encrypted by the client and never decrypted by the server
- Data will be decrypted by a receiving client
- The server should not be able to decrypt the data
- Could leverage Envelope Encryption
Anytime you hear “encryption” for an AWS service what is it?
KMS
What is KMS?
AWS Key Management Service (AWS KMS) is a managed service that makes it easy for you to create and control customer master keys (CMKs), the encryption keys used to encrypt your data
What are the CMK types?
Symmetric (AES-256 keys)
Asymmetric (RSA and ECC key pairs)
What type of CMK use AWS services that are integrated with KMS?
Symmetric
What is Symmetric CMK?
single encryption key that is used to Encrypt and Decrypt
What is Asymmetric CMK?
Public (Encrypt) and Private Key (Decrypt) pair (used by SSH)
What is used for Asymmetric CMK?
for encryption outside of AWS by users who can’t call the KMS API
What are the 3 types of CMK that you can create in KMS?
- AWS Managed Service Default CMK: free
- User Keys created in KMS: $1 / month
- User Keys imported (must be 256-bit symmetric key): $1 / month
What are you able to do with your KMS keys and policies?
- Able to fully manage the keys & policies:
- Create
- Rotation policies
- Disable
- Enable
How can you retrieve the key used to encrypt data by KMS?
you can never retrieve it
What is the max data allowed by KMS per call?
4 KB, otherwise use envelope encryption
Are KMS keys multi regions?
no, when you copy something encrypted cross region KMS reencrypt with a new key for the other region
What are KMS Key Policies?
Control access to KMS keys, “similar” to S3 bucket policies, but you cannot access KMS without them and there is a default one