Skip to content
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

GOOGLE_APPLICATION_CREDENTIALS not picking up #93

Open
JensJI opened this issue Jan 2, 2020 · 0 comments
Open

GOOGLE_APPLICATION_CREDENTIALS not picking up #93

JensJI opened this issue Jan 2, 2020 · 0 comments

Comments

@JensJI
Copy link

JensJI commented Jan 2, 2020

Hi

Thanks for some great work!

I'm using version v2.0 on GKE.

I tried parsing the JSON contents into the environment variable GOOGLE_APPLICATION_CREDENTIALS but it didn't work.
The logs mentioned that it tried to read it as a file (so instead of the contents it thought it was a path to a file).

But the docs says that GCLOUD_CREDENTIALS_FILE is for providing a filename and GOOGLE_APPLICATION_CREDENTIALS is for providing file contents.

I searched the source code and found out, that I could provide the JSON contents through the environment variable GCLOUD_JSON_KEYFILE_STRING.
That worked.

Have I misunderstood something or is there an issue?

I could make a PR to the docs if it could help.
I could maybe make a PR to the code, but not sure I am skilled enough.

Best regards from a happy user!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant