{"action":"opened","number":253,"pull_request":{"url":"https://api.github.com/repos/trainline/environment-manager/pulls/253","id":117921553,"html_url":"https://github.com/trainline/environment-manager/pull/253","diff_url":"https://github.com/trainline/environment-manager/pull/253.diff","patch_url":"https://github.com/trainline/environment-manager/pull/253.patch","issue_url":"https://api.github.com/repos/trainline/environment-manager/issues/253","number":253,"state":"open","locked":false,"title":"Log client IP not HTTP proxy IP","user":{"login":"Merlin-Taylor","id":3935360,"avatar_url":"https://avatars2.githubusercontent.com/u/3935360?v=3","gravatar_id":"","url":"https://api.github.com/users/Merlin-Taylor","html_url":"https://github.com/Merlin-Taylor","followers_url":"https://api.github.com/users/Merlin-Taylor/followers","following_url":"https://api.github.com/users/Merlin-Taylor/following{/other_user}","gists_url":"https://api.github.com/users/Merlin-Taylor/gists{/gist_id}","starred_url":"https://api.github.com/users/Merlin-Taylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Merlin-Taylor/subscriptions","organizations_url":"https://api.github.com/users/Merlin-Taylor/orgs","repos_url":"https://api.github.com/users/Merlin-Taylor/repos","events_url":"https://api.github.com/users/Merlin-Taylor/events{/privacy}","received_events_url":"https://api.github.com/users/Merlin-Taylor/received_events","type":"User","site_admin":false},"body":"When running behind an HTTP proxy, the application was logging the IP address of the HTTP proxy as the IP address of the client. This change corrects the problem.\r\n\r\nhttp://expressjs.com/en/guide/behind-proxies.html\r\nhttps://jira.thetrainline.com/browse/PD-271","created_at":"2017-04-27T11:56:38Z","updated_at":"2017-04-27T11:56:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/trainline/environment-manager/pulls/253/commits","review_comments_url":"https://api.github.com/repos/trainline/environment-manager/pulls/253/comments","review_comment_url":"https://api.github.com/repos/trainline/environment-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trainline/environment-manager/issues/253/comments","statuses_url":"https://api.github.com/repos/trainline/environment-manager/statuses/1cd2cb127920f08d852e38a4780e7fac3f437a0f","head":{"label":"Merlin-Taylor:fix/PD-271","ref":"fix/PD-271","sha":"1cd2cb127920f08d852e38a4780e7fac3f437a0f","user":{"login":"Merlin-Taylor","id":3935360,"avatar_url":"https://avatars2.githubusercontent.com/u/3935360?v=3","gravatar_id":"","url":"https://api.github.com/users/Merlin-Taylor","html_url":"https://github.com/Merlin-Taylor","followers_url":"https://api.github.com/users/Merlin-Taylor/followers","following_url":"https://api.github.com/users/Merlin-Taylor/following{/other_user}","gists_url":"https://api.github.com/users/Merlin-Taylor/gists{/gist_id}","starred_url":"https://api.github.com/users/Merlin-Taylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Merlin-Taylor/subscriptions","organizations_url":"https://api.github.com/users/Merlin-Taylor/orgs","repos_url":"https://api.github.com/users/Merlin-Taylor/repos","events_url":"https://api.github.com/users/Merlin-Taylor/events{/privacy}","received_events_url":"https://api.github.com/users/Merlin-Taylor/received_events","type":"User","site_admin":false},"repo":{"id":69583734,"name":"environment-manager","full_name":"Merlin-Taylor/environment-manager","owner":{"login":"Merlin-Taylor","id":3935360,"avatar_url":"https://avatars2.githubusercontent.com/u/3935360?v=3","gravatar_id":"","url":"https://api.github.com/users/Merlin-Taylor","html_url":"https://github.com/Merlin-Taylor","followers_url":"https://api.github.com/users/Merlin-Taylor/followers","following_url":"https://api.github.com/users/Merlin-Taylor/following{/other_user}","gists_url":"https://api.github.com/users/Merlin-Taylor/gists{/gist_id}","starred_url":"https://api.github.com/users/Merlin-Taylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Merlin-Taylor/subscriptions","organizations_url":"https://api.github.com/users/Merlin-Taylor/orgs","repos_url":"https://api.github.com/users/Merlin-Taylor/repos","events_url":"https://api.github.com/users/Merlin-Taylor/events{/privacy}","received_events_url":"https://api.github.com/users/Merlin-Taylor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Merlin-Taylor/environment-manager","description":"Self-service portal for infrastructure config management, operational reporting and deployment","fork":true,"url":"https://api.github.com/repos/Merlin-Taylor/environment-manager","forks_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/forks","keys_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/teams","hooks_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/hooks","issue_events_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/issues/events{/number}","events_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/events","assignees_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/assignees{/user}","branches_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/branches{/branch}","tags_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/tags","blobs_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/languages","stargazers_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/stargazers","contributors_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/contributors","subscribers_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/subscribers","subscription_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/subscription","commits_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/contents/{+path}","compare_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/merges","archive_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/downloads","issues_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/issues{/number}","pulls_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/labels{/name}","releases_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/releases{/id}","deployments_url":"https://api.github.com/repos/Merlin-Taylor/environment-manager/deployments","created_at":"2016-09-29T15:59:06Z","updated_at":"2016-09-29T15:59:09Z","pushed_at":"2017-04-27T11:53:42Z","git_url":"git://github.com/Merlin-Taylor/environment-manager.git","ssh_url":"git@github.com:Merlin-Taylor/environment-manager.git","clone_url":"https://github.com/Merlin-Taylor/environment-manager.git","svn_url":"https://github.com/Merlin-Taylor/environment-manager","homepage":null,"size":7458,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"trainline:master","ref":"master","sha":"04a06355d80ca6df035ebd14504177ca6632f08d","user":{"login":"trainline","id":2421167,"avatar_url":"https://avatars2.githubusercontent.com/u/2421167?v=3","gravatar_id":"","url":"https://api.github.com/users/trainline","html_url":"https://github.com/trainline","followers_url":"https://api.github.com/users/trainline/followers","following_url":"https://api.github.com/users/trainline/following{/other_user}","gists_url":"https://api.github.com/users/trainline/gists{/gist_id}","starred_url":"https://api.github.com/users/trainline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trainline/subscriptions","organizations_url":"https://api.github.com/users/trainline/orgs","repos_url":"https://api.github.com/users/trainline/repos","events_url":"https://api.github.com/users/trainline/events{/privacy}","received_events_url":"https://api.github.com/users/trainline/received_events","type":"Organization","site_admin":false},"repo":{"id":68927698,"name":"environment-manager","full_name":"trainline/environment-manager","owner":{"login":"trainline","id":2421167,"avatar_url":"https://avatars2.githubusercontent.com/u/2421167?v=3","gravatar_id":"","url":"https://api.github.com/users/trainline","html_url":"https://github.com/trainline","followers_url":"https://api.github.com/users/trainline/followers","following_url":"https://api.github.com/users/trainline/following{/other_user}","gists_url":"https://api.github.com/users/trainline/gists{/gist_id}","starred_url":"https://api.github.com/users/trainline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trainline/subscriptions","organizations_url":"https://api.github.com/users/trainline/orgs","repos_url":"https://api.github.com/users/trainline/repos","events_url":"https://api.github.com/users/trainline/events{/privacy}","received_events_url":"https://api.github.com/users/trainline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trainline/environment-manager","description":"Self-service portal for infrastructure config management, operational reporting and deployment","fork":false,"url":"https://api.github.com/repos/trainline/environment-manager","forks_url":"https://api.github.com/repos/trainline/environment-manager/forks","keys_url":"https://api.github.com/repos/trainline/environment-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trainline/environment-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trainline/environment-manager/teams","hooks_url":"https://api.github.com/repos/trainline/environment-manager/hooks","issue_events_url":"https://api.github.com/repos/trainline/environment-manager/issues/events{/number}","events_url":"https://api.github.com/repos/trainline/environment-manager/events","assignees_url":"https://api.github.com/repos/trainline/environment-manager/assignees{/user}","branches_url":"https://api.github.com/repos/trainline/environment-manager/branches{/branch}","tags_url":"https://api.github.com/repos/trainline/environment-manager/tags","blobs_url":"https://api.github.com/repos/trainline/environment-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trainline/environment-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trainline/environment-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/trainline/environment-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trainline/environment-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/trainline/environment-manager/languages","stargazers_url":"https://api.github.com/repos/trainline/environment-manager/stargazers","contributors_url":"https://api.github.com/repos/trainline/environment-manager/contributors","subscribers_url":"https://api.github.com/repos/trainline/environment-manager/subscribers","subscription_url":"https://api.github.com/repos/trainline/environment-manager/subscription","commits_url":"https://api.github.com/repos/trainline/environment-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/trainline/environment-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/trainline/environment-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/trainline/environment-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/trainline/environment-manager/contents/{+path}","compare_url":"https://api.github.com/repos/trainline/environment-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trainline/environment-manager/merges","archive_url":"https://api.github.com/repos/trainline/environment-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trainline/environment-manager/downloads","issues_url":"https://api.github.com/repos/trainline/environment-manager/issues{/number}","pulls_url":"https://api.github.com/repos/trainline/environment-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/trainline/environment-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/trainline/environment-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trainline/environment-manager/labels{/name}","releases_url":"https://api.github.com/repos/trainline/environment-manager/releases{/id}","deployments_url":"https://api.github.com/repos/trainline/environment-manager/deployments","created_at":"2016-09-22T14:10:18Z","updated_at":"2017-04-06T09:51:10Z","pushed_at":"2017-04-27T10:23:13Z","git_url":"git://github.com/trainline/environment-manager.git","ssh_url":"git@github.com:trainline/environment-manager.git","clone_url":"https://github.com/trainline/environment-manager.git","svn_url":"https://github.com/trainline/environment-manager","homepage":"https://trainline.github.io/environment-manager/","size":7696,"stargazers_count":77,"watchers_count":77,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":9,"forks":14,"open_issues":9,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/trainline/environment-manager/pulls/253"},"html":{"href":"https://github.com/trainline/environment-manager/pull/253"},"issue":{"href":"https://api.github.com/repos/trainline/environment-manager/issues/253"},"comments":{"href":"https://api.github.com/repos/trainline/environment-manager/issues/253/comments"},"review_comments":{"href":"https://api.github.com/repos/trainline/environment-manager/pulls/253/comments"},"review_comment":{"href":"https://api.github.com/repos/trainline/environment-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trainline/environment-manager/pulls/253/commits"},"statuses":{"href":"https://api.github.com/repos/trainline/environment-manager/statuses/1cd2cb127920f08d852e38a4780e7fac3f437a0f"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":6,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"Merlin-Taylor"}}