-
Notifications
You must be signed in to change notification settings - Fork 71
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
no support for google.auth.default
#179
Comments
@junpeng-jp will test after merge |
Fixing this should also support:
|
A working alternative until this is implemented is to use this after reading key from env:
|
hey @jonathanelscpt, the GoogleAuth in this library supports file-based service auth through:
|
At least, this is how it would be after my pull request above has been merged. Because the entire library's google auth is driven by the .yaml config file, I've kept to the same design whilst I was working to migrate from oauth2client -> google-auth |
For the record, current implementation supports reading from a dict, from ENV, etc. I'm not sure about the default credentials. It depends on the underlying implementation for them. |
To support CI workflows building off gh actions, I'd like to use the recommended auth method using
google.auth.default
withgoogle-github-actions/auth@v0.4.0
- https://github.com/google-github-actions/auth.This would (hopefully) allow the following, using the more modern
google.auth
lib:This is defined here:
https://google-auth.readthedocs.io/en/master/user-guide.html
Unfortunately forcing auth with a local service account key file is a poor security implementation, and not really acceptable for cloud CI.
The text was updated successfully, but these errors were encountered: