GoogleCloudPlatform / GoogleCloudPlatform/gsutil

'gsutil cp' requires storage.objects.list permission on source bucket

Open
#1,233 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

(see https://github.com/GoogleCloudPlatform/gsutil/issues/546 for a similar issue)

I think either the documentation went out of date again or there was a regression in gsutil. this command
```
gsutil cp gs://hadoop-lib/bigquery/bigquery-connector-hadoop3-0.19.1.jar .
```
fails with
```
AccessDeniedException: 403 @.com does not have storage.objects.list access to the Google Cloud Storage bucket.
```
I think only google employees should have ls permissions on gs://hadoop-lib. the documentation says that storage.objects.list is only required on the destination bucket, and that does not appear to be the case - anymore, at least.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the listed `gsutil cp` command and compare its permission requirements with the documentation referenced in the issue. Determine whether the source-bucket listing requirement is a regression or a documentation mismatch; done means the behavior and documented permissions agree, with the relevant fix verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, python
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.