Mastering AWS KMS Grants: Benefits, Security Considerations, and a Practical Demo

All articles in

Mastering AWS KMS Grants: Benefits, Security Considerations, and a Practical Demo

If you prefer to watch a video instead, please take a look at the following video:

A video tutorial on KMS Grants with a practical demo on enabling cross-Account S3 Access with KMS Grants vs. Key Policies

A refresher on how KMS access control works

Remember from our previous articles that when assigning KMS permissions, whether for intra-account or cross-account access, you need to grant the specific permission in both the IAM policy attached to the identity and the KMS key policy. This is an exceptional behavior for intra-account access compared to other resource policies, like those for S3, where either the IAM policy or resource policy alone is typically sufficient. To see this exception in action, watch the video demo below:

For example, in the diagram below (or think of it as a math equation 😀), both the IAM policy attached to Role XYZ and the KMS policy attached to Key 123 need to allow the kms:Decrypt permission for it to be granted.

KMS access control model with Grants

KMS Grants benefit for temporary access to the KMS Key

KMS Grants benefit for fine-grained access control

These are great benefits, but are there any Security risks with using KMS Grants?

A practical demo of KMS Grants using the example of cross-account S3 access

A video tutorial on KMS Grants with a practical demo on enabling cross-Account S3 Access with KMS Grants vs. Key Policies

Follow us on:

Leave a Reply

Your email address will not be published. Required fields are marked *

Follow us on:

Leave a Reply

Your email address will not be published. Required fields are marked *