diff options
| author | 2022-06-14 19:17:16 +0000 | |
|---|---|---|
| committer | 2022-06-14 19:19:06 +0000 | |
| commit | f7574b548446c8a9e1767c680f5974bd112c24a8 (patch) | |
| tree | 20188d6f5bc6a81a6ac68b8510b72229d84c5ebd | |
| parent | 00327e6dfa87e1c9b9fb7ebc57e4eedc7474be23 (diff) | |
Add google_prod_creds to the list of auth mechanisms
This is to ensure that we don't default to using
application_default_creds when it is not set and rather
"RBE_use_google_prod_creds" variable is set. This is necessary to
rollout RBE gcert auth.
Bug: b/235861862, b/224446621
Change-Id: I51e3f1aefadf282240b8f861efafde6b9b61d305
Merged-In: I51e3f1aefadf282240b8f861efafde6b9b61d305
| -rw-r--r-- | ui/build/config.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/build/config.go b/ui/build/config.go index 28ce57d04..46a12fd34 100644 --- a/ui/build/config.go +++ b/ui/build/config.go @@ -616,7 +616,12 @@ func (c *configImpl) rbeReproxy() string { } func (c *configImpl) rbeAuth() (string, string) { - credFlags := []string{"use_application_default_credentials", "use_gce_credentials", "credential_file"} + credFlags := []string{ + "use_application_default_credentials", + "use_gce_credentials", + "credential_file", + "use_google_prod_creds", + } for _, cf := range credFlags { for _, f := range []string{"RBE_" + cf, "FLAG_" + cf} { if v, ok := c.environ.Get(f); ok { |