open-nomad/client/vaultclient
Alex Dadgar 9987a235a5 Fix race condition with Deriving vault tokens
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).
2017-02-01 16:25:59 -08:00
..
vaultclient.go Fix race condition with Deriving vault tokens 2017-02-01 16:25:59 -08:00
vaultclient_test.go Tests 2016-10-11 13:28:18 -07:00
vaultclient_testing.go Comments 2016-10-18 11:36:04 -07:00