Skip to content

DefaultCredentialsProvider doesn't respect the CLOUDSDK_CONFIG environment variable #680

Closed
@dimo414

Description

@dimo414

ServiceOptions.googleCloudProjectId() first checks to see if CLOUDSDK_CONFIG has been set, and uses that in place of ~/.config/gcloud if it has. However DefaultCredentialsProvider.getWellKnownCredentialsFile() does not, instead only looking in the default directory.

Metadata

Metadata

Labels

authtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions