You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use gcloud oauth token before trying application default credentials (GoogleCloudPlatform#198)
This changes the oauth token source to first try to retrieve auth tokens using `gcloud config config-helper` first before trying application default credentials. This behavior will only exist when the proxy is invoked as a binary, but not when it is used as a library. The intent here is that its likely reasonable for individuals to run the proxy, but if they are using the proxy as a library, we do still want to encourage them to use a service account, since that is more reliable for production configurations
@@ -85,25 +83,13 @@ can be removed automatically by this program.`)
85
83
You may set the GOOGLE_APPLICATION_CREDENTIALS environment variable for the same effect.`)
86
84
ipAddressTypes=flag.String("ip_address_types", "PRIMARY", "Default to be 'PRIMARY'. Options: a list of strings separated by ',', e.g. 'PRIMARY, PRIVATE' ")
87
85
88
-
// Set to non-default value when gcloud execution failed.
89
-
gcloudStatusgcloudStatusCode
90
-
91
86
// Setting to choose what API to connect to
92
87
host=flag.String("host", "https://www.googleapis.com/sql/v1beta4/", "When set, the proxy uses this host as the base API path.")
93
88
)
94
89
95
-
typegcloudStatusCodeint
96
-
97
-
const (
98
-
gcloudOkgcloudStatusCode=iota
99
-
gcloudNotFound
100
-
// generic execution failure error not specified above.
0 commit comments