minio / kes

Key Managament Server for Object Storage and more
https://min.io/docs/kes/concepts/
GNU Affero General Public License v3.0
456 stars 95 forks source link

vault: improve usage of `time.Timer` #388

Closed aead closed 1 year ago

aead commented 1 year ago

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.