Commit Graph

6501 Commits

Author SHA1 Message Date
Illirgway 46915108e7 Fix bug with unused (replaced with "") CONSUL_HTTP_AUTH in some places
example: https://github.com/hashicorp/consul/blob/master/watch/plan.go#L26

	conf := consulapi.DefaultConfig()
	conf.Address = address
	conf.Datacenter = p.Datacenter
	conf.Token = p.Token                             # <-- replace Token from DefaultConfig/CONSUL_HTTP_AUTH with ""
	client, err := consulapi.NewClient(conf)

how to reproduce bug:
0. consul -> localhost:8500 with more than 0 service checks
1. deny all for anonymous token
2. create appropriate acl <token> for watch checks (agent:read + node:read,service:read)
3. bash:
CONSUL_HTTP_AUTH=<token> consul watch -http-addr=localhost:8500 -type=checks # --> return []
consul watch -http-addr=localhost:8500 -type=checks -token=<token> # -> return { .... right json result .... }
2017-08-16 01:51:18 +03:00
Frank Schröder fd4bf4070e doc: retry_join is a string array (#3388) 2017-08-10 09:58:26 +02:00
wuxin 792a535c87 fix command/kv_import.go help text (#3387) 2017-08-10 09:17:37 +02:00
James Phillips 48b1afeb26 Removes partial details in the retry_join config file section. (#3386) 2017-08-09 21:27:17 -07:00
Seth Vargo b6f4df4b03 Document the new auto-join in the config and CLI (#3381)
* Document the new auto-join in the config and CLI
* Mention and example DNS
2017-08-09 21:14:56 -07:00
James Phillips 843acdaa9b Adds a note about the 429 response code. 2017-08-09 20:10:44 -07:00
James Phillips b465b8d56e Merge pull request #3385 from hashicorp/issue-3376
Switches to using a read lock for the agent's RPC dispatcher.
2017-08-09 18:53:06 -07:00
James Phillips 738ac55d96
Switches to using a read lock for the agent's RPC dispatcher.
This prevents RPC calls from getting serialized in this spot.

Fixes #3376
2017-08-09 18:51:55 -07:00
James Phillips b967ff2fbb
Puts tree in 0.9.3 dev mode. 2017-08-09 18:33:57 -07:00
James Phillips 359f48137e
Bumps website version to 0.9.2. 2017-08-09 18:02:05 -07:00
James Phillips 4af073231b
Release v0.9.2 2017-08-09 17:46:41 -07:00
James Phillips 00986f8b43
Puts the tree in 0.9.2 release mode. 2017-08-09 17:36:35 -07:00
James Phillips a92a236be3 Update CHANGELOG.md 2017-08-09 16:19:36 -07:00
Frank Schröder 32d4eecc1a agent: honor deprecated flags for retry-join-{ec2,azure,gce} (#3384) 2017-08-09 16:18:30 -07:00
James Phillips 075013e700 Update CHANGELOG.md 2017-08-09 15:30:52 -07:00
James Phillips 4d56016cd5 Merge pull request #3383 from hashicorp/revert-3340-issue_2637
Revert "Return 403 rather than a 404 when acls cause all results to be filter…"
2017-08-09 15:07:10 -07:00
James Phillips 3518e27a76 Revert "Return 403 rather than a 404 when acls cause all results to be filter…" 2017-08-09 15:06:57 -07:00
James Phillips bdf12bf338 Merge pull request #3382 from hashicorp/revert-3380-fix_acls
Revert "Ensure that we return a permission denied only if the list of keys/en…"
2017-08-09 15:06:34 -07:00
James Phillips 91205b2cd6 Revert "Ensure that we return a permission denied only if the list of keys/en…" 2017-08-09 15:06:20 -07:00
preetapan 65c45e16c3 Merge pull request #3380 from hashicorp/fix_acls
Ensure that we return a permission denied only if the list of keys/en…
2017-08-09 15:51:10 -05:00
Preetha Appan 121326161e Added unit test case to kvs_endpointtest 2017-08-09 15:50:22 -05:00
Preetha Appan d06002dc62 Ensure that we return a permission denied only if the list of keys/entries prior to filtering by ACL is non empty 2017-08-09 15:32:18 -05:00
James Phillips 001f3dbd39 Merge pull request #3377 from hashicorp/refactor-pkgs
Refactor packages
2017-08-09 11:50:44 -07:00
Preetha Appan 00a5eb9071 Add note about configuring recursors to be able to resolve external services. 2017-08-09 11:13:30 -05:00
Frank Schroeder c38dcf2d17
agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
Frank Schroeder 85bdb77d90
agent: move agent/consul/servers to agent/router 2017-08-09 14:36:37 +02:00
Frank Schroeder 1d0bbfed9c
agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
James Phillips 6159433aa0 Merge pull request #3375 from sin5th/sin5th
fix UnitTest in acl
2017-08-08 23:26:18 -07:00
James Phillips 0f0304f464
Puts tree into 0.9.2 dev mode. 2017-08-08 23:22:19 -07:00
游远 25860a0718 fix UnitTest in acl 2017-08-09 14:21:21 +08:00
James Phillips d77aaa31a4 Bumps download version to 0.9.1. 2017-08-08 22:47:24 -07:00
James Phillips 77ac0445b9
Release v0.9.1 2017-08-08 22:29:24 -07:00
James Phillips 02c719ed20
Puts the tree into 0.9.1 release mode. 2017-08-08 21:53:28 -07:00
James Phillips a600f681d6
Cleans up some go fmt issues. 2017-08-08 21:52:50 -07:00
Kyle Havlovitz 4daba5ddd5
vendor: update github.com/armon/go-metrics 2017-08-08 18:29:27 -07:00
James Phillips 859f7cba0c Update CHANGELOG.md 2017-08-08 16:28:03 -07:00
James Phillips 2e4882cbed Merge pull request #3373 from hashicorp/issue-3253
Adds a guard to make sure that empty log lines don't close consul monitor.
2017-08-08 16:26:52 -07:00
James Phillips a2bb506cea
Adds a guard to make sure that empty log lines don't close consul monitor.
Fixes #3253.
2017-08-08 16:05:29 -07:00
James Phillips 7b4d3d5576
Fixes a vet error. 2017-08-08 16:00:18 -07:00
Kyle Havlovitz bc05457fd9 Update CHANGELOG.md 2017-08-08 14:01:51 -07:00
Kyle Havlovitz 991e910002 Update CHANGELOG.md 2017-08-08 14:01:33 -07:00
Kyle Havlovitz 8c2e422074 Merge pull request #3369 from hashicorp/metrics-enhancements
Add support for labels/filters from go-metrics
2017-08-08 13:55:30 -07:00
Kyle Havlovitz 160395d3c7
Add doc links for metrics endpoint 2017-08-08 13:05:38 -07:00
Kyle Havlovitz 879651a4ea
Update api structs for metrics endpoint 2017-08-08 12:33:59 -07:00
Kyle Havlovitz 6fed5dc490
vendor: update github.com/armon/go-metrics 2017-08-08 12:33:47 -07:00
Kyle Havlovitz 308d7b785d
Update docs for metrics endpoint 2017-08-08 12:33:30 -07:00
Preetha Appan 4a9eff6298 Update CHANGELOG.md 2017-08-08 09:54:45 -05:00
preetapan 608de9180a Merge pull request #3353 from hashicorp/issue_1301
Add NS records and other DNS RFC fixes.
2017-08-08 09:51:08 -05:00
Frank Schroeder 0f4986dcc7
dns: minor cleanups 2017-08-08 13:55:58 +02:00
Kyle Havlovitz 975ded2714
Add support for labels/filters from go-metrics 2017-08-08 01:45:10 -07:00