-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-cdk-s3: Public access setup as default. #27929
Comments
Likely related to #27764. |
@MichalLipski95 We've tested this with both external and internal accounts and we're seeing that the CDK S3 bucket has public access blocked and object ownership is set up to disable ACLs. Can you share some screenshots of what you're seeing? |
In all our repos using CDK, PR checks for renovate PRs upgrading CDK to 2.106.0 fail in CDK bootstrap because of this. Our AWS org does not allow setting S3 Bucket ACLs causing the build to fail even if the deployment role has the s3:PutBucketAcl permission. Please revert to the previous behavior or provide a way to fix. #27764 removed a template line setting the deprecated GitHub Actions workflow log
|
Looks like this was fixed/reverted in 2.106.1 / #27939. Our PR workflows run successfully with that release. |
I just faced this issue for an old project that I just upgraded. (works fine for new projects, though) I deleted the CDKToolkit stack (without deleting everything else created by CDK/Cfn), and after bootstrapping and deploying again, it could just add them again without any resource replacements. Disclaimer: This is NOT advice & I do not take any responsibility if you try this without testing it first! Make sure you test it for your environment thoroughly before trying this; even though it worked for me and, in theory, it should work for everyone else too, I'm not continuously following CDK and might not be aware of something, and doing this might replace an important resource for you. |
Seems the bug does not exist #27929 (comment) ? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Describe the bug
When running bootstrap with version 2.106.0 of aws-cdk it appears that s3 cdk bucket is now created by default has set up all public access as enabled and all ACLs are enabled.
As checked with aws-cli manual, it still says that public access should be disabled by default.
When checked previous version 2.105.0, the behavior was that s3 cdk bucket had blocked public access and object ownership was set up to ACLs disabled.
Expected Behavior
S3 cdk bucket should have blocked public access and object ownership set up to ACLs disabled
Current Behavior
S3 cdk bucket has open public access and object ownership set up to ACLs enabled
Reproduction Steps
Run cdk bootstrap command with aws-cdk version 2.106.0 which will result with creating a public access enabled bucket and enabled ACLs
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.106.0
Framework Version
No response
Node.js Version
10
OS
Linux
Language
Java
Language Version
Java 17
Other information
No response
The text was updated successfully, but these errors were encountered: