joshcorr / SecretManagement.Hashicorp.Vault.KV

A PowerShell SecretManagement extension for Hashicorp Vault Key Value Engine
MIT License
30 stars 10 forks source link

Prompt for renewal of Token near end of TTL [Feature] #11

Closed joshcorr closed 2 years ago

joshcorr commented 3 years ago

There should be a way to check the life of a Token generated by an Authentication method so that if a user needs a new token the extension prompts them.

https://www.vaultproject.io/docs/concepts/tokens#token-time-to-live-periodic-tokens-and-explicit-max-ttls

joshcorr commented 2 years ago

Not an interactive prompt, but metadata is now gathered about the token and checked before each call. Now a user should be prompted for re-auth if their token expires. fixed in #25