From c0dc48401a592324915816ee44f75979933d455a Mon Sep 17 00:00:00 2001 From: Josh Kaplinsky Date: Tue, 18 Jan 2022 08:41:00 -0600 Subject: [PATCH] Update keysource.go --- gcpkms/keysource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcpkms/keysource.go b/gcpkms/keysource.go index d3514f5b6..6aed39935 100644 --- a/gcpkms/keysource.go +++ b/gcpkms/keysource.go @@ -158,7 +158,7 @@ func (key MasterKey) ToMap() map[string]interface{} { // Credentials as either a path to a file, or directly as an environment variable // in JSON format. func getDefaultApplicationCredentials() (token []byte, err error) { - var defaultCredentials = os.Getenv("GOOGLE_APPLICATION_CREDENTIALS") + var defaultCredentials = os.Getenv("GOOGLE_CREDENTIALS") if _, err := os.Stat(defaultCredentials); err == nil { if token, err = ioutil.ReadFile(defaultCredentials); err != nil {