From 19bee0c5ba4f9ec745ac327ac499d79a3f953f90 Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Mon, 22 May 2023 17:17:21 +0900 Subject: [PATCH] gcpkms: fix WithCredentialsJSON to credentials Signed-off-by: Koichi Shiraishi --- gcpkms/keysource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcpkms/keysource.go b/gcpkms/keysource.go index d549b32b8..44ee9e587 100644 --- a/gcpkms/keysource.go +++ b/gcpkms/keysource.go @@ -217,7 +217,7 @@ func (key *MasterKey) newKMSClient() (*kms.KeyManagementClient, error) { return nil, err } if credentials != nil { - opts = append(opts, option.WithCredentialsJSON(key.credentialJSON)) + opts = append(opts, option.WithCredentialsJSON(credentials)) } } if key.grpcConn != nil {