9692 Commits

Author SHA1 Message Date
Jeff Mitchell
1c62602278 Changelogify 2015-11-18 10:34:50 -05:00
Jeff Mitchell
7d6fec95f8 Merge pull request #780 from vicki-c/master
Port to new etcd client with TLS support
2015-11-18 10:33:09 -05:00
Vicki Cheung
ba663824bd rejecting etcd addresses without url scheme 2015-11-17 15:18:50 -08:00
Vicki Cheung
180b27f915 adding check in etcd backend to validate machine urls 2015-11-16 14:35:04 -08:00
Vicki Cheung
93c13e8293 adding etcd client dependencies 2015-11-16 13:30:27 -08:00
Vicki Cheung
444d073096 adding PermitPool to etcd backend 2015-11-15 22:38:21 -08:00
Vicki Cheung
ef32831927 porting to new etcd client 2015-11-15 22:12:06 -08:00
Jeff Mitchell
b2d2a11cb2 Merge pull request #775 from hashicorp/issue-771
Rearchitect MountTable locking and fix rollback.
2015-11-15 17:33:30 -05:00
Jeff Mitchell
546b6599de Address feedback from review 2015-11-15 17:32:57 -05:00
Jeff Mitchell
e854238582 Rearchitect MountTable locking and fix rollback.
The rollback manager was using a saved MountTable rather than the
current table, causing it to attempt to rollback unmounted mounts, and
never rollback new mounts.

In fixing this, it became clear that bad things could happen to the
mount table...the table itself could be locked, but the table pointer
(which is what the rollback manager needs) could be modified at any time
without locking. This commit therefore also returns locking to a mutex
outside the table instead of inside, and plumbs RLock/RUnlock through to
the various places that are reading the table but not holding a write
lock.

Both unit tests and race detection pass.

Fixes #771
2015-11-11 11:54:52 -05:00
Jeff Mitchell
559bf9221c Bump version to 0.4-dev instead of 0.3.1-dev 2015-11-10 10:28:40 -05:00
Jeff Mitchell
2a00e97c51 Merge pull request #772 from hashicorp/origin/new_header
New Header Redesign
2015-11-10 10:16:49 -05:00
captainill
7717f63352 edit this page 2015-11-09 21:10:49 -08:00
captainill
2ac79f6632 sidebar 2015-11-09 21:08:05 -08:00
captainill
54a3c743d0 redesign header bulk 2015-11-09 20:58:06 -08:00
Jeff Mitchell
f0684ba91a Merge pull request #762 from hashicorp/issue-732
Create a "default" policy with sensible rules.
2015-11-09 17:44:09 -05:00
Jeff Mitchell
f600e3ac29 Add no-default-policy flag and API parameter to allow exclusion of the
default policy from a token create command.
2015-11-09 17:30:50 -05:00
Jeff Mitchell
8cd1161b59 Create a "default" policy with sensible rules.
It is forced to be included with each token, but can be changed (but not
deleted).

Fixes #732
2015-11-09 15:44:09 -05:00
Jeff Mitchell
d96be075a2 Minor test fix 2015-11-09 15:37:30 -05:00
Jeff Mitchell
324d04d314 Merge pull request #769 from hashicorp/issue-769
Don't require root tokens for mount and policy endpoints.
2015-11-09 15:29:56 -05:00
Jeff Mitchell
906d3a9ce1 Don't require root tokens for mount and policy endpoints. 2015-11-09 15:29:21 -05:00
Jeff Mitchell
60697f3c70 Fix unmount help output 2015-11-09 15:23:49 -05:00
Jeff Mitchell
4636da70b8 Merge pull request #768 from hashicorp/issue-765
Print version on startup.
2015-11-09 13:53:33 -05:00
Jeff Mitchell
904e1ee600 Print version on startup.
Fixes #765
2015-11-09 13:52:55 -05:00
Jeff Mitchell
ee314634b6 Merge pull request #766 from hashicorp/issue-766
Display whether a token is an orphan on lookup.
2015-11-09 13:20:42 -05:00
Jeff Mitchell
06544afb2a Display whether a token is an orphan on lookup. 2015-11-09 13:19:59 -05:00
Jeff Mitchell
254dcccf44 Update cert documentation to note requiring sudo access. 2015-11-06 16:09:42 -05:00
Jeff Mitchell
f41d106ca2 Tag with dev for builds 2015-11-06 13:39:30 -05:00
Jeff Mitchell
f956a22a7d Rename core's 'policy' to 'policyStore' for clarification 2015-11-06 12:07:42 -05:00
Jeff Mitchell
b99df94c77 Merge pull request #759 from hashicorp/remove-root-warning
Remove warning about nonexistent root policy by using GetPolicy instead
2015-11-06 11:37:39 -05:00
Jeff Mitchell
811d0afc26 Remove warning about nonexistent root policy by using GetPolicy instead
of the listing function.
2015-11-06 11:36:40 -05:00
Jeff Mitchell
dbbbb02daf Update S3 docs 2015-11-06 09:26:09 -05:00
Jeff Mitchell
6d32b4a9e6 Changelogify 2015-11-06 09:22:30 -05:00
Jeff Mitchell
3e050bbed3 Merge pull request #758 from ys/s3-bucket-config-var
Allow s3 bucket to come from config vars
2015-11-06 09:21:35 -05:00
Yannick
f8d6f40670 Allow s3 bucket to come from config vars 2015-11-06 14:05:29 +01:00
Greg Brockman
944bbef6af Correct typo in comment 2015-11-06 00:41:14 -08:00
Greg Brockman
99f4d40fe0 Add support for etcd over TLS 2015-11-06 00:41:14 -08:00
Jeff Mitchell
9dfa3618d2 Merge pull request #752 from hashicorp/issue-749
Fix removing secondary index from exp manager.
2015-11-05 19:43:11 -05:00
Jeff Mitchell
816f204d35 Merge pull request #751 from hashicorp/issue-618
Move environment variable reading logic to API.
2015-11-05 19:42:16 -05:00
Jeff Mitchell
1ccff77aaf Add canonical import path to main package for those using golang-builder 2015-11-05 16:44:20 -05:00
Jeff Mitchell
21fcac24b7 Merge pull request #754 from hashicorp/issue-753
Switch etcd default port to 2379, in line with 2.x.
2015-11-05 09:48:26 -05:00
Jeff Mitchell
dafecff414 Switch etcd default port to 2379, in line with 2.x.
Fixes #753
2015-11-05 09:47:50 -05:00
Jeff Mitchell
4d2d42d171 Don't use the semaphore library as it's racy; instead use a simple
buffered channel. Passes all tests, including inmem, which uses it.
2015-11-04 12:27:13 -05:00
Jeff Mitchell
94984c563e Fix removing secondary index from exp manager.
Due to a typo, revoking ensures that index entries are created rather
than removed. This adds a failing, then fixed test case (and helper
function) to ensure that index entries are properly removed on revoke.

Fixes #749
2015-11-04 10:50:31 -05:00
Jeff Mitchell
673c6d726a Move environment variable reading logic to API.
This allows the same environment variables to be read, parsed, and used
from any API client as was previously handled in the CLI. The CLI now
uses the API environment variable reading capability, then overrides any
values from command line flags, if necessary.

Fixes #618
2015-11-04 10:28:00 -05:00
Jeff Mitchell
f344d1ac7f Changelog++ 2015-11-04 09:42:07 -05:00
Jeff Mitchell
446745a2dd Merge pull request #750 from svanharmelen/f-configurable-s3-endpoint
Add an option to configure the S3 endpoint
2015-11-04 09:40:44 -05:00
Sander van Harmelen
8f17567774 Add a line to the documentation to describe the new feature 2015-11-04 15:36:24 +01:00
Sander van Harmelen
3e22536d83 Add an option to configure the S3 endpoint
This enables the use of other (AWS S3 compatible) S3 endpoints.
2015-11-04 15:04:36 +01:00
Jeff Mitchell
880a6dd397 Update godeps 2015-11-04 08:53:58 -05:00