{"action":"opened","number":264,"pull_request":{"url":"https://api.github.com/repos/guardian/campaign-central/pulls/264","id":167381708,"html_url":"https://github.com/guardian/campaign-central/pull/264","diff_url":"https://github.com/guardian/campaign-central/pull/264.diff","patch_url":"https://github.com/guardian/campaign-central/pull/264.patch","issue_url":"https://api.github.com/repos/guardian/campaign-central/issues/264","number":264,"state":"open","locked":false,"title":"Capi preview IAM auth","user":{"login":"tomrf1","id":1513454,"avatar_url":"https://avatars3.githubusercontent.com/u/1513454?v=4","gravatar_id":"","url":"https://api.github.com/users/tomrf1","html_url":"https://github.com/tomrf1","followers_url":"https://api.github.com/users/tomrf1/followers","following_url":"https://api.github.com/users/tomrf1/following{/other_user}","gists_url":"https://api.github.com/users/tomrf1/gists{/gist_id}","starred_url":"https://api.github.com/users/tomrf1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomrf1/subscriptions","organizations_url":"https://api.github.com/users/tomrf1/orgs","repos_url":"https://api.github.com/users/tomrf1/repos","events_url":"https://api.github.com/users/tomrf1/events{/privacy}","received_events_url":"https://api.github.com/users/tomrf1/received_events","type":"User","site_admin":false},"body":"We are in the process of changing how we authorise access to CAPI preview. In the past we have used basic auth (in Concierge), with the usernames/passwords maintained by the CAPI team.\r\nInstead we will use api-gateway to move authorisation out of concierge and avoid having to maintain usernames/passwords.\r\n\r\nThe api-gateway uses IAM authorisation. This means the app assumes a cross-account role, and signs each (preview) request using this role.\r\n\r\nNote - this means you will now need capi credentials to run the app locally.\r\nI've updated DEV and PROD config files in s3, but left the old preview config items there for now in case we want to roll back.\r\n\r\nTested locally using `curl -XPOST localhost:2267/management/api/refreshExpiringCampaigns`","created_at":"2018-02-06T11:00:14Z","updated_at":"2018-02-06T11:00:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/guardian/campaign-central/pulls/264/commits","review_comments_url":"https://api.github.com/repos/guardian/campaign-central/pulls/264/comments","review_comment_url":"https://api.github.com/repos/guardian/campaign-central/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/campaign-central/issues/264/comments","statuses_url":"https://api.github.com/repos/guardian/campaign-central/statuses/206b5a225d5ceef9c437bfa1f56ca3e7be5e92de","head":{"label":"guardian:capi-preview-iam","ref":"capi-preview-iam","sha":"206b5a225d5ceef9c437bfa1f56ca3e7be5e92de","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":65211179,"name":"campaign-central","full_name":"guardian/campaign-central","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/campaign-central","description":"A tool for tracking Guardian Labs campaigns","fork":false,"url":"https://api.github.com/repos/guardian/campaign-central","forks_url":"https://api.github.com/repos/guardian/campaign-central/forks","keys_url":"https://api.github.com/repos/guardian/campaign-central/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/campaign-central/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/campaign-central/teams","hooks_url":"https://api.github.com/repos/guardian/campaign-central/hooks","issue_events_url":"https://api.github.com/repos/guardian/campaign-central/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/campaign-central/events","assignees_url":"https://api.github.com/repos/guardian/campaign-central/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/campaign-central/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/campaign-central/tags","blobs_url":"https://api.github.com/repos/guardian/campaign-central/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/campaign-central/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/campaign-central/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/campaign-central/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/campaign-central/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/campaign-central/languages","stargazers_url":"https://api.github.com/repos/guardian/campaign-central/stargazers","contributors_url":"https://api.github.com/repos/guardian/campaign-central/contributors","subscribers_url":"https://api.github.com/repos/guardian/campaign-central/subscribers","subscription_url":"https://api.github.com/repos/guardian/campaign-central/subscription","commits_url":"https://api.github.com/repos/guardian/campaign-central/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/campaign-central/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/campaign-central/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/campaign-central/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/campaign-central/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/campaign-central/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/campaign-central/merges","archive_url":"https://api.github.com/repos/guardian/campaign-central/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/campaign-central/downloads","issues_url":"https://api.github.com/repos/guardian/campaign-central/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/campaign-central/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/campaign-central/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/campaign-central/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/campaign-central/labels{/name}","releases_url":"https://api.github.com/repos/guardian/campaign-central/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/campaign-central/deployments","created_at":"2016-08-08T14:29:59Z","updated_at":"2017-10-18T13:05:47Z","pushed_at":"2018-02-06T10:59:43Z","git_url":"git://github.com/guardian/campaign-central.git","ssh_url":"git@github.com:guardian/campaign-central.git","clone_url":"https://github.com/guardian/campaign-central.git","svn_url":"https://github.com/guardian/campaign-central","homepage":"https://campaign-central.gutools.co.uk/campaigns","size":2271,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"bee82338de64104f2ff987a5dc1b57b1168875b9","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":65211179,"name":"campaign-central","full_name":"guardian/campaign-central","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/campaign-central","description":"A tool for tracking Guardian Labs campaigns","fork":false,"url":"https://api.github.com/repos/guardian/campaign-central","forks_url":"https://api.github.com/repos/guardian/campaign-central/forks","keys_url":"https://api.github.com/repos/guardian/campaign-central/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/campaign-central/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/campaign-central/teams","hooks_url":"https://api.github.com/repos/guardian/campaign-central/hooks","issue_events_url":"https://api.github.com/repos/guardian/campaign-central/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/campaign-central/events","assignees_url":"https://api.github.com/repos/guardian/campaign-central/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/campaign-central/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/campaign-central/tags","blobs_url":"https://api.github.com/repos/guardian/campaign-central/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/campaign-central/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/campaign-central/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/campaign-central/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/campaign-central/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/campaign-central/languages","stargazers_url":"https://api.github.com/repos/guardian/campaign-central/stargazers","contributors_url":"https://api.github.com/repos/guardian/campaign-central/contributors","subscribers_url":"https://api.github.com/repos/guardian/campaign-central/subscribers","subscription_url":"https://api.github.com/repos/guardian/campaign-central/subscription","commits_url":"https://api.github.com/repos/guardian/campaign-central/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/campaign-central/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/campaign-central/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/campaign-central/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/campaign-central/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/campaign-central/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/campaign-central/merges","archive_url":"https://api.github.com/repos/guardian/campaign-central/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/campaign-central/downloads","issues_url":"https://api.github.com/repos/guardian/campaign-central/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/campaign-central/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/campaign-central/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/campaign-central/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/campaign-central/labels{/name}","releases_url":"https://api.github.com/repos/guardian/campaign-central/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/campaign-central/deployments","created_at":"2016-08-08T14:29:59Z","updated_at":"2017-10-18T13:05:47Z","pushed_at":"2018-02-06T10:59:43Z","git_url":"git://github.com/guardian/campaign-central.git","ssh_url":"git@github.com:guardian/campaign-central.git","clone_url":"https://github.com/guardian/campaign-central.git","svn_url":"https://github.com/guardian/campaign-central","homepage":"https://campaign-central.gutools.co.uk/campaigns","size":2271,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/campaign-central/pulls/264"},"html":{"href":"https://github.com/guardian/campaign-central/pull/264"},"issue":{"href":"https://api.github.com/repos/guardian/campaign-central/issues/264"},"comments":{"href":"https://api.github.com/repos/guardian/campaign-central/issues/264/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/campaign-central/pulls/264/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/campaign-central/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/campaign-central/pulls/264/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/campaign-central/statuses/206b5a225d5ceef9c437bfa1f56ca3e7be5e92de"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":44,"deletions":10,"changed_files":5}}
{"actor":{"display_login":"tomrf1"}}