From f700a5707b65d954316e765583e66a7ec03cb57d Mon Sep 17 00:00:00 2001 From: Kyle Havlovitz Date: Tue, 27 Oct 2020 13:03:17 -0700 Subject: [PATCH] connect: Use the lookup-self endpoint for Vault token --- agent/connect/ca/provider_vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/connect/ca/provider_vault.go b/agent/connect/ca/provider_vault.go index c74a2e4609..ea39801a21 100644 --- a/agent/connect/ca/provider_vault.go +++ b/agent/connect/ca/provider_vault.go @@ -79,7 +79,7 @@ func (v *VaultProvider) Configure(cfg ProviderConfig) error { v.spiffeID = connect.SpiffeIDSigningForCluster(&structs.CAConfiguration{ClusterID: v.clusterID}) // Look up the token to see if we can auto-renew its lease. - secret, err := client.Auth().Token().Lookup(config.Token) + secret, err := client.Auth().Token().LookupSelf() if err != nil { return err }