Skip to content

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

Closed
jaidisido wants to merge 3 commits intoaws:masterfrom
jaidisido:bootstrap-kms
Closed

feat(core): enable kms key rotation in bootstrap template#13466
jaidisido wants to merge 3 commits intoaws:masterfrom
jaidisido:bootstrap-kms

Conversation

@jaidisido
Copy link
Copy Markdown


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
Copy Markdown

gitpod-io bot commented Mar 8, 2021

@mergify
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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