-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix vault retry logic on failed calls
The original problem was that for non-renewable vault secrets that it was having trouble fetching, it would wait the standard exponential backoff time plus the configured sleep time (like it does between successful fetches). When what it should do is use the sleep time between successful fetches and exponential backoff on failures. While fixing this I cleaned up the code to make the logic more clear. The issue existed in both vault_read and vault_write, and they shared a common chunk of renew logic between them and with vault_token. So I refactored that out into a common function. Fixes #1224
- Loading branch information
Showing
6 changed files
with
139 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.