Commit Graph

50 Commits (c89f4f420c133878150523de4117ceea0adfedde)

Author SHA1 Message Date
James Phillips 9c3e643d4f
Does a complete rework of the ACL guide. 2017-04-05 10:36:19 -07:00
James Phillips 5ab7ea6f53
Deprecates the ACLs internals doc in favor of a guide. 2017-04-04 18:56:42 -07:00
Seth Vargo 7779c5942c
Link to new api 2017-04-04 12:52:00 -04:00
Seth Vargo 99c3592064
Update API docs 2017-04-04 12:33:35 -04:00
James Phillips 11ee9a9e72
Disables agent-level enforcement on Consul agents unless acl_datacenter is set. 2017-03-29 12:24:42 -07:00
James Phillips d428bc63c1
Modifies server reconcile path to not use the server's token for internal operations. 2017-03-23 13:34:30 -07:00
James Phillips 4956a66638 Adds session policy example to ACL internals doc. 2016-12-14 21:31:59 -08:00
James Phillips 3a44d46126
Adds some basic documentation about the new ACL changes. 2016-12-14 20:32:44 -08:00
James Phillips a3dc0965a8 Clarifies ACL replication token. 2016-12-05 18:43:05 -08:00
James Turnbull 8a145d50a3 Removed two space after period exceptions 2016-11-25 13:25:09 -05:00
James Turnbull 23a4a96ad3 Documentation pass
I was reviewing some docs and found a few issues.

1. Fixed some spelling mistakes.
2. Re-formatted some paragraphs.
3. Changed some potentially loaded language.
4. Fixed some grammar issues.
5. Tried to consistently use syntax-highlighting.
6. Fixed post-period spacing.
7. Fixed some formatting issues and inconsistency.
8. All "notes" are either proper notes or re-written.
2016-11-25 12:02:32 -05:00
Kyle Havlovitz 345e2366eb Add keyring api website doc sections 2016-11-22 20:10:43 -05:00
James Phillips 2c9885d10d
Updates documentation with details on the Consul operator actions. 2016-08-30 13:15:37 -07:00
kyhavlov c0b5e0ee06 Fix links for ACL replication status 2016-08-17 12:41:04 -04:00
James Phillips 077f048f0c Merge pull request #2246 from atomicpirate/patch-1
Minor fix: "lookup up" -> "looking up"
2016-08-12 16:45:41 -07:00
atomicpirate 5a77daac60 Minor fix: "lookup up" -> "looking up" 2016-08-05 10:18:13 -04:00
James Phillips c499c4e7d3
Updates documentation for ACL replication. 2016-08-05 00:23:28 -07:00
Sean Chittenden 92298e3d02
Speling police 2016-05-15 09:13:52 -07:00
James Phillips 6711662676 Adds a note about template query ACLs. 2016-03-17 08:21:58 -07:00
James Phillips dca480e284 Cleans up the documents. 2016-02-24 18:05:58 -08:00
James Phillips 483898abe5 Renames "prepared_query" ACL policy to "query". 2016-02-24 17:02:06 -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
Seth Vargo cae0ff354a Use HTTPS + www. where appropriate 2016-01-13 17:44:01 -05:00
Jack Pearkes 25f0f3cb37 website: fix broken link on acl page 2015-07-31 12:14:28 -07:00
Ryan Uber 38175f450b website: docs for keyring ACLs 2015-07-07 11:45:49 -06:00
Ryan Uber 84a47947d7 website: fix event acl policy docs 2015-06-19 12:18:09 -07:00
Ryan Uber 1e5a2a8960 website: add docs for user event acls 2015-06-18 18:13:29 -07:00
Ryan Uber 0381e1a253 website: fix mention of read-only policy for service acls 2015-06-18 18:13:01 -07:00
Ryan Uber 9285ec1891 website: add note about anonymous token and discovery ACLs 2015-06-11 17:39:01 -07:00
Ryan Uber 96746fb1c1 website: document service discovery ACLs 2015-06-11 14:45:52 -07:00
Armon Dadgar 9707383021 website: Update ACL description to longest-prefix 2015-05-06 12:04:40 -07:00
Ryan Uber 8d2834fb12 website: document service and check acl options 2015-04-28 14:28:06 -07:00
Ryan Breen d90a466f45 Website: more cleanup for docs/internals/acl.html. 2015-03-28 11:54:16 -04:00
Ryan Breen ba3071c147 Website: GH-781 and cleanup for docs/internals/acl.html. 2015-03-28 11:26:26 -04:00
Ryan Breen 709de1a43b Website: GH-730 for docs/internals/acl.html. 2015-03-22 11:44:16 -04:00
Ryan Breen 30b7cf7f1f Website: GH-747 change acl_master token to acl_master_token 2015-03-03 11:46:57 -05:00
Ryan Breen caf1783366 Website: GH-747 Add docs on acl_master_token installation. 2015-03-03 11:33:49 -05:00
Emil Hessman 880e21837c website: omit excessive use of the word lastly
Simplify wording by removing various uses of the word lastly.
2015-01-09 06:37:26 +01:00
Armon Dadgar cafba93869 consul: Enforce service registration ACLs 2014-11-30 21:05:15 -07:00
Armon Dadgar 4c410cf1f9 website: Update ACL docs 2014-11-30 20:12:44 -07:00
Dan Frost 738ade9df8 docs: internals/acl: minor fixes 2014-11-26 12:57:15 +00:00
Laurent Raufaste 6e69b3e40d Another typo 2014-11-13 17:44:20 -05:00
Laurent Raufaste 7f73e03b0b extra ' 2014-11-13 17:43:25 -05:00
Laurent Raufaste 29aaffdc37 Doc explaining the blacklist mode and consul exec 2014-11-13 17:42:39 -05:00
Laurent Raufaste cba968ad4d Small typo in the doc 2014-10-23 14:32:11 -04:00
Seth Vargo 869b194127 Use new Markdown syntaxes and add SEO descriptions 2014-10-19 19:42:13 -04:00
Christian Berg 28fc0fd912 Fix typo
Should be whitelist, not whilelist.
2014-09-23 15:24:19 +02:00
Armon Dadgar 7cd10c807f website: rewording 2014-08-18 15:46:59 -07:00
Armon Dadgar 781ff2048d website: ACL internals 2014-08-18 15:46:59 -07:00