{"action":"created","comment":{"url":"https://api.github.com/repos/hybris/zenboot/pulls/comments/128490546","pull_request_review_id":51174114,"id":128490546,"diff_hunk":"@@ -112,6 +114,30 @@ class BootStrap {\n         }\n     }\n \n+    private setupBootstrapExecutionZoneAction() {\n+\n+        def userRole = Role.findByAuthority(Role.ROLE_ADMIN)\n+        def bootstrapUser = Person.findByUsername('bootstrap') ?: new Person(\n+            username: 'bootstrap',\n+            password: 'bootstrap',\n+            enabled: true\n+        ).save(failOnError: true)\n+\n+        if (!bootstrapUser.authorities.contains(userRole)) {","path":"grails-app/conf/BootStrap.groovy","position":22,"original_position":22,"commit_id":"b8cfdc91b28f5c9beeef3a74dbd6d4604b19014e","original_commit_id":"b8cfdc91b28f5c9beeef3a74dbd6d4604b19014e","user":{"login":"danielst-hybris","id":11924238,"avatar_url":"https://avatars3.githubusercontent.com/u/11924238?v=4","gravatar_id":"","url":"https://api.github.com/users/danielst-hybris","html_url":"https://github.com/danielst-hybris","followers_url":"https://api.github.com/users/danielst-hybris/followers","following_url":"https://api.github.com/users/danielst-hybris/following{/other_user}","gists_url":"https://api.github.com/users/danielst-hybris/gists{/gist_id}","starred_url":"https://api.github.com/users/danielst-hybris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielst-hybris/subscriptions","organizations_url":"https://api.github.com/users/danielst-hybris/orgs","repos_url":"https://api.github.com/users/danielst-hybris/repos","events_url":"https://api.github.com/users/danielst-hybris/events{/privacy}","received_events_url":"https://api.github.com/users/danielst-hybris/received_events","type":"User","site_admin":false},"body":"Is it really necessary to create another admin-user who's password also needs to be changed when adding this to a prod-zenboot? Why can't the admin-user be used to execute this on startup?","created_at":"2017-07-20T11:33:23Z","updated_at":"2017-07-20T11:33:23Z","html_url":"https://github.com/hybris/zenboot/pull/95#discussion_r128490546","pull_request_url":"https://api.github.com/repos/hybris/zenboot/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/hybris/zenboot/pulls/comments/128490546"},"html":{"href":"https://github.com/hybris/zenboot/pull/95#discussion_r128490546"},"pull_request":{"href":"https://api.github.com/repos/hybris/zenboot/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/hybris/zenboot/pulls/95","id":130591555,"html_url":"https://github.com/hybris/zenboot/pull/95","diff_url":"https://github.com/hybris/zenboot/pull/95.diff","patch_url":"https://github.com/hybris/zenboot/pull/95.patch","issue_url":"https://api.github.com/repos/hybris/zenboot/issues/95","number":95,"state":"open","locked":false,"title":"BootStrap: Create initial execution zone and user","user":{"login":"Edenhofer","id":7541458,"avatar_url":"https://avatars3.githubusercontent.com/u/7541458?v=4","gravatar_id":"","url":"https://api.github.com/users/Edenhofer","html_url":"https://github.com/Edenhofer","followers_url":"https://api.github.com/users/Edenhofer/followers","following_url":"https://api.github.com/users/Edenhofer/following{/other_user}","gists_url":"https://api.github.com/users/Edenhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/Edenhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Edenhofer/subscriptions","organizations_url":"https://api.github.com/users/Edenhofer/orgs","repos_url":"https://api.github.com/users/Edenhofer/repos","events_url":"https://api.github.com/users/Edenhofer/events{/privacy}","received_events_url":"https://api.github.com/users/Edenhofer/received_events","type":"User","site_admin":false},"body":"Allow for further drop-in files in a new 'initial' execution zone.","created_at":"2017-07-14T13:39:47Z","updated_at":"2017-07-20T11:33:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1c9bd556a9823570a4f57d3e5cf08c5988f7035","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/hybris/zenboot/pulls/95/commits","review_comments_url":"https://api.github.com/repos/hybris/zenboot/pulls/95/comments","review_comment_url":"https://api.github.com/repos/hybris/zenboot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hybris/zenboot/issues/95/comments","statuses_url":"https://api.github.com/repos/hybris/zenboot/statuses/b8cfdc91b28f5c9beeef3a74dbd6d4604b19014e","head":{"label":"Edenhofer:bootstrap","ref":"bootstrap","sha":"b8cfdc91b28f5c9beeef3a74dbd6d4604b19014e","user":{"login":"Edenhofer","id":7541458,"avatar_url":"https://avatars3.githubusercontent.com/u/7541458?v=4","gravatar_id":"","url":"https://api.github.com/users/Edenhofer","html_url":"https://github.com/Edenhofer","followers_url":"https://api.github.com/users/Edenhofer/followers","following_url":"https://api.github.com/users/Edenhofer/following{/other_user}","gists_url":"https://api.github.com/users/Edenhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/Edenhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Edenhofer/subscriptions","organizations_url":"https://api.github.com/users/Edenhofer/orgs","repos_url":"https://api.github.com/users/Edenhofer/repos","events_url":"https://api.github.com/users/Edenhofer/events{/privacy}","received_events_url":"https://api.github.com/users/Edenhofer/received_events","type":"User","site_admin":false},"repo":{"id":97234303,"name":"zenboot","full_name":"Edenhofer/zenboot","owner":{"login":"Edenhofer","id":7541458,"avatar_url":"https://avatars3.githubusercontent.com/u/7541458?v=4","gravatar_id":"","url":"https://api.github.com/users/Edenhofer","html_url":"https://github.com/Edenhofer","followers_url":"https://api.github.com/users/Edenhofer/followers","following_url":"https://api.github.com/users/Edenhofer/following{/other_user}","gists_url":"https://api.github.com/users/Edenhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/Edenhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Edenhofer/subscriptions","organizations_url":"https://api.github.com/users/Edenhofer/orgs","repos_url":"https://api.github.com/users/Edenhofer/repos","events_url":"https://api.github.com/users/Edenhofer/events{/privacy}","received_events_url":"https://api.github.com/users/Edenhofer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Edenhofer/zenboot","description":"orchestrate your scripts","fork":true,"url":"https://api.github.com/repos/Edenhofer/zenboot","forks_url":"https://api.github.com/repos/Edenhofer/zenboot/forks","keys_url":"https://api.github.com/repos/Edenhofer/zenboot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Edenhofer/zenboot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Edenhofer/zenboot/teams","hooks_url":"https://api.github.com/repos/Edenhofer/zenboot/hooks","issue_events_url":"https://api.github.com/repos/Edenhofer/zenboot/issues/events{/number}","events_url":"https://api.github.com/repos/Edenhofer/zenboot/events","assignees_url":"https://api.github.com/repos/Edenhofer/zenboot/assignees{/user}","branches_url":"https://api.github.com/repos/Edenhofer/zenboot/branches{/branch}","tags_url":"https://api.github.com/repos/Edenhofer/zenboot/tags","blobs_url":"https://api.github.com/repos/Edenhofer/zenboot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Edenhofer/zenboot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Edenhofer/zenboot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Edenhofer/zenboot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Edenhofer/zenboot/statuses/{sha}","languages_url":"https://api.github.com/repos/Edenhofer/zenboot/languages","stargazers_url":"https://api.github.com/repos/Edenhofer/zenboot/stargazers","contributors_url":"https://api.github.com/repos/Edenhofer/zenboot/contributors","subscribers_url":"https://api.github.com/repos/Edenhofer/zenboot/subscribers","subscription_url":"https://api.github.com/repos/Edenhofer/zenboot/subscription","commits_url":"https://api.github.com/repos/Edenhofer/zenboot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Edenhofer/zenboot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Edenhofer/zenboot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Edenhofer/zenboot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Edenhofer/zenboot/contents/{+path}","compare_url":"https://api.github.com/repos/Edenhofer/zenboot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Edenhofer/zenboot/merges","archive_url":"https://api.github.com/repos/Edenhofer/zenboot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Edenhofer/zenboot/downloads","issues_url":"https://api.github.com/repos/Edenhofer/zenboot/issues{/number}","pulls_url":"https://api.github.com/repos/Edenhofer/zenboot/pulls{/number}","milestones_url":"https://api.github.com/repos/Edenhofer/zenboot/milestones{/number}","notifications_url":"https://api.github.com/repos/Edenhofer/zenboot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Edenhofer/zenboot/labels{/name}","releases_url":"https://api.github.com/repos/Edenhofer/zenboot/releases{/id}","deployments_url":"https://api.github.com/repos/Edenhofer/zenboot/deployments","created_at":"2017-07-14T13:01:29Z","updated_at":"2017-07-14T13:01:31Z","pushed_at":"2017-07-18T17:39:43Z","git_url":"git://github.com/Edenhofer/zenboot.git","ssh_url":"git@github.com:Edenhofer/zenboot.git","clone_url":"https://github.com/Edenhofer/zenboot.git","svn_url":"https://github.com/Edenhofer/zenboot","homepage":"","size":2409,"stargazers_count":0,"watchers_count":0,"language":"Groovy","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":"hybris:master","ref":"master","sha":"f1c2bace24ebf50ca9e01a21c7346e510994d87d","user":{"login":"hybris","id":3266121,"avatar_url":"https://avatars1.githubusercontent.com/u/3266121?v=4","gravatar_id":"","url":"https://api.github.com/users/hybris","html_url":"https://github.com/hybris","followers_url":"https://api.github.com/users/hybris/followers","following_url":"https://api.github.com/users/hybris/following{/other_user}","gists_url":"https://api.github.com/users/hybris/gists{/gist_id}","starred_url":"https://api.github.com/users/hybris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hybris/subscriptions","organizations_url":"https://api.github.com/users/hybris/orgs","repos_url":"https://api.github.com/users/hybris/repos","events_url":"https://api.github.com/users/hybris/events{/privacy}","received_events_url":"https://api.github.com/users/hybris/received_events","type":"Organization","site_admin":false},"repo":{"id":8268901,"name":"zenboot","full_name":"hybris/zenboot","owner":{"login":"hybris","id":3266121,"avatar_url":"https://avatars1.githubusercontent.com/u/3266121?v=4","gravatar_id":"","url":"https://api.github.com/users/hybris","html_url":"https://github.com/hybris","followers_url":"https://api.github.com/users/hybris/followers","following_url":"https://api.github.com/users/hybris/following{/other_user}","gists_url":"https://api.github.com/users/hybris/gists{/gist_id}","starred_url":"https://api.github.com/users/hybris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hybris/subscriptions","organizations_url":"https://api.github.com/users/hybris/orgs","repos_url":"https://api.github.com/users/hybris/repos","events_url":"https://api.github.com/users/hybris/events{/privacy}","received_events_url":"https://api.github.com/users/hybris/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hybris/zenboot","description":"orchestrate your scripts","fork":false,"url":"https://api.github.com/repos/hybris/zenboot","forks_url":"https://api.github.com/repos/hybris/zenboot/forks","keys_url":"https://api.github.com/repos/hybris/zenboot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hybris/zenboot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hybris/zenboot/teams","hooks_url":"https://api.github.com/repos/hybris/zenboot/hooks","issue_events_url":"https://api.github.com/repos/hybris/zenboot/issues/events{/number}","events_url":"https://api.github.com/repos/hybris/zenboot/events","assignees_url":"https://api.github.com/repos/hybris/zenboot/assignees{/user}","branches_url":"https://api.github.com/repos/hybris/zenboot/branches{/branch}","tags_url":"https://api.github.com/repos/hybris/zenboot/tags","blobs_url":"https://api.github.com/repos/hybris/zenboot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hybris/zenboot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hybris/zenboot/git/refs{/sha}","trees_url":"https://api.github.com/repos/hybris/zenboot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hybris/zenboot/statuses/{sha}","languages_url":"https://api.github.com/repos/hybris/zenboot/languages","stargazers_url":"https://api.github.com/repos/hybris/zenboot/stargazers","contributors_url":"https://api.github.com/repos/hybris/zenboot/contributors","subscribers_url":"https://api.github.com/repos/hybris/zenboot/subscribers","subscription_url":"https://api.github.com/repos/hybris/zenboot/subscription","commits_url":"https://api.github.com/repos/hybris/zenboot/commits{/sha}","git_commits_url":"https://api.github.com/repos/hybris/zenboot/git/commits{/sha}","comments_url":"https://api.github.com/repos/hybris/zenboot/comments{/number}","issue_comment_url":"https://api.github.com/repos/hybris/zenboot/issues/comments{/number}","contents_url":"https://api.github.com/repos/hybris/zenboot/contents/{+path}","compare_url":"https://api.github.com/repos/hybris/zenboot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hybris/zenboot/merges","archive_url":"https://api.github.com/repos/hybris/zenboot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hybris/zenboot/downloads","issues_url":"https://api.github.com/repos/hybris/zenboot/issues{/number}","pulls_url":"https://api.github.com/repos/hybris/zenboot/pulls{/number}","milestones_url":"https://api.github.com/repos/hybris/zenboot/milestones{/number}","notifications_url":"https://api.github.com/repos/hybris/zenboot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hybris/zenboot/labels{/name}","releases_url":"https://api.github.com/repos/hybris/zenboot/releases{/id}","deployments_url":"https://api.github.com/repos/hybris/zenboot/deployments","created_at":"2013-02-18T13:31:30Z","updated_at":"2017-03-01T04:59:57Z","pushed_at":"2017-07-20T11:14:02Z","git_url":"git://github.com/hybris/zenboot.git","ssh_url":"git@github.com:hybris/zenboot.git","clone_url":"https://github.com/hybris/zenboot.git","svn_url":"https://github.com/hybris/zenboot","homepage":"","size":2414,"stargazers_count":16,"watchers_count":16,"language":"Groovy","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":22,"forks":6,"open_issues":22,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hybris/zenboot/pulls/95"},"html":{"href":"https://github.com/hybris/zenboot/pull/95"},"issue":{"href":"https://api.github.com/repos/hybris/zenboot/issues/95"},"comments":{"href":"https://api.github.com/repos/hybris/zenboot/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/hybris/zenboot/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/hybris/zenboot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hybris/zenboot/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/hybris/zenboot/statuses/b8cfdc91b28f5c9beeef3a74dbd6d4604b19014e"}}}}
{"actor":{"display_login":"danielst-hybris"}}