GitHub PullRequestReviewCommentEvent at 2014-07-07 15:08:28
Repository: basho_docs
Actor: bkerley
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/basho/basho_docs/pulls/comments/14601320","id":14601320,"diff_hunk":"@@ -0,0 +1,203 @@\n+---\n+title: Client-side Security\n+project: riak\n+version: 2.0.0+\n+document: tutorial\n+audience: advanced\n+keywords: [developers, security, ssl, certificate]\n+---\n+\n+If you have enabled [[Riak Security|Authentication and Authorization]]\n+and chosen either `password`, `certificate`, or `pam` as your\n+[[security source|Managing Security Sources]], any client attempting to\n+connect to Riak will have to authenticate itself, either using username\n+and password (for the `password` or `pam` security sources) or a\n+client-side SSL certificate signed by the same authority as the SSL\n+certificate recognized by your Riak cluster.\n+\n+This tutorial will show you to implement client-side authentication for\n+each of Riak's officially supported [[client libraries]]. A guide to\n+server-side certificate management can be found in our documentation on\n+[[security source management|Managing Security Sources#certificate-based-authentication]].\n+\n+## Password-based Security\n+\n+The sections below cover password-based security for each of the\n+official Basho Riak clients. Each example uses the username of\n+`riakuser` and a password of `rosebud`.\n+\n+### Ruby\n+\n+In the Ruby client, username and password are specified when you create\n+a client object using the `[Riak::Client](https://github.com/basho/riak-ruby-client/blob/master/lib/riak/client.rb)`\n+class. Here is a client object (we'll name it `client`) without a\n+specified username and password:\n+\n+```ruby\n+client = Riak::Client.new(host: '127.0.0.1', pb_port: 8087)\n+```\n+\n+To specify a username and password, do so within an `authentication`\n+hash along with the host and port:\n+\n+```ruby\n+client = Riak::Client.new(\n+  host: '127.0.0.1',\n+  pb_port: 8087,\n+  authentication: {\n+  \tuser: 'riakuser',\n+  \tpass: 'rosebud'","path":"source/languages/en/riak/dev/advanced/client-security.md","position":49,"original_position":49,"commit_id":"1692fd11720774f5892e3ff03fe3a5f76108f844","original_commit_id":"1692fd11720774f5892e3ff03fe3a5f76108f844","user":{"login":"bkerley","id":4354,"avatar_url":"https://avatars.githubusercontent.com/u/4354?","gravatar_id":"aefddaa508f043817d0897f230aab7f3","url":"https://api.github.com/users/bkerley","html_url":"https://github.com/bkerley","followers_url":"https://api.github.com/users/bkerley/followers","following_url":"https://api.github.com/users/bkerley/following{/other_user}","gists_url":"https://api.github.com/users/bkerley/gists{/gist_id}","starred_url":"https://api.github.com/users/bkerley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkerley/subscriptions","organizations_url":"https://api.github.com/users/bkerley/orgs","repos_url":"https://api.github.com/users/bkerley/repos","events_url":"https://api.github.com/users/bkerley/events{/privacy}","received_events_url":"https://api.github.com/users/bkerley/received_events","type":"User","site_admin":false},"body":"This should be `user` and `password`, see https://github.com/basho/riak-ruby-client/blob/master/spec/riak/beefcake_protobuffs_backend/socket_spec.rb#L30","created_at":"2014-07-07T15:08:28Z","updated_at":"2014-07-07T15:08:28Z","html_url":"https://github.com/basho/basho_docs/pull/943#discussion_r14601320","pull_request_url":"https://api.github.com/repos/basho/basho_docs/pulls/943","_links":{"self":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/comments/14601320"},"html":{"href":"https://github.com/basho/basho_docs/pull/943#discussion_r14601320"},"pull_request":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/943"}}},"pull_request":{"url":"https://api.github.com/repos/basho/basho_docs/pulls/943","id":13880558,"html_url":"https://github.com/basho/basho_docs/pull/943","diff_url":"https://github.com/basho/basho_docs/pull/943.diff","patch_url":"https://github.com/basho/basho_docs/pull/943.patch","issue_url":"https://api.github.com/repos/basho/basho_docs/issues/943","number":943,"state":"open","title":"WIP: Client-side authentication doc","user":{"login":"lucperkins","id":1523104,"avatar_url":"https://avatars.githubusercontent.com/u/1523104?","gravatar_id":"af481d7274821037b1a807995b4a6598","url":"https://api.github.com/users/lucperkins","html_url":"https://github.com/lucperkins","followers_url":"https://api.github.com/users/lucperkins/followers","following_url":"https://api.github.com/users/lucperkins/following{/other_user}","gists_url":"https://api.github.com/users/lucperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/lucperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucperkins/subscriptions","organizations_url":"https://api.github.com/users/lucperkins/orgs","repos_url":"https://api.github.com/users/lucperkins/repos","events_url":"https://api.github.com/users/lucperkins/events{/privacy}","received_events_url":"https://api.github.com/users/lucperkins/received_events","type":"User","site_admin":false},"body":"- [x] Links to appropriate `/ops` docs\r\n- [x] Explanation write-up\r\n- [x] Ruby\r\n- [ ] Python\r\n- [x] Erlang\r\n- [ ] Java\r\n- [ ] curl","created_at":"2014-03-23T19:36:00Z","updated_at":"2014-07-07T15:08:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"124d08ab5b1be78233010b80bf428371a79ea634","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/basho/basho_docs/pulls/943/commits","review_comments_url":"https://api.github.com/repos/basho/basho_docs/pulls/943/comments","review_comment_url":"https://api.github.com/repos/basho/basho_docs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/basho/basho_docs/issues/943/comments","statuses_url":"https://api.github.com/repos/basho/basho_docs/statuses/1692fd11720774f5892e3ff03fe3a5f76108f844","head":{"label":"basho:features/lp/using-security-doc","ref":"features/lp/using-security-doc","sha":"1692fd11720774f5892e3ff03fe3a5f76108f844","user":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?","gravatar_id":"ce5141b78d2fe237e8bfba49d6aff405","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"repo":{"id":2401217,"name":"basho_docs","full_name":"basho/basho_docs","owner":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?","gravatar_id":"ce5141b78d2fe237e8bfba49d6aff405","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basho/basho_docs","description":"Basho Products Documentation","fork":false,"url":"https://api.github.com/repos/basho/basho_docs","forks_url":"https://api.github.com/repos/basho/basho_docs/forks","keys_url":"https://api.github.com/repos/basho/basho_docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basho/basho_docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basho/basho_docs/teams","hooks_url":"https://api.github.com/repos/basho/basho_docs/hooks","issue_events_url":"https://api.github.com/repos/basho/basho_docs/issues/events{/number}","events_url":"https://api.github.com/repos/basho/basho_docs/events","assignees_url":"https://api.github.com/repos/basho/basho_docs/assignees{/user}","branches_url":"https://api.github.com/repos/basho/basho_docs/branches{/branch}","tags_url":"https://api.github.com/repos/basho/basho_docs/tags","blobs_url":"https://api.github.com/repos/basho/basho_docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basho/basho_docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basho/basho_docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/basho/basho_docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basho/basho_docs/statuses/{sha}","languages_url":"https://api.github.com/repos/basho/basho_docs/languages","stargazers_url":"https://api.github.com/repos/basho/basho_docs/stargazers","contributors_url":"https://api.github.com/repos/basho/basho_docs/contributors","subscribers_url":"https://api.github.com/repos/basho/basho_docs/subscribers","subscription_url":"https://api.github.com/repos/basho/basho_docs/subscription","commits_url":"https://api.github.com/repos/basho/basho_docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/basho/basho_docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/basho/basho_docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/basho/basho_docs/issues/comments/{number}","contents_url":"https://api.github.com/repos/basho/basho_docs/contents/{+path}","compare_url":"https://api.github.com/repos/basho/basho_docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basho/basho_docs/merges","archive_url":"https://api.github.com/repos/basho/basho_docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basho/basho_docs/downloads","issues_url":"https://api.github.com/repos/basho/basho_docs/issues{/number}","pulls_url":"https://api.github.com/repos/basho/basho_docs/pulls{/number}","milestones_url":"https://api.github.com/repos/basho/basho_docs/milestones{/number}","notifications_url":"https://api.github.com/repos/basho/basho_docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basho/basho_docs/labels{/name}","releases_url":"https://api.github.com/repos/basho/basho_docs/releases{/id}","created_at":"2011-09-16T18:47:02Z","updated_at":"2014-06-26T19:05:18Z","pushed_at":"2014-07-07T15:02:00Z","git_url":"git://github.com/basho/basho_docs.git","ssh_url":"git@github.com:basho/basho_docs.git","clone_url":"https://github.com/basho/basho_docs.git","svn_url":"https://github.com/basho/basho_docs","homepage":"http://docs.basho.com","size":44798,"stargazers_count":49,"watchers_count":49,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":68,"mirror_url":null,"open_issues_count":126,"forks":68,"open_issues":126,"watchers":49,"default_branch":"master"}},"base":{"label":"basho:2.0.0","ref":"2.0.0","sha":"d4a5bf7fe5e5caa77302d6a85d6459ca8bc88107","user":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?","gravatar_id":"ce5141b78d2fe237e8bfba49d6aff405","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"repo":{"id":2401217,"name":"basho_docs","full_name":"basho/basho_docs","owner":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?","gravatar_id":"ce5141b78d2fe237e8bfba49d6aff405","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basho/basho_docs","description":"Basho Products Documentation","fork":false,"url":"https://api.github.com/repos/basho/basho_docs","forks_url":"https://api.github.com/repos/basho/basho_docs/forks","keys_url":"https://api.github.com/repos/basho/basho_docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basho/basho_docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basho/basho_docs/teams","hooks_url":"https://api.github.com/repos/basho/basho_docs/hooks","issue_events_url":"https://api.github.com/repos/basho/basho_docs/issues/events{/number}","events_url":"https://api.github.com/repos/basho/basho_docs/events","assignees_url":"https://api.github.com/repos/basho/basho_docs/assignees{/user}","branches_url":"https://api.github.com/repos/basho/basho_docs/branches{/branch}","tags_url":"https://api.github.com/repos/basho/basho_docs/tags","blobs_url":"https://api.github.com/repos/basho/basho_docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basho/basho_docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basho/basho_docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/basho/basho_docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basho/basho_docs/statuses/{sha}","languages_url":"https://api.github.com/repos/basho/basho_docs/languages","stargazers_url":"https://api.github.com/repos/basho/basho_docs/stargazers","contributors_url":"https://api.github.com/repos/basho/basho_docs/contributors","subscribers_url":"https://api.github.com/repos/basho/basho_docs/subscribers","subscription_url":"https://api.github.com/repos/basho/basho_docs/subscription","commits_url":"https://api.github.com/repos/basho/basho_docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/basho/basho_docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/basho/basho_docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/basho/basho_docs/issues/comments/{number}","contents_url":"https://api.github.com/repos/basho/basho_docs/contents/{+path}","compare_url":"https://api.github.com/repos/basho/basho_docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basho/basho_docs/merges","archive_url":"https://api.github.com/repos/basho/basho_docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basho/basho_docs/downloads","issues_url":"https://api.github.com/repos/basho/basho_docs/issues{/number}","pulls_url":"https://api.github.com/repos/basho/basho_docs/pulls{/number}","milestones_url":"https://api.github.com/repos/basho/basho_docs/milestones{/number}","notifications_url":"https://api.github.com/repos/basho/basho_docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basho/basho_docs/labels{/name}","releases_url":"https://api.github.com/repos/basho/basho_docs/releases{/id}","created_at":"2011-09-16T18:47:02Z","updated_at":"2014-06-26T19:05:18Z","pushed_at":"2014-07-07T15:02:00Z","git_url":"git://github.com/basho/basho_docs.git","ssh_url":"git@github.com:basho/basho_docs.git","clone_url":"https://github.com/basho/basho_docs.git","svn_url":"https://github.com/basho/basho_docs","homepage":"http://docs.basho.com","size":44798,"stargazers_count":49,"watchers_count":49,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":68,"mirror_url":null,"open_issues_count":126,"forks":68,"open_issues":126,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/943"},"html":{"href":"https://github.com/basho/basho_docs/pull/943"},"issue":{"href":"https://api.github.com/repos/basho/basho_docs/issues/943"},"comments":{"href":"https://api.github.com/repos/basho/basho_docs/issues/943/comments"},"review_comments":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/943/comments"},"review_comment":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/943/commits"},"statuses":{"href":"https://api.github.com/repos/basho/basho_docs/statuses/1692fd11720774f5892e3ff03fe3a5f76108f844"}}}}