connect: Use the lookup-self endpoint for Vault token

This commit is contained in:
Kyle Havlovitz 2020-10-27 13:03:17 -07:00
parent e11b76ce80
commit 1c0608eeeb
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ func (v *VaultProvider) Configure(cfg ProviderConfig) error {
v.spiffeID = connect.SpiffeIDSigningForCluster(&structs.CAConfiguration{ClusterID: v.clusterID}) v.spiffeID = connect.SpiffeIDSigningForCluster(&structs.CAConfiguration{ClusterID: v.clusterID})
// Look up the token to see if we can auto-renew its lease. // 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 { if err != nil {
return err return err
} }