From 9006ebf25d190f4cd7e07e973be1cafe82dd8cb3 Mon Sep 17 00:00:00 2001 From: jonjohnsonjr Date: Sat, 18 Jun 2022 07:29:45 -0700 Subject: [PATCH] Add debug logs to google.Keychain (#1390) --- pkg/v1/google/keychain.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/v1/google/keychain.go b/pkg/v1/google/keychain.go index 482cf4a91..6dc7a50ea 100644 --- a/pkg/v1/google/keychain.go +++ b/pkg/v1/google/keychain.go @@ -71,11 +71,13 @@ func (gk *googleKeychain) Resolve(target authn.Resource) (authn.Authenticator, e func resolve() authn.Authenticator { auth, envErr := NewEnvAuthenticator() if envErr == nil && auth != authn.Anonymous { + logs.Debug.Println("google.Keychain: using Application Default Credentials") return auth } auth, gErr := NewGcloudAuthenticator() if gErr == nil && auth != authn.Anonymous { + logs.Debug.Println("google.Keychain: using gcloud fallback") return auth }