{"action":"closed","number":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":"closed","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-29T14:50:13Z","closed_at":"2015-10-29T14:50:13Z","merged_at":"2015-10-29T14:50:13Z","merge_commit_sha":"0b3942b600c06c13b5f25857b912b4ebd60a9f9e","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/a9b22d48512e4fada29d9c6118ad57ebf38e4239","head":{"label":"18F:validate-webhooks","ref":"validate-webhooks","sha":"a9b22d48512e4fada29d9c6118ad57ebf38e4239","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-29T14:14:41Z","pushed_at":"2015-10-29T14:50:13Z","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":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":4,"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-29T14:14:41Z","pushed_at":"2015-10-29T14:50:13Z","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":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":4,"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/a9b22d48512e4fada29d9c6118ad57ebf38e4239"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":3,"review_comments":8,"commits":3,"additions":243,"deletions":10,"changed_files":8}}