-
Notifications
You must be signed in to change notification settings - Fork 4k
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(cloudfront): use TLS_V1_2_2021 SecurityPolicy as default version (under feature flag) #15477
feat(cloudfront): use TLS_V1_2_2021 SecurityPolicy as default version (under feature flag) #15477
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, @fallobst22 !
Adding the new security policy is great; however, we can't change the default value for an existing construct. Existing users may rely on the behavior of TLSv1.2_2019 (e.g., use ECDHE-RSA-AES128-SHA256) and may break when upgrading. Unlikely, but possible.
We can suggest people use TLSv1.2_2021, but can't enforce it on existing customers. The standard way to do this would be to use a feature flag to allow users to opt-in to the new default.
I would be happy for this just to be adding the new enum value, and tackle the feature flag / new default later. If you'd like to tackle it now though, that's fine as well.
Thanks for taking a look @njlynch I have chosen to add a feature flag for the new default value as requested. Please take a look again and tell me if you would like anything changed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for the extra effort!
Your change was missing a semicolon, which broke the linter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing my mistake! :D
It looks to me like the pr linter disallows pull requests with a breaking changes section for stable modules, without checking if they are under a feature flag. However the Feature Flags section inside CONTRIBUTING.md explicitly states, that the breaking changes part should be included, so merging this is impossible without violating one of the two requirements. In my eyes perhaps the linter should be adapted to check for the feature flag mark in the title, and allow the breaking changes in this case. Would be great if you could take a look again @njlynch |
I've reviewed this with my colleagues, and we agreed to just remove the BREAKING CHANGES notice, as it's not really a breaking change for existing customers. |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
… (under feature flag) (aws#15477) This pull request adds the new TLSv1.2_2021 security policy to the respective enum and adds the feature flag `@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021`, which, when enabled, causes distributions to use the new security policy by default. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
… (under feature flag) (aws#15477) This pull request adds the new TLSv1.2_2021 security policy to the respective enum and adds the feature flag `@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021`, which, when enabled, causes distributions to use the new security policy by default. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
… (under feature flag) (aws#15477) This pull request adds the new TLSv1.2_2021 security policy to the respective enum and adds the feature flag `@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021`, which, when enabled, causes distributions to use the new security policy by default. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This pull request adds the new TLSv1.2_2021 security policy to the respective enum and adds the feature flag
@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021
, which, when enabled, causes distributions to use the new security policy by default.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license