open-consul/website/source/api
Matt Keeler 0c76a4389f
ACL Token Persistence and Reloading (#5328)
This PR adds two features which will be useful for operators when ACLs are in use.

1. Tokens set in configuration files are now reloadable.
2. If `acl.enable_token_persistence` is set to `true` in the configuration, tokens set via the `v1/agent/token` endpoint are now persisted to disk and loaded when the agent starts (or during configuration reload)

Note that token persistence is opt-in so our users who do not want tokens on the local disk will see no change.

Some other secondary changes:

* Refactored a bunch of places where the replication token is retrieved from the token store. This token isn't just for replicating ACLs and now it is named accordingly.
* Allowed better paths in the `v1/agent/token/` API. Instead of paths like: `v1/agent/token/acl_replication_token` the path can now be just `v1/agent/token/replication`. The old paths remain to be valid. 
* Added a couple new API functions to set tokens via the new paths. Deprecated the old ones and pointed to the new names. The names are also generally better and don't imply that what you are setting is for ACLs but rather are setting ACL tokens. There is a minor semantic difference there especially for the replication token as again, its no longer used only for ACL token/policy replication. The new functions will detect 404s and fallback to using the older token paths when talking to pre-1.4.3 agents.
* Docs updated to reflect the API additions and to show using the new endpoints.
* Updated the ACL CLI set-agent-tokens command to use the non-deprecated APIs.
2019-02-27 14:28:31 -05:00
..
acl Fix "Read Self Token" URL in acl/token docs (#4978) 2018-11-26 10:55:15 -08:00
agent fix broken link (#5273) 2019-01-25 11:40:31 -06:00
connect Support Agent Caching for Service Discovery Results (#4541) 2018-10-10 16:55:34 +01:00
operator Support Agent Caching for Service Discovery Results (#4541) 2018-10-10 16:55:34 +01:00
acl-legacy.html.md Adds documentation for the new ACL APIs (#4851) 2018-10-31 15:11:51 -07:00
agent.html.md ACL Token Persistence and Reloading (#5328) 2019-02-27 14:28:31 -05:00
catalog.html.md Add more details on SkipNodeUpdate option (#5345) 2019-02-26 11:00:23 -06:00
connect.html.md Starting Docs (#46) 2018-06-25 12:24:05 -07:00
coordinate.html.md Support Agent Caching for Service Discovery Results (#4541) 2018-10-10 16:55:34 +01:00
event.html.md Support Agent Caching for Service Discovery Results (#4541) 2018-10-10 16:55:34 +01:00
health.html.md New ACLs (#4791) 2018-10-19 12:04:07 -04:00
index.html.md Add common blocking implementation details to docs (#5358) 2019-02-21 15:33:45 -06:00
kv.html.md change depth to prefix 2018-12-07 14:57:00 -05:00
libraries-and-sdks.html.md Documentation - New plugin for frontend applications based in webpack (#5310) 2019-02-12 11:13:43 -06:00
operator.html.md Deprecates the ACLs internals doc in favor of a guide. 2017-04-04 18:56:42 -07:00
query.html.md Improve Connect with Prepared Queries (#5291) 2019-02-04 09:36:51 -05:00
session.html.md website: clarify format of check IDs for sessions (#5036) 2018-12-11 09:00:52 -08:00
snapshot.html.md Support Agent Caching for Service Discovery Results (#4541) 2018-10-10 16:55:34 +01:00
status.html.md Support Agent Caching for Service Discovery Results (#4541) 2018-10-10 16:55:34 +01:00
txn.html.md txn: update existing txn api docs with new operations 2019-01-15 16:54:07 -08:00