{"action":"created","comment":{"url":"https://api.github.com/repos/getlarky/nudge-peen/pulls/comments/175875306","pull_request_review_id":105479259,"id":175875306,"diff_hunk":"@@ -1,5 +1,4 @@\n-CREATE USER IF NOT EXISTS larky@localhost;\n-GRANT ALL PRIVILEGES ON *.* TO 'larky'@'localhost' WITH GRANT OPTION;\n+GRANT ALL PRIVILEGES ON `%`.* TO 'larky'@'%' IDENTIFIED BY 'larky123' WITH GRANT OPTION;","path":"push/db/scripts/setup.sql","position":3,"original_position":3,"commit_id":"304f6dccd8f3d27d70bcbe2b18d2aa096d875197","original_commit_id":"ea76bad630a98f6a905b1a02e9f5615d9ef965b8","user":{"login":"bromeostasis","id":3764641,"avatar_url":"https://avatars3.githubusercontent.com/u/3764641?v=4","gravatar_id":"","url":"https://api.github.com/users/bromeostasis","html_url":"https://github.com/bromeostasis","followers_url":"https://api.github.com/users/bromeostasis/followers","following_url":"https://api.github.com/users/bromeostasis/following{/other_user}","gists_url":"https://api.github.com/users/bromeostasis/gists{/gist_id}","starred_url":"https://api.github.com/users/bromeostasis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bromeostasis/subscriptions","organizations_url":"https://api.github.com/users/bromeostasis/orgs","repos_url":"https://api.github.com/users/bromeostasis/repos","events_url":"https://api.github.com/users/bromeostasis/events{/privacy}","received_events_url":"https://api.github.com/users/bromeostasis/received_events","type":"User","site_admin":false},"body":"> Is there any way we can restrict access a little more, e.g. a known AWS range or something?\r\n\r\n@ishotjr I was thinking about this, is this not covered by the staging database having a security group that only allows access from certain IPs?\r\n\r\nThe way it works right now is that it uses the `ecs` security group to allow instances to access the db (even if the IPs change).\r\n\r\n![image](https://user-images.githubusercontent.com/3764641/37674845-26b20ad0-2c4a-11e8-92df-99f037df04d7.png)\r\n\r\nI've tried to look around a bit, but I'm not really sure how to get an IP range out of this and how to keep it dynamic for the db user. Do you have any suggestions on how to start?","created_at":"2018-03-20T18:23:30Z","updated_at":"2018-03-20T18:23:30Z","html_url":"https://github.com/getlarky/nudge-peen/pull/17#discussion_r175875306","pull_request_url":"https://api.github.com/repos/getlarky/nudge-peen/pulls/17","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/getlarky/nudge-peen/pulls/comments/175875306"},"html":{"href":"https://github.com/getlarky/nudge-peen/pull/17#discussion_r175875306"},"pull_request":{"href":"https://api.github.com/repos/getlarky/nudge-peen/pulls/17"}},"in_reply_to_id":175813673},"pull_request":{"url":"https://api.github.com/repos/getlarky/nudge-peen/pulls/17","id":175422969,"html_url":"https://github.com/getlarky/nudge-peen/pull/17","diff_url":"https://github.com/getlarky/nudge-peen/pull/17.diff","patch_url":"https://github.com/getlarky/nudge-peen/pull/17.patch","issue_url":"https://api.github.com/repos/getlarky/nudge-peen/issues/17","number":17,"state":"open","locked":false,"title":"⚠️ [CR-ONLY] ⚠️  nudge PEEN STAGING CI/provisioning #28","user":{"login":"bromeostasis","id":3764641,"avatar_url":"https://avatars3.githubusercontent.com/u/3764641?v=4","gravatar_id":"","url":"https://api.github.com/users/bromeostasis","html_url":"https://github.com/bromeostasis","followers_url":"https://api.github.com/users/bromeostasis/followers","following_url":"https://api.github.com/users/bromeostasis/following{/other_user}","gists_url":"https://api.github.com/users/bromeostasis/gists{/gist_id}","starred_url":"https://api.github.com/users/bromeostasis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bromeostasis/subscriptions","organizations_url":"https://api.github.com/users/bromeostasis/orgs","repos_url":"https://api.github.com/users/bromeostasis/repos","events_url":"https://api.github.com/users/bromeostasis/events{/privacy}","received_events_url":"https://api.github.com/users/bromeostasis/received_events","type":"User","site_admin":false},"body":"closes getlarky/nudge#28\r\n\r\nTesting completed [here](https://github.com/getlarky/nudge/issues/28#issuecomment-372837358)\r\n\r\n⚠️ This PR compares to `master`, since the branch was already merged into `staging`, making them the same. Once PR changes are complete, the base should be **switched** to `staging` to merge in any additional CR changes! ⚠️ ","created_at":"2018-03-16T02:01:12Z","updated_at":"2018-03-20T18:23:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8584ea0133af48d8e56f2d8a03137c8ce4b8d9cd","assignee":{"login":"ishotjr","id":1594827,"avatar_url":"https://avatars2.githubusercontent.com/u/1594827?v=4","gravatar_id":"","url":"https://api.github.com/users/ishotjr","html_url":"https://github.com/ishotjr","followers_url":"https://api.github.com/users/ishotjr/followers","following_url":"https://api.github.com/users/ishotjr/following{/other_user}","gists_url":"https://api.github.com/users/ishotjr/gists{/gist_id}","starred_url":"https://api.github.com/users/ishotjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishotjr/subscriptions","organizations_url":"https://api.github.com/users/ishotjr/orgs","repos_url":"https://api.github.com/users/ishotjr/repos","events_url":"https://api.github.com/users/ishotjr/events{/privacy}","received_events_url":"https://api.github.com/users/ishotjr/received_events","type":"User","site_admin":false},"assignees":[{"login":"ishotjr","id":1594827,"avatar_url":"https://avatars2.githubusercontent.com/u/1594827?v=4","gravatar_id":"","url":"https://api.github.com/users/ishotjr","html_url":"https://github.com/ishotjr","followers_url":"https://api.github.com/users/ishotjr/followers","following_url":"https://api.github.com/users/ishotjr/following{/other_user}","gists_url":"https://api.github.com/users/ishotjr/gists{/gist_id}","starred_url":"https://api.github.com/users/ishotjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishotjr/subscriptions","organizations_url":"https://api.github.com/users/ishotjr/orgs","repos_url":"https://api.github.com/users/ishotjr/repos","events_url":"https://api.github.com/users/ishotjr/events{/privacy}","received_events_url":"https://api.github.com/users/ishotjr/received_events","type":"User","site_admin":false},{"login":"bromeostasis","id":3764641,"avatar_url":"https://avatars3.githubusercontent.com/u/3764641?v=4","gravatar_id":"","url":"https://api.github.com/users/bromeostasis","html_url":"https://github.com/bromeostasis","followers_url":"https://api.github.com/users/bromeostasis/followers","following_url":"https://api.github.com/users/bromeostasis/following{/other_user}","gists_url":"https://api.github.com/users/bromeostasis/gists{/gist_id}","starred_url":"https://api.github.com/users/bromeostasis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bromeostasis/subscriptions","organizations_url":"https://api.github.com/users/bromeostasis/orgs","repos_url":"https://api.github.com/users/bromeostasis/repos","events_url":"https://api.github.com/users/bromeostasis/events{/privacy}","received_events_url":"https://api.github.com/users/bromeostasis/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"McGarveyMobile","id":3892697,"avatar_url":"https://avatars2.githubusercontent.com/u/3892697?v=4","gravatar_id":"","url":"https://api.github.com/users/McGarveyMobile","html_url":"https://github.com/McGarveyMobile","followers_url":"https://api.github.com/users/McGarveyMobile/followers","following_url":"https://api.github.com/users/McGarveyMobile/following{/other_user}","gists_url":"https://api.github.com/users/McGarveyMobile/gists{/gist_id}","starred_url":"https://api.github.com/users/McGarveyMobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McGarveyMobile/subscriptions","organizations_url":"https://api.github.com/users/McGarveyMobile/orgs","repos_url":"https://api.github.com/users/McGarveyMobile/repos","events_url":"https://api.github.com/users/McGarveyMobile/events{/privacy}","received_events_url":"https://api.github.com/users/McGarveyMobile/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/getlarky/nudge-peen/pulls/17/commits","review_comments_url":"https://api.github.com/repos/getlarky/nudge-peen/pulls/17/comments","review_comment_url":"https://api.github.com/repos/getlarky/nudge-peen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getlarky/nudge-peen/issues/17/comments","statuses_url":"https://api.github.com/repos/getlarky/nudge-peen/statuses/304f6dccd8f3d27d70bcbe2b18d2aa096d875197","head":{"label":"getlarky:28-docker","ref":"28-docker","sha":"304f6dccd8f3d27d70bcbe2b18d2aa096d875197","user":{"login":"getlarky","id":8038497,"avatar_url":"https://avatars1.githubusercontent.com/u/8038497?v=4","gravatar_id":"","url":"https://api.github.com/users/getlarky","html_url":"https://github.com/getlarky","followers_url":"https://api.github.com/users/getlarky/followers","following_url":"https://api.github.com/users/getlarky/following{/other_user}","gists_url":"https://api.github.com/users/getlarky/gists{/gist_id}","starred_url":"https://api.github.com/users/getlarky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getlarky/subscriptions","organizations_url":"https://api.github.com/users/getlarky/orgs","repos_url":"https://api.github.com/users/getlarky/repos","events_url":"https://api.github.com/users/getlarky/events{/privacy}","received_events_url":"https://api.github.com/users/getlarky/received_events","type":"Organization","site_admin":false},"repo":{"id":118965652,"name":"nudge-peen","full_name":"getlarky/nudge-peen","owner":{"login":"getlarky","id":8038497,"avatar_url":"https://avatars1.githubusercontent.com/u/8038497?v=4","gravatar_id":"","url":"https://api.github.com/users/getlarky","html_url":"https://github.com/getlarky","followers_url":"https://api.github.com/users/getlarky/followers","following_url":"https://api.github.com/users/getlarky/following{/other_user}","gists_url":"https://api.github.com/users/getlarky/gists{/gist_id}","starred_url":"https://api.github.com/users/getlarky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getlarky/subscriptions","organizations_url":"https://api.github.com/users/getlarky/orgs","repos_url":"https://api.github.com/users/getlarky/repos","events_url":"https://api.github.com/users/getlarky/events{/privacy}","received_events_url":"https://api.github.com/users/getlarky/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getlarky/nudge-peen","description":"PEEN microservice for nudge!","fork":false,"url":"https://api.github.com/repos/getlarky/nudge-peen","forks_url":"https://api.github.com/repos/getlarky/nudge-peen/forks","keys_url":"https://api.github.com/repos/getlarky/nudge-peen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getlarky/nudge-peen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getlarky/nudge-peen/teams","hooks_url":"https://api.github.com/repos/getlarky/nudge-peen/hooks","issue_events_url":"https://api.github.com/repos/getlarky/nudge-peen/issues/events{/number}","events_url":"https://api.github.com/repos/getlarky/nudge-peen/events","assignees_url":"https://api.github.com/repos/getlarky/nudge-peen/assignees{/user}","branches_url":"https://api.github.com/repos/getlarky/nudge-peen/branches{/branch}","tags_url":"https://api.github.com/repos/getlarky/nudge-peen/tags","blobs_url":"https://api.github.com/repos/getlarky/nudge-peen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getlarky/nudge-peen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getlarky/nudge-peen/git/refs{/sha}","trees_url":"https://api.github.com/repos/getlarky/nudge-peen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getlarky/nudge-peen/statuses/{sha}","languages_url":"https://api.github.com/repos/getlarky/nudge-peen/languages","stargazers_url":"https://api.github.com/repos/getlarky/nudge-peen/stargazers","contributors_url":"https://api.github.com/repos/getlarky/nudge-peen/contributors","subscribers_url":"https://api.github.com/repos/getlarky/nudge-peen/subscribers","subscription_url":"https://api.github.com/repos/getlarky/nudge-peen/subscription","commits_url":"https://api.github.com/repos/getlarky/nudge-peen/commits{/sha}","git_commits_url":"https://api.github.com/repos/getlarky/nudge-peen/git/commits{/sha}","comments_url":"https://api.github.com/repos/getlarky/nudge-peen/comments{/number}","issue_comment_url":"https://api.github.com/repos/getlarky/nudge-peen/issues/comments{/number}","contents_url":"https://api.github.com/repos/getlarky/nudge-peen/contents/{+path}","compare_url":"https://api.github.com/repos/getlarky/nudge-peen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getlarky/nudge-peen/merges","archive_url":"https://api.github.com/repos/getlarky/nudge-peen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getlarky/nudge-peen/downloads","issues_url":"https://api.github.com/repos/getlarky/nudge-peen/issues{/number}","pulls_url":"https://api.github.com/repos/getlarky/nudge-peen/pulls{/number}","milestones_url":"https://api.github.com/repos/getlarky/nudge-peen/milestones{/number}","notifications_url":"https://api.github.com/repos/getlarky/nudge-peen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getlarky/nudge-peen/labels{/name}","releases_url":"https://api.github.com/repos/getlarky/nudge-peen/releases{/id}","deployments_url":"https://api.github.com/repos/getlarky/nudge-peen/deployments","created_at":"2018-01-25T20:44:19Z","updated_at":"2018-03-14T14:26:19Z","pushed_at":"2018-03-20T17:57:21Z","git_url":"git://github.com/getlarky/nudge-peen.git","ssh_url":"git@github.com:getlarky/nudge-peen.git","clone_url":"https://github.com/getlarky/nudge-peen.git","svn_url":"https://github.com/getlarky/nudge-peen","homepage":null,"size":253,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"getlarky:master","ref":"master","sha":"d9360c4a6e51b060ab887693c7fc679983e80dd7","user":{"login":"getlarky","id":8038497,"avatar_url":"https://avatars1.githubusercontent.com/u/8038497?v=4","gravatar_id":"","url":"https://api.github.com/users/getlarky","html_url":"https://github.com/getlarky","followers_url":"https://api.github.com/users/getlarky/followers","following_url":"https://api.github.com/users/getlarky/following{/other_user}","gists_url":"https://api.github.com/users/getlarky/gists{/gist_id}","starred_url":"https://api.github.com/users/getlarky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getlarky/subscriptions","organizations_url":"https://api.github.com/users/getlarky/orgs","repos_url":"https://api.github.com/users/getlarky/repos","events_url":"https://api.github.com/users/getlarky/events{/privacy}","received_events_url":"https://api.github.com/users/getlarky/received_events","type":"Organization","site_admin":false},"repo":{"id":118965652,"name":"nudge-peen","full_name":"getlarky/nudge-peen","owner":{"login":"getlarky","id":8038497,"avatar_url":"https://avatars1.githubusercontent.com/u/8038497?v=4","gravatar_id":"","url":"https://api.github.com/users/getlarky","html_url":"https://github.com/getlarky","followers_url":"https://api.github.com/users/getlarky/followers","following_url":"https://api.github.com/users/getlarky/following{/other_user}","gists_url":"https://api.github.com/users/getlarky/gists{/gist_id}","starred_url":"https://api.github.com/users/getlarky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getlarky/subscriptions","organizations_url":"https://api.github.com/users/getlarky/orgs","repos_url":"https://api.github.com/users/getlarky/repos","events_url":"https://api.github.com/users/getlarky/events{/privacy}","received_events_url":"https://api.github.com/users/getlarky/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getlarky/nudge-peen","description":"PEEN microservice for nudge!","fork":false,"url":"https://api.github.com/repos/getlarky/nudge-peen","forks_url":"https://api.github.com/repos/getlarky/nudge-peen/forks","keys_url":"https://api.github.com/repos/getlarky/nudge-peen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getlarky/nudge-peen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getlarky/nudge-peen/teams","hooks_url":"https://api.github.com/repos/getlarky/nudge-peen/hooks","issue_events_url":"https://api.github.com/repos/getlarky/nudge-peen/issues/events{/number}","events_url":"https://api.github.com/repos/getlarky/nudge-peen/events","assignees_url":"https://api.github.com/repos/getlarky/nudge-peen/assignees{/user}","branches_url":"https://api.github.com/repos/getlarky/nudge-peen/branches{/branch}","tags_url":"https://api.github.com/repos/getlarky/nudge-peen/tags","blobs_url":"https://api.github.com/repos/getlarky/nudge-peen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getlarky/nudge-peen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getlarky/nudge-peen/git/refs{/sha}","trees_url":"https://api.github.com/repos/getlarky/nudge-peen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getlarky/nudge-peen/statuses/{sha}","languages_url":"https://api.github.com/repos/getlarky/nudge-peen/languages","stargazers_url":"https://api.github.com/repos/getlarky/nudge-peen/stargazers","contributors_url":"https://api.github.com/repos/getlarky/nudge-peen/contributors","subscribers_url":"https://api.github.com/repos/getlarky/nudge-peen/subscribers","subscription_url":"https://api.github.com/repos/getlarky/nudge-peen/subscription","commits_url":"https://api.github.com/repos/getlarky/nudge-peen/commits{/sha}","git_commits_url":"https://api.github.com/repos/getlarky/nudge-peen/git/commits{/sha}","comments_url":"https://api.github.com/repos/getlarky/nudge-peen/comments{/number}","issue_comment_url":"https://api.github.com/repos/getlarky/nudge-peen/issues/comments{/number}","contents_url":"https://api.github.com/repos/getlarky/nudge-peen/contents/{+path}","compare_url":"https://api.github.com/repos/getlarky/nudge-peen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getlarky/nudge-peen/merges","archive_url":"https://api.github.com/repos/getlarky/nudge-peen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getlarky/nudge-peen/downloads","issues_url":"https://api.github.com/repos/getlarky/nudge-peen/issues{/number}","pulls_url":"https://api.github.com/repos/getlarky/nudge-peen/pulls{/number}","milestones_url":"https://api.github.com/repos/getlarky/nudge-peen/milestones{/number}","notifications_url":"https://api.github.com/repos/getlarky/nudge-peen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getlarky/nudge-peen/labels{/name}","releases_url":"https://api.github.com/repos/getlarky/nudge-peen/releases{/id}","deployments_url":"https://api.github.com/repos/getlarky/nudge-peen/deployments","created_at":"2018-01-25T20:44:19Z","updated_at":"2018-03-14T14:26:19Z","pushed_at":"2018-03-20T17:57:21Z","git_url":"git://github.com/getlarky/nudge-peen.git","ssh_url":"git@github.com:getlarky/nudge-peen.git","clone_url":"https://github.com/getlarky/nudge-peen.git","svn_url":"https://github.com/getlarky/nudge-peen","homepage":null,"size":253,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getlarky/nudge-peen/pulls/17"},"html":{"href":"https://github.com/getlarky/nudge-peen/pull/17"},"issue":{"href":"https://api.github.com/repos/getlarky/nudge-peen/issues/17"},"comments":{"href":"https://api.github.com/repos/getlarky/nudge-peen/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/getlarky/nudge-peen/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/getlarky/nudge-peen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getlarky/nudge-peen/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/getlarky/nudge-peen/statuses/304f6dccd8f3d27d70bcbe2b18d2aa096d875197"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"bromeostasis"}}