{"action":"opened","number":242,"pull_request":{"url":"https://api.github.com/repos/manifoldco/torus-cli/pulls/242","id":122126404,"html_url":"https://github.com/manifoldco/torus-cli/pull/242","diff_url":"https://github.com/manifoldco/torus-cli/pull/242.diff","patch_url":"https://github.com/manifoldco/torus-cli/pull/242.patch","issue_url":"https://api.github.com/repos/manifoldco/torus-cli/issues/242","number":242,"state":"open","locked":false,"title":"Gatekeeper (single process)","user":{"login":"enmand","id":432487,"avatar_url":"https://avatars0.githubusercontent.com/u/432487?v=3","gravatar_id":"","url":"https://api.github.com/users/enmand","html_url":"https://github.com/enmand","followers_url":"https://api.github.com/users/enmand/followers","following_url":"https://api.github.com/users/enmand/following{/other_user}","gists_url":"https://api.github.com/users/enmand/gists{/gist_id}","starred_url":"https://api.github.com/users/enmand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enmand/subscriptions","organizations_url":"https://api.github.com/users/enmand/orgs","repos_url":"https://api.github.com/users/enmand/repos","events_url":"https://api.github.com/users/enmand/events{/privacy}","received_events_url":"https://api.github.com/users/enmand/received_events","type":"User","site_admin":false},"body":"This is the same implementation as #236, except it runs in the main Torus process, instead of as a co-process.\r\n\r\n---\r\n\r\nThis pull requests add a Gatekeeper implementation that is able to bootstrap machine registration without manual intervention and prompting. This is useful in a continuous integration environment where servers may scale in or out automatically.\r\n\r\nThis pull requests contains code for bootstrapping AWS machines, based on their Instance Metadata and their [Instance Identity Docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html). AWS  provides signed metadata information, which can be used for instance verification.\r\n\r\nThe Gatekeeper listens on \"0.0.0.0:8200\" by default.\r\n\r\n## Gatekeeper Commands\r\n`torus gatekeeper start` -- start the Gatekeeper listener\r\n\r\n## Bootstrapping Commands:\r\n`torus bootstrap` -- bootstrap a machine into the Gatekeeper listener.\r\n\r\n**The `torus bootstrap` command must be run as root, since it writes to `/etc/torus`**\r\n\r\n`bootstrap` takes additional arguments:\r\n`--url` (_required_): Gatekeeper URL\r\n`--auth` (_requied_): Gatekeeper authentication type to use (valid: _aws_)\r\n`--org` (_optional_): Organization to bootstrap to\r\n`--role` (_optional_): Team/Role to bootstrap to\r\n`--machine` (_optional_): Machine name to provision\r\n\r\n# Future Work\r\n\r\nThere is an opportunity for future work here, particularly around other cloud providers. For AWS, some additional verification that the server is running, and a comparison on instance running in a provided AWS environment would help Torus ensure the server actually exists. Additionally, SSL on the Gatekeeper may be worthwhile since it passes a machine secret to the server.\r\n\r\n# Added Dependency\r\nAdded the dependency `github.com/fullsailor/pkcs7` which is used for signature validation from AWS.","created_at":"2017-05-24T01:12:06Z","updated_at":"2017-05-24T01:12:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/manifoldco/torus-cli/pulls/242/commits","review_comments_url":"https://api.github.com/repos/manifoldco/torus-cli/pulls/242/comments","review_comment_url":"https://api.github.com/repos/manifoldco/torus-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/manifoldco/torus-cli/issues/242/comments","statuses_url":"https://api.github.com/repos/manifoldco/torus-cli/statuses/e220a83c45745dfee668f12be1bb7462ae2e8311","head":{"label":"enmand:gatekeeper-single-process","ref":"gatekeeper-single-process","sha":"e220a83c45745dfee668f12be1bb7462ae2e8311","user":{"login":"enmand","id":432487,"avatar_url":"https://avatars0.githubusercontent.com/u/432487?v=3","gravatar_id":"","url":"https://api.github.com/users/enmand","html_url":"https://github.com/enmand","followers_url":"https://api.github.com/users/enmand/followers","following_url":"https://api.github.com/users/enmand/following{/other_user}","gists_url":"https://api.github.com/users/enmand/gists{/gist_id}","starred_url":"https://api.github.com/users/enmand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enmand/subscriptions","organizations_url":"https://api.github.com/users/enmand/orgs","repos_url":"https://api.github.com/users/enmand/repos","events_url":"https://api.github.com/users/enmand/events{/privacy}","received_events_url":"https://api.github.com/users/enmand/received_events","type":"User","site_admin":false},"repo":{"id":91923377,"name":"torus-cli","full_name":"enmand/torus-cli","owner":{"login":"enmand","id":432487,"avatar_url":"https://avatars0.githubusercontent.com/u/432487?v=3","gravatar_id":"","url":"https://api.github.com/users/enmand","html_url":"https://github.com/enmand","followers_url":"https://api.github.com/users/enmand/followers","following_url":"https://api.github.com/users/enmand/following{/other_user}","gists_url":"https://api.github.com/users/enmand/gists{/gist_id}","starred_url":"https://api.github.com/users/enmand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enmand/subscriptions","organizations_url":"https://api.github.com/users/enmand/orgs","repos_url":"https://api.github.com/users/enmand/repos","events_url":"https://api.github.com/users/enmand/events{/privacy}","received_events_url":"https://api.github.com/users/enmand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enmand/torus-cli","description":"A secure, shared workspace for secrets","fork":true,"url":"https://api.github.com/repos/enmand/torus-cli","forks_url":"https://api.github.com/repos/enmand/torus-cli/forks","keys_url":"https://api.github.com/repos/enmand/torus-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enmand/torus-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enmand/torus-cli/teams","hooks_url":"https://api.github.com/repos/enmand/torus-cli/hooks","issue_events_url":"https://api.github.com/repos/enmand/torus-cli/issues/events{/number}","events_url":"https://api.github.com/repos/enmand/torus-cli/events","assignees_url":"https://api.github.com/repos/enmand/torus-cli/assignees{/user}","branches_url":"https://api.github.com/repos/enmand/torus-cli/branches{/branch}","tags_url":"https://api.github.com/repos/enmand/torus-cli/tags","blobs_url":"https://api.github.com/repos/enmand/torus-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enmand/torus-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enmand/torus-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/enmand/torus-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enmand/torus-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/enmand/torus-cli/languages","stargazers_url":"https://api.github.com/repos/enmand/torus-cli/stargazers","contributors_url":"https://api.github.com/repos/enmand/torus-cli/contributors","subscribers_url":"https://api.github.com/repos/enmand/torus-cli/subscribers","subscription_url":"https://api.github.com/repos/enmand/torus-cli/subscription","commits_url":"https://api.github.com/repos/enmand/torus-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/enmand/torus-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/enmand/torus-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/enmand/torus-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/enmand/torus-cli/contents/{+path}","compare_url":"https://api.github.com/repos/enmand/torus-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enmand/torus-cli/merges","archive_url":"https://api.github.com/repos/enmand/torus-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enmand/torus-cli/downloads","issues_url":"https://api.github.com/repos/enmand/torus-cli/issues{/number}","pulls_url":"https://api.github.com/repos/enmand/torus-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/enmand/torus-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/enmand/torus-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enmand/torus-cli/labels{/name}","releases_url":"https://api.github.com/repos/enmand/torus-cli/releases{/id}","deployments_url":"https://api.github.com/repos/enmand/torus-cli/deployments","created_at":"2017-05-21T00:04:04Z","updated_at":"2017-05-21T00:04:06Z","pushed_at":"2017-05-24T00:58:10Z","git_url":"git://github.com/enmand/torus-cli.git","ssh_url":"git@github.com:enmand/torus-cli.git","clone_url":"https://github.com/enmand/torus-cli.git","svn_url":"https://github.com/enmand/torus-cli","homepage":"https://www.torus.sh","size":2575,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"manifoldco:master","ref":"master","sha":"35f4ecbc29fcb65d654c11db5eecd240020439f2","user":{"login":"manifoldco","id":16501525,"avatar_url":"https://avatars1.githubusercontent.com/u/16501525?v=3","gravatar_id":"","url":"https://api.github.com/users/manifoldco","html_url":"https://github.com/manifoldco","followers_url":"https://api.github.com/users/manifoldco/followers","following_url":"https://api.github.com/users/manifoldco/following{/other_user}","gists_url":"https://api.github.com/users/manifoldco/gists{/gist_id}","starred_url":"https://api.github.com/users/manifoldco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manifoldco/subscriptions","organizations_url":"https://api.github.com/users/manifoldco/orgs","repos_url":"https://api.github.com/users/manifoldco/repos","events_url":"https://api.github.com/users/manifoldco/events{/privacy}","received_events_url":"https://api.github.com/users/manifoldco/received_events","type":"Organization","site_admin":false},"repo":{"id":72035075,"name":"torus-cli","full_name":"manifoldco/torus-cli","owner":{"login":"manifoldco","id":16501525,"avatar_url":"https://avatars1.githubusercontent.com/u/16501525?v=3","gravatar_id":"","url":"https://api.github.com/users/manifoldco","html_url":"https://github.com/manifoldco","followers_url":"https://api.github.com/users/manifoldco/followers","following_url":"https://api.github.com/users/manifoldco/following{/other_user}","gists_url":"https://api.github.com/users/manifoldco/gists{/gist_id}","starred_url":"https://api.github.com/users/manifoldco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manifoldco/subscriptions","organizations_url":"https://api.github.com/users/manifoldco/orgs","repos_url":"https://api.github.com/users/manifoldco/repos","events_url":"https://api.github.com/users/manifoldco/events{/privacy}","received_events_url":"https://api.github.com/users/manifoldco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/manifoldco/torus-cli","description":"A secure, shared workspace for secrets","fork":false,"url":"https://api.github.com/repos/manifoldco/torus-cli","forks_url":"https://api.github.com/repos/manifoldco/torus-cli/forks","keys_url":"https://api.github.com/repos/manifoldco/torus-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manifoldco/torus-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manifoldco/torus-cli/teams","hooks_url":"https://api.github.com/repos/manifoldco/torus-cli/hooks","issue_events_url":"https://api.github.com/repos/manifoldco/torus-cli/issues/events{/number}","events_url":"https://api.github.com/repos/manifoldco/torus-cli/events","assignees_url":"https://api.github.com/repos/manifoldco/torus-cli/assignees{/user}","branches_url":"https://api.github.com/repos/manifoldco/torus-cli/branches{/branch}","tags_url":"https://api.github.com/repos/manifoldco/torus-cli/tags","blobs_url":"https://api.github.com/repos/manifoldco/torus-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manifoldco/torus-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manifoldco/torus-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/manifoldco/torus-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manifoldco/torus-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/manifoldco/torus-cli/languages","stargazers_url":"https://api.github.com/repos/manifoldco/torus-cli/stargazers","contributors_url":"https://api.github.com/repos/manifoldco/torus-cli/contributors","subscribers_url":"https://api.github.com/repos/manifoldco/torus-cli/subscribers","subscription_url":"https://api.github.com/repos/manifoldco/torus-cli/subscription","commits_url":"https://api.github.com/repos/manifoldco/torus-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/manifoldco/torus-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/manifoldco/torus-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/manifoldco/torus-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/manifoldco/torus-cli/contents/{+path}","compare_url":"https://api.github.com/repos/manifoldco/torus-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manifoldco/torus-cli/merges","archive_url":"https://api.github.com/repos/manifoldco/torus-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manifoldco/torus-cli/downloads","issues_url":"https://api.github.com/repos/manifoldco/torus-cli/issues{/number}","pulls_url":"https://api.github.com/repos/manifoldco/torus-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/manifoldco/torus-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/manifoldco/torus-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manifoldco/torus-cli/labels{/name}","releases_url":"https://api.github.com/repos/manifoldco/torus-cli/releases{/id}","deployments_url":"https://api.github.com/repos/manifoldco/torus-cli/deployments","created_at":"2016-10-26T19:00:16Z","updated_at":"2017-05-23T09:54:41Z","pushed_at":"2017-05-23T13:25:34Z","git_url":"git://github.com/manifoldco/torus-cli.git","ssh_url":"git@github.com:manifoldco/torus-cli.git","clone_url":"https://github.com/manifoldco/torus-cli.git","svn_url":"https://github.com/manifoldco/torus-cli","homepage":"https://www.torus.sh","size":2522,"stargazers_count":229,"watchers_count":229,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":43,"forks":16,"open_issues":43,"watchers":229,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/manifoldco/torus-cli/pulls/242"},"html":{"href":"https://github.com/manifoldco/torus-cli/pull/242"},"issue":{"href":"https://api.github.com/repos/manifoldco/torus-cli/issues/242"},"comments":{"href":"https://api.github.com/repos/manifoldco/torus-cli/issues/242/comments"},"review_comments":{"href":"https://api.github.com/repos/manifoldco/torus-cli/pulls/242/comments"},"review_comment":{"href":"https://api.github.com/repos/manifoldco/torus-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/manifoldco/torus-cli/pulls/242/commits"},"statuses":{"href":"https://api.github.com/repos/manifoldco/torus-cli/statuses/e220a83c45745dfee668f12be1bb7462ae2e8311"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":46,"additions":959,"deletions":24,"changed_files":20}}
{"actor":{"display_login":"enmand"}}