{"action":"created","comment":{"url":"https://api.github.com/repos/18F/pages-server/pulls/comments/43386513","id":43386513,"diff_hunk":"@@ -14,6 +14,7 @@\n   \"assetRoot\":        \"/guides-template\",\n   \"fileLockWaitTime\": 30000,\n   \"fileLockPollTime\": 1000,\n+  \"secretKeyFile\":    \"/home/ubuntu/.18f-pages.secret\",","path":"pages-config.json","position":4,"original_position":4,"commit_id":"1924ca7d2bf94028a1c109bf651b45eff9517d96","original_commit_id":"1924ca7d2bf94028a1c109bf651b45eff9517d96","user":{"login":"mbland","id":301547,"avatar_url":"https://avatars.githubusercontent.com/u/301547?v=3","gravatar_id":"","url":"https://api.github.com/users/mbland","html_url":"https://github.com/mbland","followers_url":"https://api.github.com/users/mbland/followers","following_url":"https://api.github.com/users/mbland/following{/other_user}","gists_url":"https://api.github.com/users/mbland/gists{/gist_id}","starred_url":"https://api.github.com/users/mbland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbland/subscriptions","organizations_url":"https://api.github.com/users/mbland/orgs","repos_url":"https://api.github.com/users/mbland/repos","events_url":"https://api.github.com/users/mbland/events{/privacy}","received_events_url":"https://api.github.com/users/mbland/received_events","type":"User","site_admin":false},"body":"This is actually here to generate an initial template via `bin/18f-pages print-template`. The \"real\" config is in 18F/pages.","created_at":"2015-10-29T13:54:40Z","updated_at":"2015-10-29T13:54:40Z","html_url":"https://github.com/18F/pages-server/pull/5#discussion_r43386513","pull_request_url":"https://api.github.com/repos/18F/pages-server/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/18F/pages-server/pulls/comments/43386513"},"html":{"href":"https://github.com/18F/pages-server/pull/5#discussion_r43386513"},"pull_request":{"href":"https://api.github.com/repos/18F/pages-server/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/18F/pages-server/pulls/5","id":46116992,"html_url":"https://github.com/18F/pages-server/pull/5","diff_url":"https://github.com/18F/pages-server/pull/5.diff","patch_url":"https://github.com/18F/pages-server/pull/5.patch","issue_url":"https://api.github.com/repos/18F/pages-server/issues/5","number":5,"state":"open","locked":false,"title":"Use github-webhook-validator for authentication","user":{"login":"mbland","id":301547,"avatar_url":"https://avatars.githubusercontent.com/u/301547?v=3","gravatar_id":"","url":"https://api.github.com/users/mbland","html_url":"https://github.com/mbland","followers_url":"https://api.github.com/users/mbland/followers","following_url":"https://api.github.com/users/mbland/following{/other_user}","gists_url":"https://api.github.com/users/mbland/gists{/gist_id}","starred_url":"https://api.github.com/users/mbland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbland/subscriptions","organizations_url":"https://api.github.com/users/mbland/orgs","repos_url":"https://api.github.com/users/mbland/repos","events_url":"https://api.github.com/users/mbland/events{/privacy}","received_events_url":"https://api.github.com/users/mbland/received_events","type":"User","site_admin":false},"body":"Depends on #4. (At time of inception, this PR is only one commit ahead.)\r\n\r\nThe `secretKeyFile` configuration variables and `github-webhook-validator` component now allow us to define secret keys that can be used to authenticate incoming payloads before they're even parsed. This is of increasing concern as Pages continues to grow in popularity and visibility.\r\n\r\ncc: @arowla @afeld ","created_at":"2015-09-28T03:03:59Z","updated_at":"2015-10-29T13:54:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"470f67ce8605124fefc90bcc9bb159aef2f90fc9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/18F/pages-server/pulls/5/commits","review_comments_url":"https://api.github.com/repos/18F/pages-server/pulls/5/comments","review_comment_url":"https://api.github.com/repos/18F/pages-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/pages-server/issues/5/comments","statuses_url":"https://api.github.com/repos/18F/pages-server/statuses/1924ca7d2bf94028a1c109bf651b45eff9517d96","head":{"label":"18F:validate-webhooks","ref":"validate-webhooks","sha":"1924ca7d2bf94028a1c109bf651b45eff9517d96","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":43040536,"name":"pages-server","full_name":"18F/pages-server","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/pages-server","description":"Static website publishing server for 18F Pages","fork":false,"url":"https://api.github.com/repos/18F/pages-server","forks_url":"https://api.github.com/repos/18F/pages-server/forks","keys_url":"https://api.github.com/repos/18F/pages-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/pages-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/pages-server/teams","hooks_url":"https://api.github.com/repos/18F/pages-server/hooks","issue_events_url":"https://api.github.com/repos/18F/pages-server/issues/events{/number}","events_url":"https://api.github.com/repos/18F/pages-server/events","assignees_url":"https://api.github.com/repos/18F/pages-server/assignees{/user}","branches_url":"https://api.github.com/repos/18F/pages-server/branches{/branch}","tags_url":"https://api.github.com/repos/18F/pages-server/tags","blobs_url":"https://api.github.com/repos/18F/pages-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/pages-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/pages-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/pages-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/pages-server/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/pages-server/languages","stargazers_url":"https://api.github.com/repos/18F/pages-server/stargazers","contributors_url":"https://api.github.com/repos/18F/pages-server/contributors","subscribers_url":"https://api.github.com/repos/18F/pages-server/subscribers","subscription_url":"https://api.github.com/repos/18F/pages-server/subscription","commits_url":"https://api.github.com/repos/18F/pages-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/pages-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/pages-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/pages-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/pages-server/contents/{+path}","compare_url":"https://api.github.com/repos/18F/pages-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/pages-server/merges","archive_url":"https://api.github.com/repos/18F/pages-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/pages-server/downloads","issues_url":"https://api.github.com/repos/18F/pages-server/issues{/number}","pulls_url":"https://api.github.com/repos/18F/pages-server/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/pages-server/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/pages-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/pages-server/labels{/name}","releases_url":"https://api.github.com/repos/18F/pages-server/releases{/id}","created_at":"2015-09-24T02:42:21Z","updated_at":"2015-10-19T21:37:02Z","pushed_at":"2015-10-28T20:52:16Z","git_url":"git://github.com/18F/pages-server.git","ssh_url":"git@github.com:18F/pages-server.git","clone_url":"https://github.com/18F/pages-server.git","svn_url":"https://github.com/18F/pages-server","homepage":"https://www.npmjs.com/package/18f-pages-server","size":313,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"18F:master","ref":"master","sha":"b2ca15d719c26d6fe22d9645a3d3fedef6ac15e0","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":43040536,"name":"pages-server","full_name":"18F/pages-server","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/pages-server","description":"Static website publishing server for 18F Pages","fork":false,"url":"https://api.github.com/repos/18F/pages-server","forks_url":"https://api.github.com/repos/18F/pages-server/forks","keys_url":"https://api.github.com/repos/18F/pages-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/pages-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/pages-server/teams","hooks_url":"https://api.github.com/repos/18F/pages-server/hooks","issue_events_url":"https://api.github.com/repos/18F/pages-server/issues/events{/number}","events_url":"https://api.github.com/repos/18F/pages-server/events","assignees_url":"https://api.github.com/repos/18F/pages-server/assignees{/user}","branches_url":"https://api.github.com/repos/18F/pages-server/branches{/branch}","tags_url":"https://api.github.com/repos/18F/pages-server/tags","blobs_url":"https://api.github.com/repos/18F/pages-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/pages-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/pages-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/pages-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/pages-server/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/pages-server/languages","stargazers_url":"https://api.github.com/repos/18F/pages-server/stargazers","contributors_url":"https://api.github.com/repos/18F/pages-server/contributors","subscribers_url":"https://api.github.com/repos/18F/pages-server/subscribers","subscription_url":"https://api.github.com/repos/18F/pages-server/subscription","commits_url":"https://api.github.com/repos/18F/pages-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/pages-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/pages-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/pages-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/pages-server/contents/{+path}","compare_url":"https://api.github.com/repos/18F/pages-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/pages-server/merges","archive_url":"https://api.github.com/repos/18F/pages-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/pages-server/downloads","issues_url":"https://api.github.com/repos/18F/pages-server/issues{/number}","pulls_url":"https://api.github.com/repos/18F/pages-server/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/pages-server/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/pages-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/pages-server/labels{/name}","releases_url":"https://api.github.com/repos/18F/pages-server/releases{/id}","created_at":"2015-09-24T02:42:21Z","updated_at":"2015-10-19T21:37:02Z","pushed_at":"2015-10-28T20:52:16Z","git_url":"git://github.com/18F/pages-server.git","ssh_url":"git@github.com:18F/pages-server.git","clone_url":"https://github.com/18F/pages-server.git","svn_url":"https://github.com/18F/pages-server","homepage":"https://www.npmjs.com/package/18f-pages-server","size":313,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/pages-server/pulls/5"},"html":{"href":"https://github.com/18F/pages-server/pull/5"},"issue":{"href":"https://api.github.com/repos/18F/pages-server/issues/5"},"comments":{"href":"https://api.github.com/repos/18F/pages-server/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/pages-server/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/pages-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/pages-server/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/18F/pages-server/statuses/1924ca7d2bf94028a1c109bf651b45eff9517d96"}}}}