(aws-s3): bucket.grantRead to an organization principal grants public read access #32756
Labels
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
needs-reproduction
This issue needs reproduction.
p2
Describe the bug
When using
bucket.grantRead(org)
, the generated policy allows access to the bucket for all AWS accounts without a condition.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
The policy should have a condition:
Current Behavior
This policy gets generated:
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.150.0
Framework Version
No response
Node.js Version
18.18.2
OS
Ubuntu 24.04
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: