You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For comparison, here's a fix to the same problem in a Python library with a similar goal as stow: piskvorky/smart_open#516
This problem is additionally hard to troubleshoot because stow.ErrNotFound is returned for what is actually a permissions error. Callers have no way to distinguish the cases. It would be better to create a stow.PermissionDenied and/or to wrap the underlying error with errors.Wrap.
The text was updated successfully, but these errors were encountered:
google/location.go
uses this code to open GCS buckets:However, most of the standard IAM roles (https://cloud.google.com/storage/docs/access-control/iam-roles#standard-roles) do not include the
storage.buckets.get
permission. It is not necessary to have permissions on the bucket itself in order to work with objects. This also makes an unnecessary API call.For comparison, here's a fix to the same problem in a Python library with a similar goal as
stow
: piskvorky/smart_open#516This problem is additionally hard to troubleshoot because
stow.ErrNotFound
is returned for what is actually a permissions error. Callers have no way to distinguish the cases. It would be better to create astow.PermissionDenied
and/or to wrap the underlying error witherrors.Wrap
.The text was updated successfully, but these errors were encountered: