Secure APIs Deployed to Kubernetes with OAuth2 Using JWT Tokens Leased by Vault
banzaicloud.com
banzaicloud.com
Then of course a hard expire from the DB (as in, it no longer exists) will cause an auth rejection.
But the best part is having a few bits of key data like user id stored in the key that can be trusted without calling the database.
How do you handle cleaning up the vault KV store? We have a separate process that runs around cleaning up old tokens, but am open to a better way.