diff --git a/pkg/vault/hashicorp_vault.go b/pkg/vault/hashicorp_vault.go index f49f803..6a83182 100644 --- a/pkg/vault/hashicorp_vault.go +++ b/pkg/vault/hashicorp_vault.go @@ -207,7 +207,7 @@ func NewHashiCorpVaultSecretHandler(ctx context.Context, logger *zap.Logger, con } func (a *HashiCorpVaultSecretHandler) GetSecret(ctx context.Context, secretId string) (string, error) { - secret, err := a.client.KVv2(secretId).Get(ctx, secretId) + secret, err := a.client.KVv2(secretMountPath).Get(ctx, secretId) if err != nil { a.logger.Error("failed to get secret", zap.Error(err)) return "", err