Consul 1.8.5 Vault - error

Consul 1.8.5 token lookup doesn’t seem to be working and I can’t get a leader. I’m getting this error

agent.server: failed to establish leadership: error="error configuring provider: error configuring provider: Error making API request. URL: POST https://:8200/v1/auth/token/lookup Code: 403. Errors: error occurred: permission denied "

should it be using lookup-self and not lookup?

Hey Peter, thanks for raising this - it definitely makes more sense to use the lookup-self endpoint. It should work if you add read capability on that token for “auth/token/lookup”, but I put up a PR here to make Consul use lookup-self instead: https://github.com/hashicorp/consul/pull/9053

1 Like