9987a235a5
This PR fixes a race condition in which the client was not locked while deriving Vault tokens. This allowed the token to be set which would cause subsequent Vault requests to fail with permission denied because the incorrect Vault token was being used. Further this PR makes the unsetting and unlocking of the client atomic to avoid an even harder to hit race condition (not sure it was ever hit but was still incorrect). |
||
---|---|---|
.. | ||
vaultclient.go | ||
vaultclient_test.go | ||
vaultclient_testing.go |