I have a situation where my program on every request looks up a secret stored in vault. I can see in my programs log file that
that the last successful request occurred at 5:13PM. At 5:24PM (11 minutes later) requests started being rejected with:
The Vault server at `http://my_ip:8200' responded with a 403. (Vault::HTTPClientError)
Any additional information the server supplied is shown below:
* permission denied When I attempted to use token-lookup the output was:
Error looking up token: Error making API request.
URL: GET http://<my_ip>:8200/v1/auth/token/lookup/<my_token>
Code: 403. Errors:
* bad token
I checked my audit logs from vault. They only show the same pattern. The token was working then suddenly it was not.
how can I find out what happened to the token? why did it become invalid? I used token-create with the id flag and that seems to have fixed the token but I still need to know what went wrong.