Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): enable kms key rotation in bootstrap template #13466

Closed
wants to merge 3 commits into from

Conversation

jaidisido
Copy link


Enabling KMS key rotation is considered a security best practice.
AWS documentation: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Mar 8, 2021

@mergify
Copy link
Contributor

mergify bot commented Mar 8, 2021

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@jaidisido jaidisido changed the title Bootstrap template - Enabling Key Rotation in FileAssetsBucketEncryption fix: Enable kms key rotation in bootstrap template Mar 10, 2021
@github-actions github-actions bot added the @aws-cdk/aws-kms Related to AWS Key Management label Mar 10, 2021
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: fa67555
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@njlynch njlynch assigned rix0rrr and unassigned njlynch Mar 18, 2021
@njlynch njlynch changed the title fix: Enable kms key rotation in bootstrap template feat(core): enable kms key rotation in bootstrap template Mar 18, 2021
@github-actions github-actions bot added the @aws-cdk/core Related to core CDK functionality label Mar 18, 2021
@njlynch
Copy link
Contributor

njlynch commented Mar 18, 2021

I think this is reasonable, but tagging our resident bootstrap template expert, @rix0rrr , to ensure there's nothing here I'm missing.

@njlynch njlynch added effort/small Small work item – less than a day of effort p1 labels Mar 18, 2021
Copy link
Contributor

@rix0rrr rix0rrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure we want this on by default.

According to the documentation:

Rotating customer managed CMKs might result in extra monthly charges.

The price goes up by $1/month for every year that the bootstrap stack exists, and there seems to be no way to remove old key materials (so you can't even do anything about these costs).

For people that definitely know they want this and are prepared to pay the price, they can use customize the template for their own needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-kms Related to AWS Key Management @aws-cdk/core Related to core CDK functionality effort/small Small work item – less than a day of effort p1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants