Alex Dadgar
a9e3a41407
Enable more linters
2017-09-26 15:26:33 -07:00
Alex Dadgar
8c9234e319
Make test Vault pick random ports
2017-07-25 17:40:59 -07:00
Alex Dadgar
82dd0fad5a
faster vaultclient
2017-07-21 19:38:37 -07:00
Alex Dadgar
c6a796e67f
Stop Vault token renew on task exit
...
This PR fixes an oversight in which the client would attempt to renew a
token even after the task exits.
Fixes https://github.com/hashicorp/nomad/issues/2475
2017-03-28 10:53:15 -07:00
Alex Dadgar
07f7e19578
Fix vet script and fix vet problems
...
This PR fixes our vet script and fixes all the missed vet changes.
It also fixes pointers being printed in `nomad stop <job>` and `nomad
node-status <node>`.
2017-02-27 16:00:19 -08:00
Alex Dadgar
22b64a53cf
Better derive token logging
2017-02-14 16:46:54 -08:00
Alex Dadgar
9e822a2e8f
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
Alex Dadgar
4048d1db5c
Comments
2016-10-18 11:36:04 -07:00
Alex Dadgar
ae288a3ee6
Tests
2016-10-18 11:24:20 -07:00
Alex Dadgar
e34902ae8a
Large refactor of task runner and Vault token rehandling
2016-10-18 11:24:20 -07:00
Alex Dadgar
7daa4706a6
Tests
2016-10-11 13:28:18 -07:00
Alex Dadgar
9ff2bf0bff
Fix Vault parsing of booleans
2016-10-10 18:04:39 -07:00
Alex Dadgar
cd8784894d
Alloc runner tests
2016-09-15 17:24:09 -07:00
Alex Dadgar
5532e911cb
Fix token renewal
2016-09-15 11:20:51 -07:00
Alex Dadgar
c89fd0eb08
Clean up vault client
2016-09-14 18:10:56 -07:00
Alex Dadgar
bec6adb2ee
Vault token threaded
2016-09-14 13:30:01 -07:00
Alex Dadgar
f9391f041c
Fingerprint
2016-09-01 11:10:14 -07:00
vishalnayak
13d97f01bb
Print debug message only when error is non-nil
2016-08-30 13:14:34 -04:00
vishalnayak
68b1b30bf5
Addressed review feedback
2016-08-30 13:08:13 -04:00
vishalnayak
082d5e58a4
Return only fatal error to renewal error channel
2016-08-30 12:46:59 -04:00
vishalnayak
dd26f9b4bf
Fix tests
2016-08-29 21:30:06 -04:00
vishalnayak
72d2e9d2dd
tokenDeriver function pointer to derive tokens.
...
Remove rpc*, connPool, node and region from vaultclient.
2016-08-29 20:32:05 -04:00
vishalnayak
603d7b09d8
Use Job.LookupTaskGroup
2016-08-29 16:34:39 -04:00
vishalnayak
7f919c9d74
Address review feedback
2016-08-29 12:47:33 -04:00
vishalnayak
04fab3bc81
Employ DeriveVaultToken API and flesh-up DeriveToken
2016-08-24 12:29:59 -04:00
vishalnayak
6b83d07070
VaultClient for Nomad Client
2016-08-24 09:43:45 -04:00