Commit Graph

4212 Commits

Author SHA1 Message Date
James Phillips d4b01a6c53 Updates vendored dependencies.
This removes some unused dependencies that I know we plan to re-add later,
but this makes for a clean `godep save` for now.
2016-03-07 10:45:39 -08:00
James Phillips 6ed64e7f05 Splits walk functions out from the rest of the template code. 2016-03-07 10:45:39 -08:00
James Phillips 998b691878 Integrates templates into state store and endpoint (sans tests). 2016-03-07 10:45:39 -08:00
James Phillips c816f79bf8 Wraps the prepared query to also store the compiled template. 2016-03-07 10:45:39 -08:00
James Phillips 331f1f5b8b Adds basic query template compiler and renderer. 2016-03-07 10:45:39 -08:00
James Phillips ea0aafce38 Merge pull request #1802 from hashicorp/b-ping-leak
Updates memberlist to get goroutine leak fix for TCP pings.
2016-03-07 10:44:14 -08:00
James Phillips 9139cee5e5 Updates memberlist to get goroutine leak fix for TCP pings. 2016-03-07 10:41:54 -08:00
James Phillips f6e042b6f2 Merge pull request #1801 from hashicorp/docs-fix
Minor docs fix
2016-03-07 08:18:08 -08:00
vishalnayak 680b6ffc21 minor docs fix 2016-03-07 11:13:58 -05:00
James Phillips b16f2e7392 Merge pull request #1789 from hashicorp/jt-enterprise-bnr
add announcement banner for Consul Enterprise
2016-03-04 17:33:05 -08:00
James Phillips 60e54b8a07 Preps master for 0.7 development. 2016-03-04 17:31:36 -08:00
James Phillips eda59145c2 Preps for the 0.6.4 release. 2016-03-04 16:38:39 -08:00
James Phillips c57a0da777 Catches up the change log. 2016-03-04 16:37:35 -08:00
James Phillips cce0ace53a Fixes name of new query ACL. 2016-03-04 16:32:53 -08:00
James Phillips 753e50d54c Merge pull request #1794 from hashicorp/f-check-api
Adds support for new PUT API for checks.
2016-03-04 15:29:32 -08:00
James Phillips d9e79f1358 Merge pull request #1793 from cleung2010/rrt-error-msg
Correct the rtt -wan error message
2016-03-04 15:21:16 -08:00
James Phillips 23247b3699 Adds support for new PUT API for checks. 2016-03-04 15:18:25 -08:00
Calvin Leung Huang ff38fbc6a3 Correct the rtt -wan error message 2016-03-04 16:27:30 -05:00
Kevin Fishner 272c9fae1c fix UTMs 2016-03-03 15:20:24 -08:00
Kevin Fishner b71b0e7d0b update copyedit to add the word build 2016-03-03 15:19:05 -08:00
captainill 293aba329f add announcement banner for Consul Enterprise launch 2016-03-03 12:23:30 -08:00
James Phillips 3bf56f7fb4 Merge pull request #1786 from moofish32/consol_node_schema_fix
Session Table index require Node
2016-03-02 22:13:05 -08:00
Mike Cowgill 5435055c5f one line schema change to not allow missing for sessions Table node index, Fixes #1774 2016-03-02 21:19:53 -08:00
James Phillips ad13b34c09 Merge pull request #1785 from hashicorp/f-check-put-api
Adds a PUT-based API for TTL checks and retains output on timeouts.
2016-03-02 20:17:50 -08:00
James Phillips f46fa33278 Tweaks formatting of inline output messages. 2016-03-02 19:47:00 -08:00
James Phillips 70575002d9 Retains the last output when a TTL check times out. 2016-03-02 17:58:01 -08:00
James Phillips 7ebad899da Adds a new PUT-based TTL check update endpoint. 2016-03-02 17:54:01 -08:00
James Phillips ef1a588b7a Merge pull request #1777 from hashicorp/b-port-docfix
TLS example and correcting error
2016-03-01 13:02:30 -08:00
James Phillips b92243d8d0 Tweaks the address and advertise docs. 2016-03-01 13:01:13 -08:00
James Phillips 2a4436075d Merge pull request #1766 from hashicorp/b-redact-in-get
Adds missing token redact in the GET path.
2016-02-26 16:12:10 -08:00
James Phillips 90898dff98 Adds missing token redact in the GET path. 2016-02-26 15:59:00 -08:00
James Phillips f996433df0 Merge pull request #1759 from hashicorp/f-prep-version
Preps for 0.6.4 release before 0.7.0.
2016-02-24 23:36:35 -08:00
James Phillips 7284a5e8fc Preps for 0.6.4 release before 0.7.0. 2016-02-24 23:35:46 -08:00
Ryan Breen 6f5b783da9 Merge pull request #1758 from matschaffer/patch-1
Metric name typo
2016-02-24 21:55:16 -05:00
Mat Schaffer 3142a51688 Metric name typo 2016-02-25 11:20:53 +09:00
James Phillips 213026b033 Merge pull request #1757 from hashicorp/f-revert-1667
Reverts server connection rebalancing changes from #1667
2016-02-24 18:07:13 -08:00
James Phillips ad77f20867 Merge pull request #1748 from hashicorp/f-client-pq-acls
Creates new "prepared-query" ACL type and new token capture behavior.
2016-02-24 18:06:50 -08:00
James Phillips dca480e284 Cleans up the documents. 2016-02-24 18:05:58 -08:00
James Phillips 7d392118d2 Adds a check for users re-submitting the redacted token. 2016-02-24 17:35:26 -08:00
James Phillips 483898abe5 Renames "prepared_query" ACL policy to "query". 2016-02-24 17:02:06 -08:00
James Phillips 87ceb2f3de Changes to more idiomatic "ok" pattern for prefix getter. 2016-02-24 16:26:43 -08:00
James Phillips e283f9512e Renames a unit test. 2016-02-24 16:17:20 -08:00
James Phillips 93a9ed1a79 Reverts the change log for GH-1667. 2016-02-24 15:39:58 -08:00
James Phillips ff25d033a6 Revert "Merge pull request #1667 from hashicorp/b-redistribute-clients"
This reverts commit 8f30dea420, reversing
changes made to eb27a02956.
2016-02-24 15:38:03 -08:00
James Phillips 2b2c1a583a Fixes a typo in the change log. 2016-02-24 15:31:47 -08:00
James Phillips b64f19bb08 Adds an upgrade note about the new ACL behavior. 2016-02-24 01:33:10 -08:00
James Phillips 899dcfe053 Completes switch of prepared_query ACLs to govern query names. 2016-02-24 01:26:16 -08:00
James Phillips 880cd21667 Refactors docs into a more complete state for prepared query ACLs. 2016-02-23 22:27:44 -08:00
James Phillips 67de77482e Creates new "prepared-query" ACL type and new token capture behavior.
Prior to this change, prepared queries had the following behavior for
ACLs, which will need to change to support templates:

1. A management token, or a token with read access to the service being
   queried needed to be provided in order to create a prepared query.

2. The token used to create the prepared query was stored with the query
   in the state store and used to execute the query.

3. A management token, or the token used to create the query needed to be
   supplied to perform and CRUD operations on an existing prepared query.

This was pretty subtle and complicated behavior, and won't work for
templates since the service name is computed at execution time. To solve
this, we introduce a new "prepared-query" ACL type, where the prefix
applies to the query name for static prepared query types and to the
prefix for template prepared query types.

With this change, the new behavior is:

1. A management token, or a token with "prepared-query" write access to
   the query name or (soon) the given template prefix is required to do
   any CRUD operations on a prepared query, or to list prepared queries
   (the list is filtered by this ACL).

2. You will no longer need a management token to list prepared queries,
   but you will only be able to see prepared queries that you have access
   to (you get an empty list instead of permission denied).

3. When listing or getting a query, because it was easy to capture
   management tokens given the past behavior, this will always blank out
   the "Token" field (replacing the contents as <hidden>) for all tokens
   unless a management token is supplied. Going forward, we should
   discourage people from binding tokens for execution unless strictly
   necessary.

4. No token will be captured by default when a prepared query is created.
   If the user wishes to supply an execution token then can pass it in via
   the "Token" field in the prepared query definition. Otherwise, this
   field will default to empty.

5. At execution time, we will use the captured token if it exists with the
   prepared query definition, otherwise we will use the token that's passed
   in with the request, just like we do for other RPCs (or you can use the
   agent's configured token for DNS).

6. Prepared queries with no name (accessible only by ID) will not require
   ACLs to create or modify (execution time will depend on the service ACL
   configuration). Our argument here is that these are designed to be
   ephemeral and the IDs are as good as an ACL. Management tokens will be
   able to list all of these.

These changes enable templates, but also enable delegation of authority to
manage the prepared query namespace.
2016-02-23 17:12:43 -08:00
csawyerYumaed 5026a40ec1 Update documentation - add Network Ports.
Update security.html.markdown add section on Network Port usage.
TODO: add Atlas port usage.
2016-02-23 11:27:15 -08:00