uswitch / vault-creds

Sidecar container for requesting dynamic Vault database secrets
Apache License 2.0
84 stars 14 forks source link

delete lease and creds when you get a permission denied error #12

Closed Joseph-Irving closed 6 years ago

Joseph-Irving commented 6 years ago

Currently if vault-creds gets into a state where its token has expired it will just constantly retry to renew while getting permission denied. This PR causes it to exit and delete the lease and creds file so when it starts back up it will generate a new one.

Joseph-Irving commented 6 years ago

Developers will still need to have their apps restart or reload the creds if they're getting permission denied on the db side