fix(codepipeline): default cross-region S3 buckets allow public access#17722
fix(codepipeline): default cross-region S3 buckets allow public access#17722mergify[bot] merged 7 commits intoaws:masterfrom
Conversation
…fault. The cross region S3 buckets that are created should have block public access by default. fixes aws#16411
|
Same approach as for the artifact bucket: https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/aws-codepipeline/lib/pipeline.ts#L382 |
skinny85
left a comment
There was a problem hiding this comment.
Thanks for the contribution @david-richer-adsk!
packages/@aws-cdk/aws-codepipeline/lib/private/cross-region-support-stack.ts
Outdated
Show resolved
Hide resolved
Pull request has been modified.
skinny85
left a comment
There was a problem hiding this comment.
We also need a unit test for this one 🙂.
Does this look like the right place to add a check? https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-codepipeline/test/cross-env.test.ts#L132 |
Yes, that's probably a good spot. You can use the |
Pull request has been modified.
|
Should be good to go, let me know if anything is missing. |
skinny85
left a comment
There was a problem hiding this comment.
Looks good @david-richer-adsk! One question.
Co-authored-by: Adam Ruka <adamruka85@gmail.com>
Pull request has been modified.
|
@skinny85 ready to be merged? |
skinny85
left a comment
There was a problem hiding this comment.
Thanks for the contribution @david-richer-adsk!
Yep! In the future, make sure to re-request my review after you're done pushing your changes (there's a button in the top-right corner of the PR page, next to my avatar), this way I won't miss it 🙂. Thanks, |
|
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). |
|
Will do! |
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). |
The cross region S3 buckets that are created should have block public access by default.
Fixes #16411
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license