-
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
s3: bucket.grantRead does not allow s3:HeadObject #27389
Comments
Hi @tmokmss , thanks for the report on the permitted actions for grantRead(). |
Fixes the policy enforced by `grantRead` to allow operations that require to read an object's metadata, for example: ``` s3 = boto3.client("s3") # this operation requires s3:HeadObject permission s3.download_file(bucket, key, filepath) ``` Closes #27389. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Your authorization issue was related to something else. |
Describe the bug
Currently
bucket.grantRead
does not allow s3:HeadObject action. Because of this, the code like below does not work if you set the IAM policy bygrantRead
method, which is a surprising behavior.Expected Behavior
bucket.grantRead
allows s3:HeadObject action.Current Behavior
bucket.grantRead
only allowss3:GetBucket* , s3:GetObject*, s3:List*
actions.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.99.1
Framework Version
2.99.1
Node.js Version
v18.13.0
OS
macOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: