{"action":"closed","number":1177,"pull_request":{"url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/pulls/1177","id":225009503,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MDA5NTAz","html_url":"https://github.com/jenkins-infra/jenkins-infra/pull/1177","diff_url":"https://github.com/jenkins-infra/jenkins-infra/pull/1177.diff","patch_url":"https://github.com/jenkins-infra/jenkins-infra/pull/1177.patch","issue_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/issues/1177","number":1177,"state":"closed","locked":false,"title":"[INFRA-1769] Add ssh gateway for evergreen contributors","user":{"login":"olblak","id":2360224,"node_id":"MDQ6VXNlcjIzNjAyMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2360224?v=4","gravatar_id":"","url":"https://api.github.com/users/olblak","html_url":"https://github.com/olblak","followers_url":"https://api.github.com/users/olblak/followers","following_url":"https://api.github.com/users/olblak/following{/other_user}","gists_url":"https://api.github.com/users/olblak/gists{/gist_id}","starred_url":"https://api.github.com/users/olblak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olblak/subscriptions","organizations_url":"https://api.github.com/users/olblak/orgs","repos_url":"https://api.github.com/users/olblak/repos","events_url":"https://api.github.com/users/olblak/events{/privacy}","received_events_url":"https://api.github.com/users/olblak/received_events","type":"User","site_admin":false},"body":"This service deploys a ssh gateway with posgresql-client installed and pgpass set to the evergreen  readonly database.\r\nUser access must be configured on this [docker image ](https://github.com/jenkins-infra/sshd)  \r\n\r\n- [x] Configure READ only database access\r\n- [x] Set docker image tag\r\n\r\nFollowing commands must be run on the evergreen database (username and password will be changed)\r\n```\r\n# This will prevent default users from creating tables\r\nREVOKE CREATE ON SCHEMA public FROM public;\r\n# Create user\r\nCREATE ROLE readonly_user WITH LOGIN PASSWORD 'password';\r\nGRANT CONNECT ON DATABASE db_name TO readonly_user;\r\nGRANT SELECT ON ALL TABLES IN SCHEMA public TO readonly_user;\r\nALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readonly_user;\r\n```","created_at":"2018-10-23T11:59:27Z","updated_at":"2018-10-29T08:08:05Z","closed_at":"2018-10-29T08:08:05Z","merged_at":"2018-10-29T08:08:05Z","merge_commit_sha":"da7324f471cbe8256169155edac040fb99f78907","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/pulls/1177/commits","review_comments_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/pulls/1177/comments","review_comment_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/issues/1177/comments","statuses_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/statuses/d77904afd15a53867bcdd7d9f7ce5a83cf6ebcdd","head":{"label":"olblak:INFRA-1769","ref":"INFRA-1769","sha":"d77904afd15a53867bcdd7d9f7ce5a83cf6ebcdd","user":{"login":"olblak","id":2360224,"node_id":"MDQ6VXNlcjIzNjAyMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2360224?v=4","gravatar_id":"","url":"https://api.github.com/users/olblak","html_url":"https://github.com/olblak","followers_url":"https://api.github.com/users/olblak/followers","following_url":"https://api.github.com/users/olblak/following{/other_user}","gists_url":"https://api.github.com/users/olblak/gists{/gist_id}","starred_url":"https://api.github.com/users/olblak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olblak/subscriptions","organizations_url":"https://api.github.com/users/olblak/orgs","repos_url":"https://api.github.com/users/olblak/repos","events_url":"https://api.github.com/users/olblak/events{/privacy}","received_events_url":"https://api.github.com/users/olblak/received_events","type":"User","site_admin":false},"repo":{"id":75947457,"node_id":"MDEwOlJlcG9zaXRvcnk3NTk0NzQ1Nw==","name":"jenkins-infra","full_name":"olblak/jenkins-infra","private":false,"owner":{"login":"olblak","id":2360224,"node_id":"MDQ6VXNlcjIzNjAyMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2360224?v=4","gravatar_id":"","url":"https://api.github.com/users/olblak","html_url":"https://github.com/olblak","followers_url":"https://api.github.com/users/olblak/followers","following_url":"https://api.github.com/users/olblak/following{/other_user}","gists_url":"https://api.github.com/users/olblak/gists{/gist_id}","starred_url":"https://api.github.com/users/olblak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olblak/subscriptions","organizations_url":"https://api.github.com/users/olblak/orgs","repos_url":"https://api.github.com/users/olblak/repos","events_url":"https://api.github.com/users/olblak/events{/privacy}","received_events_url":"https://api.github.com/users/olblak/received_events","type":"User","site_admin":false},"html_url":"https://github.com/olblak/jenkins-infra","description":"Jenkins main control repo for R10k and our Puppet Enterprise managed infrastructure","fork":true,"url":"https://api.github.com/repos/olblak/jenkins-infra","forks_url":"https://api.github.com/repos/olblak/jenkins-infra/forks","keys_url":"https://api.github.com/repos/olblak/jenkins-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olblak/jenkins-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olblak/jenkins-infra/teams","hooks_url":"https://api.github.com/repos/olblak/jenkins-infra/hooks","issue_events_url":"https://api.github.com/repos/olblak/jenkins-infra/issues/events{/number}","events_url":"https://api.github.com/repos/olblak/jenkins-infra/events","assignees_url":"https://api.github.com/repos/olblak/jenkins-infra/assignees{/user}","branches_url":"https://api.github.com/repos/olblak/jenkins-infra/branches{/branch}","tags_url":"https://api.github.com/repos/olblak/jenkins-infra/tags","blobs_url":"https://api.github.com/repos/olblak/jenkins-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olblak/jenkins-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olblak/jenkins-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/olblak/jenkins-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olblak/jenkins-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/olblak/jenkins-infra/languages","stargazers_url":"https://api.github.com/repos/olblak/jenkins-infra/stargazers","contributors_url":"https://api.github.com/repos/olblak/jenkins-infra/contributors","subscribers_url":"https://api.github.com/repos/olblak/jenkins-infra/subscribers","subscription_url":"https://api.github.com/repos/olblak/jenkins-infra/subscription","commits_url":"https://api.github.com/repos/olblak/jenkins-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/olblak/jenkins-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/olblak/jenkins-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/olblak/jenkins-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/olblak/jenkins-infra/contents/{+path}","compare_url":"https://api.github.com/repos/olblak/jenkins-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olblak/jenkins-infra/merges","archive_url":"https://api.github.com/repos/olblak/jenkins-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olblak/jenkins-infra/downloads","issues_url":"https://api.github.com/repos/olblak/jenkins-infra/issues{/number}","pulls_url":"https://api.github.com/repos/olblak/jenkins-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/olblak/jenkins-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/olblak/jenkins-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olblak/jenkins-infra/labels{/name}","releases_url":"https://api.github.com/repos/olblak/jenkins-infra/releases{/id}","deployments_url":"https://api.github.com/repos/olblak/jenkins-infra/deployments","created_at":"2016-12-08T14:59:53Z","updated_at":"2018-10-22T12:47:44Z","pushed_at":"2018-10-26T08:47:52Z","git_url":"git://github.com/olblak/jenkins-infra.git","ssh_url":"git@github.com:olblak/jenkins-infra.git","clone_url":"https://github.com/olblak/jenkins-infra.git","svn_url":"https://github.com/olblak/jenkins-infra","homepage":"","size":2616,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"staging"}},"base":{"label":"jenkins-infra:staging","ref":"staging","sha":"50b3eedd307ef679c49f195a964c5ef52eca3a25","user":{"login":"jenkins-infra","id":7422698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MjI2OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/7422698?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkins-infra","html_url":"https://github.com/jenkins-infra","followers_url":"https://api.github.com/users/jenkins-infra/followers","following_url":"https://api.github.com/users/jenkins-infra/following{/other_user}","gists_url":"https://api.github.com/users/jenkins-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkins-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkins-infra/subscriptions","organizations_url":"https://api.github.com/users/jenkins-infra/orgs","repos_url":"https://api.github.com/users/jenkins-infra/repos","events_url":"https://api.github.com/users/jenkins-infra/events{/privacy}","received_events_url":"https://api.github.com/users/jenkins-infra/received_events","type":"Organization","site_admin":false},"repo":{"id":19294365,"node_id":"MDEwOlJlcG9zaXRvcnkxOTI5NDM2NQ==","name":"jenkins-infra","full_name":"jenkins-infra/jenkins-infra","private":false,"owner":{"login":"jenkins-infra","id":7422698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MjI2OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/7422698?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkins-infra","html_url":"https://github.com/jenkins-infra","followers_url":"https://api.github.com/users/jenkins-infra/followers","following_url":"https://api.github.com/users/jenkins-infra/following{/other_user}","gists_url":"https://api.github.com/users/jenkins-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkins-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkins-infra/subscriptions","organizations_url":"https://api.github.com/users/jenkins-infra/orgs","repos_url":"https://api.github.com/users/jenkins-infra/repos","events_url":"https://api.github.com/users/jenkins-infra/events{/privacy}","received_events_url":"https://api.github.com/users/jenkins-infra/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/jenkins-infra/jenkins-infra","description":"Jenkins main control repo for R10k and our Puppet Enterprise managed infrastructure","fork":false,"url":"https://api.github.com/repos/jenkins-infra/jenkins-infra","forks_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/forks","keys_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/teams","hooks_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/hooks","issue_events_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/issues/events{/number}","events_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/events","assignees_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/assignees{/user}","branches_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/branches{/branch}","tags_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/tags","blobs_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/languages","stargazers_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/stargazers","contributors_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/contributors","subscribers_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/subscribers","subscription_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/subscription","commits_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/contents/{+path}","compare_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/merges","archive_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/downloads","issues_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/issues{/number}","pulls_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/labels{/name}","releases_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/releases{/id}","deployments_url":"https://api.github.com/repos/jenkins-infra/jenkins-infra/deployments","created_at":"2014-04-29T23:09:10Z","updated_at":"2018-10-22T12:10:40Z","pushed_at":"2018-10-29T08:08:05Z","git_url":"git://github.com/jenkins-infra/jenkins-infra.git","ssh_url":"git@github.com:jenkins-infra/jenkins-infra.git","clone_url":"https://github.com/jenkins-infra/jenkins-infra.git","svn_url":"https://github.com/jenkins-infra/jenkins-infra","homepage":"","size":2609,"stargazers_count":56,"watchers_count":56,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":44,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":44,"open_issues":1,"watchers":56,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkins-infra/jenkins-infra/pulls/1177"},"html":{"href":"https://github.com/jenkins-infra/jenkins-infra/pull/1177"},"issue":{"href":"https://api.github.com/repos/jenkins-infra/jenkins-infra/issues/1177"},"comments":{"href":"https://api.github.com/repos/jenkins-infra/jenkins-infra/issues/1177/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkins-infra/jenkins-infra/pulls/1177/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkins-infra/jenkins-infra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkins-infra/jenkins-infra/pulls/1177/commits"},"statuses":{"href":"https://api.github.com/repos/jenkins-infra/jenkins-infra/statuses/d77904afd15a53867bcdd7d9f7ce5a83cf6ebcdd"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"olblak","id":2360224,"node_id":"MDQ6VXNlcjIzNjAyMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2360224?v=4","gravatar_id":"","url":"https://api.github.com/users/olblak","html_url":"https://github.com/olblak","followers_url":"https://api.github.com/users/olblak/followers","following_url":"https://api.github.com/users/olblak/following{/other_user}","gists_url":"https://api.github.com/users/olblak/gists{/gist_id}","starred_url":"https://api.github.com/users/olblak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olblak/subscriptions","organizations_url":"https://api.github.com/users/olblak/orgs","repos_url":"https://api.github.com/users/olblak/repos","events_url":"https://api.github.com/users/olblak/events{/privacy}","received_events_url":"https://api.github.com/users/olblak/received_events","type":"User","site_admin":false},"comments":1,"review_comments":8,"maintainer_can_modify":false,"commits":6,"additions":168,"deletions":0,"changed_files":7}}
{"actor":{"display_login":"olblak"}}