Repository navigation
fix(storage): a get or list without getIamPolicy is refused, though Cloud Storage only leaves out the ACLs - #29
Merged
Michael McQuade (giraffesyo) merged 1 commit intoOct 23, 2026
Conversation
…loud Storage only leaves out the ACLs
Michael McQuade (giraffesyo)
deleted the
fix/storage-full-projection-allowed
branch
October 23, 2026 21:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A Cloud Storage policy refused a bucket get or list, or an object list, with
projection=fullunless it grantedgetIamPolicy. Real Cloud Storage answers those calls and leaves out the ACLs the caller may not read. The official Go client asks forprojection=fullon every get and list, so a caller with onlyroles/storage.objectViewerwas refused, though Cloud Storage serves that caller.The objects.list reference says
getIamPolicyis needed "to return object ACLs", but doesn't say a call without it fails. gsutil handles the same case: "JSON API won't return acls as part of the response unless we have full control scope", and it treats a missingaclas normal (ls_helper.py).Testing
make checkpasses.storage.buckets.getandstorage.objects.listgranted, the Go client's bucket get and object list succeed with no denials. Before this change the bucket get was refused.Checklist
make checkpasses