uswitch / vault-creds

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

fix init bug, where init mode would start renewing creds #15

Closed Joseph-Irving closed 6 years ago

Joseph-Irving commented 6 years ago

There was a rare edge case where init would generate creds but then exit with failure causing the init container to restart. The init container would then detect the existing creds and renew them like a normal sidecar so your init phase would never end.

This stops this from happening by deleting the creds file and exiting if it ever gets into this odd state.