Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

fix: Skip checking projectid on cred if env var is set#1349

Merged
sai-sunder-s merged 3 commits intomainfrom
byoidprojectid
Jul 13, 2023
Merged

fix: Skip checking projectid on cred if env var is set#1349
sai-sunder-s merged 3 commits intomainfrom
byoidprojectid

Conversation

@sai-sunder-s
Copy link
Contributor

For external account credentials, the project id is obtained through an API call and that involves creating a token first. If project id is set already in environment, that is the value that is going to be returned by google.auth.default and the value read through the API is discarded.
Updating logic so that if env var is set, then dont make an API call for project.

@sai-sunder-s sai-sunder-s requested review from a team July 12, 2023 18:52
@clundin25 clundin25 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 13, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 13, 2023
@sai-sunder-s sai-sunder-s merged commit a4135a3 into main Jul 13, 2023
@sai-sunder-s sai-sunder-s deleted the byoidprojectid branch July 13, 2023 16:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants