Commit Graph

2096 Commits

Author SHA1 Message Date
Sean Chittenden
31333eecae Add better verification of a host's HostID. 2017-02-02 16:24:32 -08:00
Alex Dadgar
df2c9ccbe5 Merge pull request #2277 from hashicorp/f-durable-uuid
Reproducible Node ID
2017-02-02 11:54:49 -08:00
Alex Dadgar
15a349debd Merge pull request #2262 from hashicorp/f-permissions
Template destination file permissions.
2017-02-02 11:28:44 -08:00
Sean Chittenden
e4df8042e3 Slight mis-merge: secret-id in dev mode is random and needs to be returned. 2017-02-01 22:20:52 -08:00
Sean Chittenden
6c194a47c2 Generate a durable NodeID if possible, otherwise fall back to a random HostID. 2017-02-01 22:11:33 -08:00
Alex Dadgar
fea5509242 Merge branch 'master' into f-permissions 2017-02-01 16:57:46 -08:00
Alex Dadgar
4bf2401844 Merge branch 'master' into b-vault-race 2017-02-01 16:57:26 -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
Diptanu Choudhury
754b40070c Checking in updated gc tests 2017-02-01 13:12:46 -08:00
Alex Dadgar
9afa48310e Template destination file permissions.
This PR allows setting the file permissions of the rendered template.
2017-01-31 20:10:01 -08:00
Diptanu Choudhury
6b0a1ebb58 Making the GC related fields tunable 2017-01-31 15:51:20 -08:00
Michael Schurter
2822dd760c Handle createdResourcs=nil
Combined with b522c472fd this fixes #2256

Without these two commits in place upgrades to 0.5.3 panics.
2017-01-31 10:51:32 -08:00
Alex Dadgar
b522c472fd Add nil guard 2017-01-31 09:19:59 -08:00
Alex Dadgar
8e5d2dd817 slightly more verbose test 2017-01-30 16:16:26 -08:00
Alex Dadgar
3c7e018438 up timing 2017-01-26 13:25:37 -08:00
Alex Dadgar
314435261d Rename dispatch_input to dispatch_payload 2017-01-25 21:27:44 -08:00
Alex Dadgar
0e8b43767b Fix import 2017-01-25 21:27:36 -08:00
Alex Dadgar
c920d3cbb0 Fix unreachable function in tests 2017-01-25 20:58:24 -08:00
Alex Dadgar
2c48e93963 More timing fixes 2017-01-25 11:57:38 -08:00
Alex Dadgar
8a0739613a small env fix 2017-01-25 10:42:11 -08:00
Alex Dadgar
db446bbabf Fix flaky test 2017-01-24 09:40:13 -08:00
Alex Dadgar
938b04e99a Fix fsm/env test 2017-01-24 09:36:22 -08:00
Alex Dadgar
0b46f7c237 Fix template test 2017-01-23 16:42:02 -08:00
Alex Dadgar
438054775c Fix test 2017-01-23 16:33:35 -08:00
Diptanu Choudhury
af66ea3551 Merge pull request #2223 from hashicorp/f-env-addr
Setting the Addrs of sibling tasks in the env
2017-01-23 15:05:48 -08:00
Diptanu Choudhury
b52aa931a3 Merge pull request #2222 from hashicorp/b-docker-image-not-found
Making the docker driver retry when an image is not found
2017-01-23 14:58:00 -08:00
Diptanu Choudhury
5992a2a88a Added a comment 2017-01-23 14:57:30 -08:00
Alex Dadgar
40d776d9c4 Merge pull request #2190 from hashicorp/b-docker-auth
Better Docker Auth lookup
2017-01-23 14:50:50 -08:00
Alex Dadgar
77b19f55a0 Add test and better logs
This commit adds a test to retrieving auth configurations, use either
the auth block in the config or specified via the agent config and adds
a log if lookup fails.
2017-01-23 14:48:02 -08:00
Alex Dadgar
7181c5ac48 fix flaky test 2017-01-23 14:12:38 -08:00
Alex Dadgar
67bec60f1b Close file 2017-01-23 11:37:45 -08:00
Alex Dadgar
abd06938e5 Deprecation notice 2017-01-23 11:32:51 -08:00
Alex Dadgar
3c610ec864 Remove SSL 2017-01-23 11:32:51 -08:00
Alex Dadgar
982feb8d6b undo 2017-01-23 11:32:51 -08:00
Alex Dadgar
36725370ee vendor 2017-01-23 11:32:51 -08:00
Alex Dadgar
03f9bba1e4 Better auth lookup 2017-01-23 11:32:51 -08:00
Alex Dadgar
6342d4fedf WIP 2017-01-23 11:32:51 -08:00
Alex Dadgar
8573ab9db0 fix test build 2017-01-23 11:26:34 -08:00
Alex Dadgar
afb2b29c1b remove xxx 2017-01-23 11:04:44 -08:00
Alex Dadgar
51c1310b2a Finalize 2017-01-23 11:03:38 -08:00
Alex Dadgar
225be078f9 test nomad env 2017-01-23 11:00:12 -08:00
Alex Dadgar
5f4f80d85d fix lookup 2017-01-23 11:00:12 -08:00
Alex Dadgar
a51fb0279b Clear SSL 2017-01-23 11:00:12 -08:00
Alex Dadgar
6e45884c50 rebase 2017-01-23 11:00:12 -08:00
Diptanu Choudhury
c254fbfa4f Locking appropriately before closing the channel to indicate migration 2017-01-23 10:46:57 -08:00
Alex Dadgar
71679ccef4 remove reference to entrypoint 2017-01-22 14:04:41 -08:00
Alex Dadgar
42c5cafd2f Actually randomize the splay 2017-01-22 13:50:33 -08:00
Michael Schurter
78c9c00ba8 Fix index we get allocs by 2017-01-20 16:30:40 -08:00
Diptanu Choudhury
d1bef523a9 Setting the Addrs of sibling tasks in the env 2017-01-20 14:15:53 -08:00
Michael Schurter
b048c9eefb Fix java tests 2017-01-20 14:12:30 -08:00