-
Notifications
You must be signed in to change notification settings - Fork 330
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
Add support to service account json key authentication #507
Comments
Gsutil offers service account authorization. |
This is unsuitable for use in scripts. When I have a file with a key. And can not use promt. The gcloud utility allows to use non-interactive authorization via a key file |
A couple of potential workarounds:
|
I do not need workarounds. I want gsutil to work as well as gcloud with service account authorization. This will greatly facilitate the tasks of automation. |
We purposely make the I'd argue that it's just as easy to run a
or to do what gcloud does under the hood for most config options -- passing them as arguments to gsutil on the command line; this has the benefit of not fiddling with creating files:
|
This is a great feature, I know about it. But this is inconvenient. Why do I need another file when I want to unify with the gcloud utility? Just add the ability to specify the key.json file as a parameter, without additional files. This will make life easier for many. |
And it would be nice to point this case to the documentation with a concrete example. Thank you! |
A concrete example where this causes issues: I am using the
I would also argue that an |
the mentioned workaround does not seem to work anymore |
Just to bring up another reason it would be handy to have a well-supported way to do this in scripts: The |
@NikkyAI @AndrewJDR I got the same error but after adding GSUtil to default_project_id it worked for me. gsutil -o "Credentials:gs_service_key_file=/path/to/keyfile.json" |
By analogy with the gcloud utility, it's very lacking
The text was updated successfully, but these errors were encountered: