From 1650040779c56402c587dc8e503b25f4f024836d Mon Sep 17 00:00:00 2001 From: Hugues Alary Date: Sat, 17 Oct 2020 09:19:51 -0700 Subject: [PATCH] Don't assume `spec.vault.auth.kubernetes.secretRef` is what is being used to authenticate with Vault Fixes #64 --- pkg/internal/vault/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/vault/vault.go b/pkg/internal/vault/vault.go index 95d9bc9..d5fc9e5 100644 --- a/pkg/internal/vault/vault.go +++ b/pkg/internal/vault/vault.go @@ -217,7 +217,7 @@ func (v *Vault) setToken(ctx context.Context, client Client) error { if kubernetesAuth != nil { token, err := v.requestTokenWithKubernetesAuth(ctx, client, kubernetesAuth) if err != nil { - return fmt.Errorf("error reading Kubernetes service account token from %s: %s", kubernetesAuth.SecretRef.Name, err.Error()) + return fmt.Errorf("error reading Kubernetes service account token. error: %s", err.Error()) } client.SetToken(token) return nil