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 {