Data Protection Flashcards
What is a CMK ?
A CMK is a customer or amazon managed key that is stored in a FIPS 140-2 Hardware Security Module (HSM)
Can you interact with the CMK outside of the KMS service ?
No
How can you interact with the CMK ?
API, CLI, Console and Code
What are the three common properties every CMK has ?
KeyId, Alias and ARN
What is the data key ?
This is a key thats derived from the CMK and is responsible for the actual cryptographic operations
Can you use the data key outside of KMS ?
Yes - You can call the GenerateDataKey api call, save the data key to a file, base 64 decode it and use it
How can you scale KMS ?
Store datakey in memory, use multiple keys
What is a CMK grant ?
It as a programatic way of giving a subset of the permissions contained in the key policy to a service or caller.
Are CMK grants automatically removed ?
No you must remove them after the operation that required them has finished.
Why use CMK grants ?
They are an easy non permanent way of giving access to a keys operations in a least privilege manner.
What is the default key policy ?
This is assigned to every key on creation and at its most basic gives the root user of the org kms:* in order to prevent lockout.
What is the division of responsibilities in KMS ?
There is a clear division between those that can administer the keys and those that can use them.
Can you create a CMK grant for a CMK in a different account ?
Yes
Can CMK grants deny permissions ?
No
Why use a CMK grant token ?
With CMK grants there is eventual consistency when being deleted, created or used a grant token allows for immediate use and the effect to be immediate.