Closed aead closed 1 year ago
This commit improves the usage of time.Timer esp. within the Vault token renew and re-auth logic.
time.Timer
It follows some recommendations from: https://go101.org/article/memory-leaking.html
Ref: Real Memory Leaking Caused by Not Stopping time.Ticker Values Which Are Not Used Any More
Further, this commit updates the Vault SDK dep from 1.5 to 1.9.2 and removes some deprecated API usages.
This commit improves the usage of
time.Timer
esp. within the Vault token renew and re-auth logic.It follows some recommendations from: https://go101.org/article/memory-leaking.html
Ref: Real Memory Leaking Caused by Not Stopping time.Ticker Values Which Are Not Used Any More
Further, this commit updates the Vault SDK dep from 1.5 to 1.9.2 and removes some deprecated API usages.