Repository navigation
We should mention GOOGLE_APPLICATION_CREDENTIALS in the Authentication section. #331
Copy link
Copy link
Closed
Labels
🚨 criticalP0 critical issue. Requires immediate fixP0 critical issue. Requires immediate fixauthtriage meI really want to be triaged.I really want to be triaged.
Description
Activity
@aozarov When I introduced those 2 variables I took inspiration from gcloud-node. The rationale is that to run integration tests the user must know what he is doing and he has to pick the right credentials/projectId before running tests as he is going to be billed for them.
For instance I have a personal account on Google Cloud whose credentials are set in
GOOGLE_APPLICATION_CREDENTIALSbut I use different whitelisted credentials/project to run integration tests.I'm with @aozarov on this one -- having separate env vars for tests seems a
bit off.Running tests should look something like
$ cat run_test.sh GOOGLE_APPLICATION_CREDENTIALS=test.json mvn testright?
Right, it should not be a problem to temporarily override environment variable.
I created #335 for tracking the
RemoteGcsHelperspecific keys issue.- added🚨 criticalP0 critical issue. Requires immediate fixP0 critical issue. Requires immediate fixtriage meI really want to be triaged.I really want to be triaged.
on Apr 6, 2020 - added a commit that references this issue
on Jul 14, 2022 - added 4 commits that reference this issue
on Aug 9, 2022 - added a commit that references this issue
on Feb 1, 2023 - added a commit that references this issue
on Jan 6, 2026 - added a commit that references this issue
on Jan 22, 2026 - added a commit that references this issue
on Feb 24, 2026 - added a commit that references this issue
on Mar 12, 2026 - added a commit that references this issue
on Mar 23, 2026 - added 2 commits that reference this issue
on Apr 29, 2026
Metadata
Metadata
Assignees
Labels
🚨 criticalP0 critical issue. Requires immediate fixP0 critical issue. Requires immediate fixauthtriage meI really want to be triaged.I really want to be triaged.
The main gcloud-java README.md contains an authentication section however this section does not
mention the option of using the
GOOGLE_APPLICATION_CREDENTIALSenvironment variable to point to a key file.@mziccard I now wonder if we need the
GCLOUD_TESTS_KEYandGCLOUD_TESTS_PROJECT_IDin theRemoteGcsHelperasGOOGLE_APPLICATION_CREDENTIALScould be used instead of the former andGCLOUD_PROJECTcould be used instead of the latter.