Commit Graph

4930 Commits

Author SHA1 Message Date
James Phillips 2404af6f94
Adds complete ACL support for /v1/query/<query id or name>/execute.
This was already supported by previous changes to the ACL filter, so
we just added a test to show it working.
2016-12-12 17:28:06 -08:00
James Phillips 9c785c7022
Fixes implementation of node ACLs for /v1/catalog/node/<node>.
This would return a "permission denied" error, but this changes it to
return the same response as a node that doesn't exist (as was originally
intended and written in the code comments).
2016-12-12 16:53:31 -08:00
James Phillips 35475a66df
Adds full ACL coverage for /v1/health endpoints. 2016-12-12 16:28:52 -08:00
Kyle Havlovitz 763fc2f902 Update CHANGELOG.md 2016-12-12 19:18:28 -05:00
Kyle Havlovitz 13aa0ba11b Merge pull request #2591 from hashicorp/snapshot-interval
Change raft snapshot interval to 5 seconds
2016-12-12 19:15:10 -05:00
James Phillips bcf1ffad99
Adds complete ACL coverage for /v1/coordinate/nodes and Coordinate.Update RPC. 2016-12-12 14:52:27 -08:00
James Phillips 0139bbb963
Adds support for a new "acl_agent_token" which is used for internal
catalog operations.
2016-12-12 14:52:27 -08:00
James Phillips 0ed6b1bb18
Bans anonymous queries that aren't tied to a session.
This gets us coverage of PQ creation under the existing service
policy or the soon-to-be-added session policy.
2016-12-12 14:52:27 -08:00
James Phillips 8aef91473f Merge pull request #2590 from hashicorp/acl-complete-catalog
Adds new node ACL policy and applies it to catalog endpoints.
2016-12-12 14:52:10 -08:00
Kyle Havlovitz c49ea15449
Change raft snapshot interval to 5 seconds 2016-12-12 13:31:42 -05:00
James Phillips 2ace618bf9
Adds complete ACL coverage for /v1/catalog/service/<service>. 2016-12-12 08:34:15 -08:00
James Phillips 8038f21684
Adds complete ACL coverage for /v1/catalog/nodes. 2016-12-10 16:49:19 -08:00
James Phillips 9d6567ff08
Adds complete ACL coverage for /v1/catalog/node/<node>. 2016-12-10 16:49:19 -08:00
James Phillips 9b7564490c
Adds complete ACL coverage for /v1/catalog/deregister.
This included some state store helpers to make this more efficient.
2016-12-09 21:04:44 -08:00
James Phillips 800c67c58a
Adds complete ACL coverage for /v1/catalog/register. 2016-12-09 21:04:37 -08:00
James Phillips 17db4a5722 Merge pull request #2575 from bradleyfalzon/patch-1
Link to consensus.html#deployment-table not #toc_4
2016-12-08 14:02:52 -08:00
James Phillips 66b437ca33
Removes the exception for the "consul" service in the catalog. 2016-12-07 17:58:23 -08:00
Seth Vargo e026bf2551 Merge pull request #2580 from hashicorp/sethvargo/kv_main
Switch to KV CLI in getting started
2016-12-07 14:42:13 -08:00
Seth Vargo bdb318a3ef
Switch to KV CLI in getting started 2016-12-07 14:01:51 -08:00
Seth Vargo 406a868277 Merge pull request #2579 from hashicorp/sethvargo/kv_main
Update homepage to use KV CLI instead of curl
2016-12-07 11:56:59 -08:00
Seth Vargo 2beb18c0ab
Update homepage to use KV CLI instead of curl 2016-12-07 11:32:35 -08:00
Yakau Bubnou e52fd6e0af Concurrent-safe notification mock
This patch provides additional attribute to the notification mock in
order to protect an access to the internal maps from multiple
go-routines. This is required to prevent panic errors caused by
inconsistent map state.
2016-12-07 19:31:44 +03:00
James Phillips 7fa4ab3fd1
Adds support to ACL package for node policies. 2016-12-06 20:05:15 -08:00
Chris Marchesi 4831b6de40 vendor: Add GCE deps
Add Google API and related dependencies for GCE discovery.
2016-12-06 17:46:55 -08:00
Chris Marchesi 6500d1afaa command/agent: Google Compute Engine host discovery
This commit adds several command-line and config options that facilitate
host discovery through Google Compute Engine (GCE), much like the
recently added EC2 host discovery options. This should assist with
bootstrapping and joining servers within GCE when non-static addresses
are used, such as when using managed instance groups.

Documentation has also been added. It should be noted that if running
from within a GCE instance, the only option that should be necessary is
-retry-join-gce-tag-value.
2016-12-06 17:46:40 -08:00
Kyle Havlovitz 3a24debd79 Update CHANGELOG.md 2016-12-06 20:14:58 -05:00
Brian Shumate 92cf10a8c7
Overlooked saving a couple changes 2016-12-06 18:01:43 -05:00
Brian Shumate 418c76d8bb
updates based on feedback 2016-12-06 14:46:26 -05:00
Kyle Havlovitz 6cd5e4d491 Merge pull request #2574 from hashicorp/f-udp-checksum
Update memberlist vendor deps
2016-12-06 14:20:29 -05:00
James Phillips 9b4f316b21
Sorts all the ACl policy handlers for easier navigation (no functional changes). 2016-12-06 11:06:15 -08:00
James Phillips 8ae9e17dff
Adds an opt-in for new ACL policies and features coming in Consul 0.8. 2016-12-06 11:06:14 -08:00
Seth Vargo 4e97f36614 Merge pull request #2557 from hashicorp/sethvargo/safer_server
Use a random port instead of idx in testutil
2016-12-06 10:09:28 -08:00
Bradley Falzon 839fdc64b3 Link to consensus.html#deployment-table not #toc_4 2016-12-06 15:40:40 +10:30
James Phillips fba22f997e
Fixes broken link in options doc. 2016-12-05 18:53:51 -08:00
James Phillips a3dc0965a8 Clarifies ACL replication token. 2016-12-05 18:43:05 -08:00
Kyle Havlovitz acc21cc5fe
Update memberlist vendor deps 2016-12-05 17:27:52 -05:00
Brian Shumate 291ea643d2
Some examples where sockets are possible as well 2016-12-05 16:56:31 -05:00
Brian Shumate fbd074b7e7
Add a table of CLI environment variables 2016-12-05 12:35:44 -05:00
James Phillips 4efa1a72fa Merge pull request #2568 from shantanugadgil/patch-1
Update kv.html.markdown
2016-12-03 11:23:56 -08:00
shantanugadgil f8febd94b8 Update kv.html.markdown 2016-12-03 13:35:55 +05:30
James Phillips 91b0e87436 Update CHANGELOG.md 2016-12-02 07:56:51 -08:00
James Phillips c88b4a2867 Update CHANGELOG.md 2016-12-02 07:56:06 -08:00
Sean Chittenden 24192f4d48
Small vendor update for go-sockaddr: now able to filter by CIDR. 2016-12-03 01:21:34 +11:00
Sean Chittenden 4d82f1018b Merge pull request #2563 from hashicorp/f-sockaddr-0.7
F sockaddr 0.7
2016-12-02 22:38:32 +11:00
Sean Chittenden 594e75a301
Update Windows support. 2016-12-02 18:05:18 +11:00
James Phillips 34a9708ea5 Merge pull request #2564 from mzupan/fix-query-doc
Doc Fix: The Near key is out of place
2016-12-01 22:50:22 -08:00
Mike Zupan fc352d7a62 Needs to be moved
This took 2 hours from my life. The near has to be inside a service and not in the main block.
2016-12-01 22:47:02 -08:00
Sean Chittenden 5fc97b997d
Fix compilation on Windows. 2016-12-02 17:04:28 +11:00
Sean Chittenden 830125a8b3
Run all known addresses through go-sockaddr/template.
The following is now possible:

```
$ consul agent -dev -client="{{GetPrivateIP}}" -bind='{{GetInterfaceIP "en0"}}'
```
2016-12-02 16:35:38 +11:00
Sean Chittenden f3ed18e95f
Import github.com/hashicorp/go-sockaddr 2016-12-02 15:14:44 +11:00