Fix CRLY.01184: Encrypt DynamoDB Tables with Customer Managed CMK#46
Open
curly-review[bot] wants to merge 1 commit intomasterfrom
Open
Fix CRLY.01184: Encrypt DynamoDB Tables with Customer Managed CMK#46curly-review[bot] wants to merge 1 commit intomasterfrom
curly-review[bot] wants to merge 1 commit intomasterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue Details
ID: CRLY.01184
Severity: HIGH
File: sam/cfn/cfn-dynamodb-tables.yaml
Remediation Summary
Description
The security finding indicates that the DynamoDB tables are not encrypted using a KMS Customer Managed CMK (Customer Master Key). This is a high-severity issue because it leaves the data vulnerable to unauthorized access.
Steps
Create a Customer Managed CMK (if not already created):
Use the AWS SDK to create a Customer Managed CMK. Below is an example in Python using
boto3.Update the DynamoDB Table to use the CMK:
Add the
SSESpecificationproperty to the DynamoDB table definition to enable encryption with the newly created CMK.Deploy the updated CloudFormation stack:
Ensure that the updated CloudFormation stack is deployed to apply the changes.
By following these steps, you will ensure that your DynamoDB tables are encrypted using a KMS Customer Managed CMK, thereby enhancing the security of your data.