{"action":"created","comment":{"url":"https://api.github.com/repos/square/keywhiz/pulls/comments/31086318","id":31086318,"diff_hunk":"@@ -82,7 +82,7 @@ userAuth:\n # alternateUiPath: ui/app/\n \n # Base64 of \"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"","path":"server/src/main/resources/keywhiz-development.yaml","position":3,"original_position":3,"commit_id":"0aee6d62dd2c83abfd13d7e719a247a67b86681d","original_commit_id":"0aee6d62dd2c83abfd13d7e719a247a67b86681d","user":{"login":"alokmenghrajani","id":441307,"avatar_url":"https://avatars.githubusercontent.com/u/441307?v=3","gravatar_id":"","url":"https://api.github.com/users/alokmenghrajani","html_url":"https://github.com/alokmenghrajani","followers_url":"https://api.github.com/users/alokmenghrajani/followers","following_url":"https://api.github.com/users/alokmenghrajani/following{/other_user}","gists_url":"https://api.github.com/users/alokmenghrajani/gists{/gist_id}","starred_url":"https://api.github.com/users/alokmenghrajani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alokmenghrajani/subscriptions","organizations_url":"https://api.github.com/users/alokmenghrajani/orgs","repos_url":"https://api.github.com/users/alokmenghrajani/repos","events_url":"https://api.github.com/users/alokmenghrajani/events{/privacy}","received_events_url":"https://api.github.com/users/alokmenghrajani/received_events","type":"User","site_admin":false},"body":"This comment probably needs to be updated. Do you want to recommend a way to generate the the file? `head -c 32 /dev/urandom | base64`?","created_at":"2015-05-26T22:28:10Z","updated_at":"2015-05-26T22:28:10Z","html_url":"https://github.com/square/keywhiz/pull/81#discussion_r31086318","pull_request_url":"https://api.github.com/repos/square/keywhiz/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/square/keywhiz/pulls/comments/31086318"},"html":{"href":"https://github.com/square/keywhiz/pull/81#discussion_r31086318"},"pull_request":{"href":"https://api.github.com/repos/square/keywhiz/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/square/keywhiz/pulls/81","id":36251745,"html_url":"https://github.com/square/keywhiz/pull/81","diff_url":"https://github.com/square/keywhiz/pull/81.diff","patch_url":"https://github.com/square/keywhiz/pull/81.patch","issue_url":"https://api.github.com/repos/square/keywhiz/issues/81","number":81,"state":"open","locked":false,"title":"Example using file for cookie key","user":{"login":"sul3n3t","id":426982,"avatar_url":"https://avatars.githubusercontent.com/u/426982?v=3","gravatar_id":"","url":"https://api.github.com/users/sul3n3t","html_url":"https://github.com/sul3n3t","followers_url":"https://api.github.com/users/sul3n3t/followers","following_url":"https://api.github.com/users/sul3n3t/following{/other_user}","gists_url":"https://api.github.com/users/sul3n3t/gists{/gist_id}","starred_url":"https://api.github.com/users/sul3n3t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul3n3t/subscriptions","organizations_url":"https://api.github.com/users/sul3n3t/orgs","repos_url":"https://api.github.com/users/sul3n3t/repos","events_url":"https://api.github.com/users/sul3n3t/events{/privacy}","received_events_url":"https://api.github.com/users/sul3n3t/received_events","type":"User","site_admin":false},"body":"Changes the development configuration to use a file to hold the cookie\r\nkey. This is an example of how Keywhiz server should be configured for\r\nstaging or production (no secrets in configuration).\r\n\r\nR: @alokmenghrajani \r\n\r\nTested with:\r\n```\r\n$ mvn package\r\n$ java -jar server/target/keywhiz-server-0.7.4-SNAPSHOT-shaded.jar migrate server/src/main/resources/keywhiz-development.yaml\r\n$ java -jar server/target/keywhiz-server-0.7.4-SNAPSHOT-shaded.jar db-seed server/src/main/resources/keywhiz-development.yaml\r\n$ java -jar server/target/keywhiz-server-0.7.4-SNAPSHOT-shaded.jar server server/src/main/resources/keywhiz-development.yaml\r\n```\r\n\r\nThen, I logged into the UI successfully.","created_at":"2015-05-26T22:21:13Z","updated_at":"2015-05-26T22:28:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd1477a085ed42ce188b5f6538aac4a257621f94","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/square/keywhiz/pulls/81/commits","review_comments_url":"https://api.github.com/repos/square/keywhiz/pulls/81/comments","review_comment_url":"https://api.github.com/repos/square/keywhiz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/keywhiz/issues/81/comments","statuses_url":"https://api.github.com/repos/square/keywhiz/statuses/0aee6d62dd2c83abfd13d7e719a247a67b86681d","head":{"label":"square:justin/cookiekey-file-example","ref":"justin/cookiekey-file-example","sha":"0aee6d62dd2c83abfd13d7e719a247a67b86681d","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":32866430,"name":"keywhiz","full_name":"square/keywhiz","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/keywhiz","description":"A system for distributing and managing secrets","fork":false,"url":"https://api.github.com/repos/square/keywhiz","forks_url":"https://api.github.com/repos/square/keywhiz/forks","keys_url":"https://api.github.com/repos/square/keywhiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/keywhiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/keywhiz/teams","hooks_url":"https://api.github.com/repos/square/keywhiz/hooks","issue_events_url":"https://api.github.com/repos/square/keywhiz/issues/events{/number}","events_url":"https://api.github.com/repos/square/keywhiz/events","assignees_url":"https://api.github.com/repos/square/keywhiz/assignees{/user}","branches_url":"https://api.github.com/repos/square/keywhiz/branches{/branch}","tags_url":"https://api.github.com/repos/square/keywhiz/tags","blobs_url":"https://api.github.com/repos/square/keywhiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/keywhiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/keywhiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/keywhiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/keywhiz/statuses/{sha}","languages_url":"https://api.github.com/repos/square/keywhiz/languages","stargazers_url":"https://api.github.com/repos/square/keywhiz/stargazers","contributors_url":"https://api.github.com/repos/square/keywhiz/contributors","subscribers_url":"https://api.github.com/repos/square/keywhiz/subscribers","subscription_url":"https://api.github.com/repos/square/keywhiz/subscription","commits_url":"https://api.github.com/repos/square/keywhiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/keywhiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/keywhiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/keywhiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/keywhiz/contents/{+path}","compare_url":"https://api.github.com/repos/square/keywhiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/keywhiz/merges","archive_url":"https://api.github.com/repos/square/keywhiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/keywhiz/downloads","issues_url":"https://api.github.com/repos/square/keywhiz/issues{/number}","pulls_url":"https://api.github.com/repos/square/keywhiz/pulls{/number}","milestones_url":"https://api.github.com/repos/square/keywhiz/milestones{/number}","notifications_url":"https://api.github.com/repos/square/keywhiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/keywhiz/labels{/name}","releases_url":"https://api.github.com/repos/square/keywhiz/releases{/id}","created_at":"2015-03-25T13:31:39Z","updated_at":"2015-05-26T21:17:25Z","pushed_at":"2015-05-26T22:25:30Z","git_url":"git://github.com/square/keywhiz.git","ssh_url":"git@github.com:square/keywhiz.git","clone_url":"https://github.com/square/keywhiz.git","svn_url":"https://github.com/square/keywhiz","homepage":"https://square.github.io/keywhiz/","size":4957,"stargazers_count":902,"watchers_count":902,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":64,"mirror_url":null,"open_issues_count":18,"forks":64,"open_issues":18,"watchers":902,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"04ee877af0b704e618b9932ec8b543df564af4d9","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":32866430,"name":"keywhiz","full_name":"square/keywhiz","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/keywhiz","description":"A system for distributing and managing secrets","fork":false,"url":"https://api.github.com/repos/square/keywhiz","forks_url":"https://api.github.com/repos/square/keywhiz/forks","keys_url":"https://api.github.com/repos/square/keywhiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/keywhiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/keywhiz/teams","hooks_url":"https://api.github.com/repos/square/keywhiz/hooks","issue_events_url":"https://api.github.com/repos/square/keywhiz/issues/events{/number}","events_url":"https://api.github.com/repos/square/keywhiz/events","assignees_url":"https://api.github.com/repos/square/keywhiz/assignees{/user}","branches_url":"https://api.github.com/repos/square/keywhiz/branches{/branch}","tags_url":"https://api.github.com/repos/square/keywhiz/tags","blobs_url":"https://api.github.com/repos/square/keywhiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/keywhiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/keywhiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/keywhiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/keywhiz/statuses/{sha}","languages_url":"https://api.github.com/repos/square/keywhiz/languages","stargazers_url":"https://api.github.com/repos/square/keywhiz/stargazers","contributors_url":"https://api.github.com/repos/square/keywhiz/contributors","subscribers_url":"https://api.github.com/repos/square/keywhiz/subscribers","subscription_url":"https://api.github.com/repos/square/keywhiz/subscription","commits_url":"https://api.github.com/repos/square/keywhiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/keywhiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/keywhiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/keywhiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/keywhiz/contents/{+path}","compare_url":"https://api.github.com/repos/square/keywhiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/keywhiz/merges","archive_url":"https://api.github.com/repos/square/keywhiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/keywhiz/downloads","issues_url":"https://api.github.com/repos/square/keywhiz/issues{/number}","pulls_url":"https://api.github.com/repos/square/keywhiz/pulls{/number}","milestones_url":"https://api.github.com/repos/square/keywhiz/milestones{/number}","notifications_url":"https://api.github.com/repos/square/keywhiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/keywhiz/labels{/name}","releases_url":"https://api.github.com/repos/square/keywhiz/releases{/id}","created_at":"2015-03-25T13:31:39Z","updated_at":"2015-05-26T21:17:25Z","pushed_at":"2015-05-26T22:25:30Z","git_url":"git://github.com/square/keywhiz.git","ssh_url":"git@github.com:square/keywhiz.git","clone_url":"https://github.com/square/keywhiz.git","svn_url":"https://github.com/square/keywhiz","homepage":"https://square.github.io/keywhiz/","size":4957,"stargazers_count":902,"watchers_count":902,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":64,"mirror_url":null,"open_issues_count":18,"forks":64,"open_issues":18,"watchers":902,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/keywhiz/pulls/81"},"html":{"href":"https://github.com/square/keywhiz/pull/81"},"issue":{"href":"https://api.github.com/repos/square/keywhiz/issues/81"},"comments":{"href":"https://api.github.com/repos/square/keywhiz/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/square/keywhiz/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/square/keywhiz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/keywhiz/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/square/keywhiz/statuses/0aee6d62dd2c83abfd13d7e719a247a67b86681d"}}}}