You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Run yamllint folder/template.yaml, cfn-lint -i E1019 E3002 E2520 -t folder/template.yaml, and aws cloudformation validate-template --template-body file://folder/template.yaml before you open a PR)
(Do not include multiple changes in one PR. Open additional PRs instead.)
Allow blocking the use of SSE-C encryption as per AWS security blog to prevent unintended encryption of Amazon S3 objects (ransom attacks).
The linter suggestion can be sorted in a separate PR:
$ cfn-lint -i E1019 E3002 E2520 -t state/s3.yaml
W3045 Consider using AWS::S3::BucketPolicy instead of AccessControl
state/s3.yaml:176:7
Thanks @ab77 I wonder if we could go one step further and always block this.
We configure the bucket's default encryption to either use SSE-S3 or SSE-KMS. @andreaswittig what do you think?
If we don't go for a deny by default I would recommend to rename the parameter RestrictCustomerKeys to e.g. BlockSSEC or at least RestrictCustomerProvidedKeys to not confuse users with KMS customer managed keys.
Thanks @ab77 I wonder if we could go one step further and always block this. We configure the bucket's default encryption to either use SSE-S3 or SSE-KMS. @andreaswittig what do you think? If we don't go for a deny by default I would recommend to rename the parameter RestrictCustomerKeys to e.g. BlockSSEC or at least RestrictCustomerProvidedKeys to not confuse users with KMS customer managed keys.
I am OK with either approach, we currently don't have a use-case for enabling SSE-C.
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
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.
See, https://aws.amazon.com/blogs/security/preventing-unintended-encryption-of-amazon-s3-objects/
(Override all values in parentheses)
(Run
yamllint folder/template.yaml,cfn-lint -i E1019 E3002 E2520 -t folder/template.yaml, andaws cloudformation validate-template --template-body file://folder/template.yamlbefore you open a PR)(Do not include multiple changes in one PR. Open additional PRs instead.)
Allow blocking the use of SSE-C encryption as per AWS security blog to prevent unintended encryption of Amazon S3 objects (ransom attacks).
The linter suggestion can be sorted in a separate PR: