{"action":"closed","number":48,"pull_request":{"url":"https://api.github.com/repos/alphagov/verify-local-startup/pulls/48","id":213086459,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMDg2NDU5","html_url":"https://github.com/alphagov/verify-local-startup/pull/48","diff_url":"https://github.com/alphagov/verify-local-startup/pull/48.diff","patch_url":"https://github.com/alphagov/verify-local-startup/pull/48.patch","issue_url":"https://api.github.com/repos/alphagov/verify-local-startup/issues/48","number":48,"state":"closed","locked":false,"title":"Generate PKI and environment files in Docker","user":{"login":"richardTowers","id":1696784,"node_id":"MDQ6VXNlcjE2OTY3ODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1696784?v=4","gravatar_id":"","url":"https://api.github.com/users/richardTowers","html_url":"https://github.com/richardTowers","followers_url":"https://api.github.com/users/richardTowers/followers","following_url":"https://api.github.com/users/richardTowers/following{/other_user}","gists_url":"https://api.github.com/users/richardTowers/gists{/gist_id}","starred_url":"https://api.github.com/users/richardTowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardTowers/subscriptions","organizations_url":"https://api.github.com/users/richardTowers/orgs","repos_url":"https://api.github.com/users/richardTowers/repos","events_url":"https://api.github.com/users/richardTowers/events{/privacy}","received_events_url":"https://api.github.com/users/richardTowers/received_events","type":"User","site_admin":false},"body":"Interesting things here:\n\n* We need cfssl, but since go produces binaries we can build it in a\n  separate \"stage\" in docker and copy the binaries over to the ruby\n  image\n* It's easiest to just run the xmlsectool.sh script from xmlsectool, so\n  all the scripts have been updated to use an environment variable if set,\n  or fall back to `xmlsectool` if not.\n* alpine has the busybox base64, which is different to BOTH the GNU one\n  the scripts assumed would be everywhere on Linux AND the BSD one the\n  scripts assumed would be on macOs. Using openssl instead should get us\n  true cross-platform goodness (but hopefully we'll all be running in\n  docker from now on).\n* We're mounting the whole repository as a read-write volume, so\n  whatever the container puts in /verify-local-startup will appear in the\n  working copy on the host\n* I've added `set -eu -o pipefail` in `./startup.sh` - we should have\n  this in the other scripts too, but I don't want to do too much in one\n  commit.\n\nAlso\n\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n:whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale: :whale:\n\n```\n               __   __\n              __ \\ / __\n             /  \\ | /  \\\n                 \\|/\n            _,.---v---._\n   /\\__/\\  /            \\\n   \\_  _/ /              \\\n     \\ \\_|           @ __|\n  hjw \\                \\_\n  `97  \\     ,__/       /\n     ~~~`~~~~~~~~~~~~~~/~~~~\n               __   __\n              __ \\ / __\n             /  \\ | /  \\\n                 \\|/\n            _,.---v---._\n   /\\__/\\  /            \\\n   \\_  _/ /              \\\n     \\ \\_|           @ __|\n  hjw \\                \\_\n  `97  \\     ,__/       /\n     ~~~`~~~~~~~~~~~~~~/~~~~\n               __   __\n              __ \\ / __\n             /  \\ | /  \\\n                 \\|/\n            _,.---v---._\n   /\\__/\\  /            \\\n   \\_  _/ /              \\\n     \\ \\_|           @ __|\n  hjw \\                \\_\n  `97  \\     ,__/       /\n     ~~~`~~~~~~~~~~~~~~/~~~~\n               __   __\n              __ \\ / __\n             /  \\ | /  \\\n                 \\|/\n            _,.---v---._\n   /\\__/\\  /            \\\n   \\_  _/ /              \\\n     \\ \\_|           @ __|\n  hjw \\                \\_\n  `97  \\     ,__/       /\n     ~~~`~~~~~~~~~~~~~~/~~~~\n```","created_at":"2018-09-04T19:57:04Z","updated_at":"2018-09-05T16:54:08Z","closed_at":"2018-09-05T16:54:08Z","merged_at":"2018-09-05T16:54:08Z","merge_commit_sha":"b4f87bb5086457212f855372f21efccc7618c82c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/verify-local-startup/pulls/48/commits","review_comments_url":"https://api.github.com/repos/alphagov/verify-local-startup/pulls/48/comments","review_comment_url":"https://api.github.com/repos/alphagov/verify-local-startup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/verify-local-startup/issues/48/comments","statuses_url":"https://api.github.com/repos/alphagov/verify-local-startup/statuses/ef240d1306c00a0bef56f75036f7c7debe1b1952","head":{"label":"alphagov:dockerised-pki-and-env","ref":"dockerised-pki-and-env","sha":"ef240d1306c00a0bef56f75036f7c7debe1b1952","user":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":106834096,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY4MzQwOTY=","name":"verify-local-startup","full_name":"alphagov/verify-local-startup","owner":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/verify-local-startup","description":"Utilities to run the Verify Hub and stubs locally","fork":false,"url":"https://api.github.com/repos/alphagov/verify-local-startup","forks_url":"https://api.github.com/repos/alphagov/verify-local-startup/forks","keys_url":"https://api.github.com/repos/alphagov/verify-local-startup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/verify-local-startup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/verify-local-startup/teams","hooks_url":"https://api.github.com/repos/alphagov/verify-local-startup/hooks","issue_events_url":"https://api.github.com/repos/alphagov/verify-local-startup/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/verify-local-startup/events","assignees_url":"https://api.github.com/repos/alphagov/verify-local-startup/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/verify-local-startup/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/verify-local-startup/tags","blobs_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/verify-local-startup/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/verify-local-startup/languages","stargazers_url":"https://api.github.com/repos/alphagov/verify-local-startup/stargazers","contributors_url":"https://api.github.com/repos/alphagov/verify-local-startup/contributors","subscribers_url":"https://api.github.com/repos/alphagov/verify-local-startup/subscribers","subscription_url":"https://api.github.com/repos/alphagov/verify-local-startup/subscription","commits_url":"https://api.github.com/repos/alphagov/verify-local-startup/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/verify-local-startup/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/verify-local-startup/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/verify-local-startup/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/verify-local-startup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/verify-local-startup/merges","archive_url":"https://api.github.com/repos/alphagov/verify-local-startup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/verify-local-startup/downloads","issues_url":"https://api.github.com/repos/alphagov/verify-local-startup/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/verify-local-startup/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/verify-local-startup/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/verify-local-startup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/verify-local-startup/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/verify-local-startup/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/verify-local-startup/deployments","created_at":"2017-10-13T14:23:25Z","updated_at":"2018-09-05T16:26:19Z","pushed_at":"2018-09-05T16:54:08Z","git_url":"git://github.com/alphagov/verify-local-startup.git","ssh_url":"git@github.com:alphagov/verify-local-startup.git","clone_url":"https://github.com/alphagov/verify-local-startup.git","svn_url":"https://github.com/alphagov/verify-local-startup","homepage":null,"size":161,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"f45198a9ecae4846d0f3d3ae8f0950acc339b851","user":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":106834096,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY4MzQwOTY=","name":"verify-local-startup","full_name":"alphagov/verify-local-startup","owner":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/verify-local-startup","description":"Utilities to run the Verify Hub and stubs locally","fork":false,"url":"https://api.github.com/repos/alphagov/verify-local-startup","forks_url":"https://api.github.com/repos/alphagov/verify-local-startup/forks","keys_url":"https://api.github.com/repos/alphagov/verify-local-startup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/verify-local-startup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/verify-local-startup/teams","hooks_url":"https://api.github.com/repos/alphagov/verify-local-startup/hooks","issue_events_url":"https://api.github.com/repos/alphagov/verify-local-startup/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/verify-local-startup/events","assignees_url":"https://api.github.com/repos/alphagov/verify-local-startup/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/verify-local-startup/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/verify-local-startup/tags","blobs_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/verify-local-startup/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/verify-local-startup/languages","stargazers_url":"https://api.github.com/repos/alphagov/verify-local-startup/stargazers","contributors_url":"https://api.github.com/repos/alphagov/verify-local-startup/contributors","subscribers_url":"https://api.github.com/repos/alphagov/verify-local-startup/subscribers","subscription_url":"https://api.github.com/repos/alphagov/verify-local-startup/subscription","commits_url":"https://api.github.com/repos/alphagov/verify-local-startup/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/verify-local-startup/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/verify-local-startup/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/verify-local-startup/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/verify-local-startup/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/verify-local-startup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/verify-local-startup/merges","archive_url":"https://api.github.com/repos/alphagov/verify-local-startup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/verify-local-startup/downloads","issues_url":"https://api.github.com/repos/alphagov/verify-local-startup/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/verify-local-startup/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/verify-local-startup/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/verify-local-startup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/verify-local-startup/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/verify-local-startup/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/verify-local-startup/deployments","created_at":"2017-10-13T14:23:25Z","updated_at":"2018-09-05T16:26:19Z","pushed_at":"2018-09-05T16:54:08Z","git_url":"git://github.com/alphagov/verify-local-startup.git","ssh_url":"git@github.com:alphagov/verify-local-startup.git","clone_url":"https://github.com/alphagov/verify-local-startup.git","svn_url":"https://github.com/alphagov/verify-local-startup","homepage":null,"size":161,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/verify-local-startup/pulls/48"},"html":{"href":"https://github.com/alphagov/verify-local-startup/pull/48"},"issue":{"href":"https://api.github.com/repos/alphagov/verify-local-startup/issues/48"},"comments":{"href":"https://api.github.com/repos/alphagov/verify-local-startup/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/verify-local-startup/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/verify-local-startup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/verify-local-startup/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/verify-local-startup/statuses/ef240d1306c00a0bef56f75036f7c7debe1b1952"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"richardTowers","id":1696784,"node_id":"MDQ6VXNlcjE2OTY3ODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1696784?v=4","gravatar_id":"","url":"https://api.github.com/users/richardTowers","html_url":"https://github.com/richardTowers","followers_url":"https://api.github.com/users/richardTowers/followers","following_url":"https://api.github.com/users/richardTowers/following{/other_user}","gists_url":"https://api.github.com/users/richardTowers/gists{/gist_id}","starred_url":"https://api.github.com/users/richardTowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardTowers/subscriptions","organizations_url":"https://api.github.com/users/richardTowers/orgs","repos_url":"https://api.github.com/users/richardTowers/repos","events_url":"https://api.github.com/users/richardTowers/events{/privacy}","received_events_url":"https://api.github.com/users/richardTowers/received_events","type":"User","site_admin":false},"comments":0,"review_comments":9,"maintainer_can_modify":false,"commits":4,"additions":54,"deletions":11,"changed_files":6}}
{"actor":{"display_login":"richardTowers"}}