{"action":"created","comment":{"url":"https://api.github.com/repos/hashicorp/consul/pulls/comments/89021500","pull_request_review_id":9571447,"id":89021500,"diff_hunk":"@@ -130,3 +134,140 @@ If ACLs are enabled, the client will need to supply an ACL Token with\n \n The return code will indicate success or failure.\n \n+### <a name=\"keyring-install\"></a> /v1/operator/keyring/install\n+\n+Available in Consul 0.7.2 and later, the keyring install endpoint supports the\n+`PUT` method.\n+\n+#### PUT Method\n+\n+Using the `PUT` method, this endpoint will install a new gossip encryption key\n+into the cluster. There is more information on gossip encryption available\n+[here](/docs/agent/encryption.html#gossip-encryption).\n+\n+The register endpoint expects a JSON request body to be PUT. The request\n+body must look like:\n+\n+```javascript\n+{\n+  \"Key\": \"3lg9DxVfKNzI8O+IQ5Ek+Q==\"\n+}\n+```\n+\n+The `Key` field is mandatory and provides the encryption key to install into the\n+cluster.\n+\n+If ACLs are enabled, the client will need to supply an ACL Token with\n+[`keyring`](/docs/internals/acl.html#keyring) write privileges.\n+\n+The return code will indicate success or failure.\n+\n+### <a name=\"keyring-list\"></a> /v1/operator/keyring/list\n+\n+Available in Consul 0.7.2 and later, the keyring install endpoint supports the\n+`GET` method.\n+\n+#### GET Method\n+\n+Using the `GET` method, this endpoint will list the gossip encryption keys\n+installed on both the WAN and LAN rings of every known datacenter. There is more\n+information on gossip encryption available\n+[here](/docs/agent/encryption.html#gossip-encryption).\n+\n+If ACLs are enabled, the client will need to supply an ACL Token with\n+[`keyring`](/docs/internals/acl.html#keyring) read privileges.\n+\n+A JSON body is returned that looks like this:\n+\n+```javascript\n+[\n+    {\n+        \"WAN\": true,\n+        \"Datacenter\": \"dc1\",\n+        \"Keys\": {\n+            \"0eK8RjnsGC/+I1fJErQsBA==\": 1,\n+            \"G/3/L4yOw3e5T7NTvuRi9g==\": 1,\n+            \"z90lFx3sZZLtTOkutXcwYg==\": 1\n+        },\n+        \"NumNodes\": 1\n+    },\n+    {\n+        \"WAN\": false,\n+        \"Datacenter\": \"dc1\",\n+        \"Keys\": {\n+            \"0eK8RjnsGC/+I1fJErQsBA==\": 1,\n+            \"G/3/L4yOw3e5T7NTvuRi9g==\": 1,\n+            \"z90lFx3sZZLtTOkutXcwYg==\": 1\n+        },\n+        \"NumNodes\": 1\n+    }\n+]\n+```\n+\n+`WAN` is true if the block refers to the WAN ring of that datacenter (rather than\n+ LAN).\n+\n+`Datacenter` is the datacenter the block refers to.\n+\n+`Keys` is a map of each gossip key to the number of nodes it's currently installed\n+ on.\n+\n+`NumNodes` is the total number of nodes in the datacenter.\n+\n+### <a name=\"keyring-remove\"></a> /v1/operator/keyring/remove\n+\n+Available in Consul 0.7.2 and later, the keyring remove endpoint supports the\n+`PUT` method.\n+\n+#### PUT Method","path":"website/source/docs/agent/http/operator.html.markdown","position":100,"original_position":100,"commit_id":"3b8b6ae1a9ef1808cf225ea0f0a3c12404d915bc","original_commit_id":"3b8b6ae1a9ef1808cf225ea0f0a3c12404d915bc","user":{"login":"slackpad","id":673509,"avatar_url":"https://avatars.githubusercontent.com/u/673509?v=3","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"body":"This is a DELETE.","created_at":"2016-11-22T00:36:53Z","updated_at":"2016-11-22T00:45:42Z","html_url":"https://github.com/hashicorp/consul/pull/2509#discussion_r89021500","pull_request_url":"https://api.github.com/repos/hashicorp/consul/pulls/2509","_links":{"self":{"href":"https://api.github.com/repos/hashicorp/consul/pulls/comments/89021500"},"html":{"href":"https://github.com/hashicorp/consul/pull/2509#discussion_r89021500"},"pull_request":{"href":"https://api.github.com/repos/hashicorp/consul/pulls/2509"}}},"pull_request":{"url":"https://api.github.com/repos/hashicorp/consul/pulls/2509","id":93692262,"html_url":"https://github.com/hashicorp/consul/pull/2509","diff_url":"https://github.com/hashicorp/consul/pull/2509.diff","patch_url":"https://github.com/hashicorp/consul/pull/2509.patch","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/2509","number":2509,"state":"open","locked":false,"title":"Add keyring http endpoints","user":{"login":"kyhavlov","id":4177697,"avatar_url":"https://avatars.githubusercontent.com/u/4177697?v=3","gravatar_id":"","url":"https://api.github.com/users/kyhavlov","html_url":"https://github.com/kyhavlov","followers_url":"https://api.github.com/users/kyhavlov/followers","following_url":"https://api.github.com/users/kyhavlov/following{/other_user}","gists_url":"https://api.github.com/users/kyhavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/kyhavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyhavlov/subscriptions","organizations_url":"https://api.github.com/users/kyhavlov/orgs","repos_url":"https://api.github.com/users/kyhavlov/repos","events_url":"https://api.github.com/users/kyhavlov/events{/privacy}","received_events_url":"https://api.github.com/users/kyhavlov/received_events","type":"User","site_admin":false},"body":"First pass at adding the keyring endpoints for #2502","created_at":"2016-11-15T02:56:42Z","updated_at":"2016-11-22T00:45:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d16e804c291b8656e0cc78049174399b699d39ab","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hashicorp/consul/milestones/6","html_url":"https://github.com/hashicorp/consul/milestones/0.7.2","labels_url":"https://api.github.com/repos/hashicorp/consul/milestones/6/labels","id":2123649,"number":6,"title":"0.7.2","description":"","creator":{"login":"slackpad","id":673509,"avatar_url":"https://avatars.githubusercontent.com/u/673509?v=3","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":2,"state":"open","created_at":"2016-11-09T04:35:09Z","updated_at":"2016-11-21T19:08:05Z","due_on":"2016-11-29T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/hashicorp/consul/pulls/2509/commits","review_comments_url":"https://api.github.com/repos/hashicorp/consul/pulls/2509/comments","review_comment_url":"https://api.github.com/repos/hashicorp/consul/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/2509/comments","statuses_url":"https://api.github.com/repos/hashicorp/consul/statuses/3b8b6ae1a9ef1808cf225ea0f0a3c12404d915bc","head":{"label":"hashicorp:f-keyring-api","ref":"f-keyring-api","sha":"3b8b6ae1a9ef1808cf225ea0f0a3c12404d915bc","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":14125254,"name":"consul","full_name":"hashicorp/consul","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/consul","description":"Consul is a tool for service discovery, monitoring and configuration.","fork":false,"url":"https://api.github.com/repos/hashicorp/consul","forks_url":"https://api.github.com/repos/hashicorp/consul/forks","keys_url":"https://api.github.com/repos/hashicorp/consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/consul/teams","hooks_url":"https://api.github.com/repos/hashicorp/consul/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/consul/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/consul/events","assignees_url":"https://api.github.com/repos/hashicorp/consul/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/consul/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/consul/tags","blobs_url":"https://api.github.com/repos/hashicorp/consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/consul/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/consul/languages","stargazers_url":"https://api.github.com/repos/hashicorp/consul/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/consul/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/consul/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/consul/subscription","commits_url":"https://api.github.com/repos/hashicorp/consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/consul/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/consul/merges","archive_url":"https://api.github.com/repos/hashicorp/consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/consul/downloads","issues_url":"https://api.github.com/repos/hashicorp/consul/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/consul/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/consul/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/consul/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/consul/releases{/id}","deployments_url":"https://api.github.com/repos/hashicorp/consul/deployments","created_at":"2013-11-04T22:15:27Z","updated_at":"2016-11-22T00:34:49Z","pushed_at":"2016-11-22T00:09:23Z","git_url":"git://github.com/hashicorp/consul.git","ssh_url":"git@github.com:hashicorp/consul.git","clone_url":"https://github.com/hashicorp/consul.git","svn_url":"https://github.com/hashicorp/consul","homepage":"https://www.consul.io/","size":21126,"stargazers_count":7782,"watchers_count":7782,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1314,"mirror_url":null,"open_issues_count":527,"forks":1314,"open_issues":527,"watchers":7782,"default_branch":"master"}},"base":{"label":"hashicorp:master","ref":"master","sha":"8ef76ec85131c9fdde6f6da26431fb40b68881f4","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":14125254,"name":"consul","full_name":"hashicorp/consul","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/consul","description":"Consul is a tool for service discovery, monitoring and configuration.","fork":false,"url":"https://api.github.com/repos/hashicorp/consul","forks_url":"https://api.github.com/repos/hashicorp/consul/forks","keys_url":"https://api.github.com/repos/hashicorp/consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/consul/teams","hooks_url":"https://api.github.com/repos/hashicorp/consul/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/consul/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/consul/events","assignees_url":"https://api.github.com/repos/hashicorp/consul/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/consul/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/consul/tags","blobs_url":"https://api.github.com/repos/hashicorp/consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/consul/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/consul/languages","stargazers_url":"https://api.github.com/repos/hashicorp/consul/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/consul/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/consul/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/consul/subscription","commits_url":"https://api.github.com/repos/hashicorp/consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/consul/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/consul/merges","archive_url":"https://api.github.com/repos/hashicorp/consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/consul/downloads","issues_url":"https://api.github.com/repos/hashicorp/consul/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/consul/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/consul/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/consul/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/consul/releases{/id}","deployments_url":"https://api.github.com/repos/hashicorp/consul/deployments","created_at":"2013-11-04T22:15:27Z","updated_at":"2016-11-22T00:34:49Z","pushed_at":"2016-11-22T00:09:23Z","git_url":"git://github.com/hashicorp/consul.git","ssh_url":"git@github.com:hashicorp/consul.git","clone_url":"https://github.com/hashicorp/consul.git","svn_url":"https://github.com/hashicorp/consul","homepage":"https://www.consul.io/","size":21126,"stargazers_count":7782,"watchers_count":7782,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1314,"mirror_url":null,"open_issues_count":527,"forks":1314,"open_issues":527,"watchers":7782,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashicorp/consul/pulls/2509"},"html":{"href":"https://github.com/hashicorp/consul/pull/2509"},"issue":{"href":"https://api.github.com/repos/hashicorp/consul/issues/2509"},"comments":{"href":"https://api.github.com/repos/hashicorp/consul/issues/2509/comments"},"review_comments":{"href":"https://api.github.com/repos/hashicorp/consul/pulls/2509/comments"},"review_comment":{"href":"https://api.github.com/repos/hashicorp/consul/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hashicorp/consul/pulls/2509/commits"},"statuses":{"href":"https://api.github.com/repos/hashicorp/consul/statuses/3b8b6ae1a9ef1808cf225ea0f0a3c12404d915bc"}}}}
{"actor":{"display_login":"slackpad"}}