-
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
β NOTICE (cdk): removal of AccessControl property from bootstrap template in v2.106.0 can result in public access on bootstrap buckets #27964
Comments
To understand the severity of this issue as a user a bit more as well, does this actually make the bucket and objects public? Or does it make it so the bucket and objects can be public? Wouldn't either the Dangerous Bucket Policy{
"Version":"2012-10-17",
"Statement":[
{
"Sid": "PublicAccess",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "${Bucket.Arn}/*"
}
]
} If it immediately makes all object in the bucket actually public (bootstrapping with v2.106.0 automatically makes it so anyone can Documentation IssuesThis probably also highlights a need for updates to the CloudFormation resource docs and the service docs.
The second one especially seems to be at issue here. Is |
Closed with this revert. |
|
Please add your +1 π to let us know you have encountered this
Status
Resolved
What is the issue?
A PR was merged which removed the legacy
AccessControl
property from the bootstrap template. Users who remove the public access block using the public-access-block-configuration cli flag will see bootstrapped buckets are created with public access and ACLs enabled by default.Error message
No response
What is the impact?
S3 buckets created during bootstrapping will be created with all public access and all ACLs enabled by default.
Workaround
Upgrade to
aws-cdk
v2.106.1.Who is affected?
Users bootstrapping regions using
aws-cdk
v2.106.0.How do I resolve this?
Upgrade to
aws-cdk
v2.106.1.Related issues
No response
The text was updated successfully, but these errors were encountered: