{"action":"created","comment":{"url":"https://api.github.com/repos/hashicorp/vault/pulls/comments/33819934","id":33819934,"diff_hunk":"@@ -0,0 +1,146 @@\n+package ssh\n+\n+import (\n+\t\"crypto/rand\"\n+\t\"crypto/rsa\"\n+\t\"crypto/x509\"\n+\t\"encoding/base64\"\n+\t\"encoding/pem\"\n+\t\"fmt\"\n+\t\"io\"\n+\t\"os\"\n+\t\"os/exec\"\n+\t\"path/filepath\"\n+\n+\t\"golang.org/x/crypto/ssh\"\n+)\n+\n+/*\n+Executes the command represented by the input.\n+Multiple commands can be run by concatinating strings with ';'.\n+Currently, it is supported only for linux platforms and user bash shell.\n+*/\n+func exec_command(cmdString string) error {","path":"builtin/logical/ssh/util.go","position":27,"original_position":23,"commit_id":"ccc0867945135f1c10af3689ae74e5b961488aff","original_commit_id":"13ab7fc40b87ac40f10cfbe1dd659b901ea24756","user":{"login":"VishalNayak","id":3053672,"avatar_url":"https://avatars.githubusercontent.com/u/3053672?v=3","gravatar_id":"","url":"https://api.github.com/users/VishalNayak","html_url":"https://github.com/VishalNayak","followers_url":"https://api.github.com/users/VishalNayak/followers","following_url":"https://api.github.com/users/VishalNayak/following{/other_user}","gists_url":"https://api.github.com/users/VishalNayak/gists{/gist_id}","starred_url":"https://api.github.com/users/VishalNayak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VishalNayak/subscriptions","organizations_url":"https://api.github.com/users/VishalNayak/orgs","repos_url":"https://api.github.com/users/VishalNayak/repos","events_url":"https://api.github.com/users/VishalNayak/events{/privacy}","received_events_url":"https://api.github.com/users/VishalNayak/received_events","type":"User","site_admin":false},"body":"Deleted the method. Not needed anymore.","created_at":"2015-07-02T20:34:46Z","updated_at":"2015-07-02T20:34:46Z","html_url":"https://github.com/hashicorp/vault/pull/385#discussion_r33819934","pull_request_url":"https://api.github.com/repos/hashicorp/vault/pulls/385","_links":{"self":{"href":"https://api.github.com/repos/hashicorp/vault/pulls/comments/33819934"},"html":{"href":"https://github.com/hashicorp/vault/pull/385#discussion_r33819934"},"pull_request":{"href":"https://api.github.com/repos/hashicorp/vault/pulls/385"}}},"pull_request":{"url":"https://api.github.com/repos/hashicorp/vault/pulls/385","id":38983144,"html_url":"https://github.com/hashicorp/vault/pull/385","diff_url":"https://github.com/hashicorp/vault/pull/385.diff","patch_url":"https://github.com/hashicorp/vault/pull/385.patch","issue_url":"https://api.github.com/repos/hashicorp/vault/issues/385","number":385,"state":"open","locked":false,"title":"SSH Secret Backend for Vault","user":{"login":"VishalNayak","id":3053672,"avatar_url":"https://avatars.githubusercontent.com/u/3053672?v=3","gravatar_id":"","url":"https://api.github.com/users/VishalNayak","html_url":"https://github.com/VishalNayak","followers_url":"https://api.github.com/users/VishalNayak/followers","following_url":"https://api.github.com/users/VishalNayak/following{/other_user}","gists_url":"https://api.github.com/users/VishalNayak/gists{/gist_id}","starred_url":"https://api.github.com/users/VishalNayak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VishalNayak/subscriptions","organizations_url":"https://api.github.com/users/VishalNayak/orgs","repos_url":"https://api.github.com/users/VishalNayak/repos","events_url":"https://api.github.com/users/VishalNayak/events{/privacy}","received_events_url":"https://api.github.com/users/VishalNayak/received_events","type":"User","site_admin":false},"body":"Creation of dynamic SSH keys for registered infrastructures.\r\nShared private keys of target machines with privileged access can be registered with Vault.\r\nUsers can get dynamic private keys for any valid username in target machine and establish SSH connection with target.\r\nKeys are leased and needs to be renewed.\r\n \r\nNote: I'm writing tests for this backend and will commit once it is completed.\r\n","created_at":"2015-07-01T13:42:43Z","updated_at":"2015-07-02T20:34:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c78e97800630217c3cbc1a3b9e51cedcc3198acd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hashicorp/vault/pulls/385/commits","review_comments_url":"https://api.github.com/repos/hashicorp/vault/pulls/385/comments","review_comment_url":"https://api.github.com/repos/hashicorp/vault/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hashicorp/vault/issues/385/comments","statuses_url":"https://api.github.com/repos/hashicorp/vault/statuses/ccc0867945135f1c10af3689ae74e5b961488aff","head":{"label":"hashicorp:vishal/vault","ref":"vishal/vault","sha":"ccc0867945135f1c10af3689ae74e5b961488aff","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":31288958,"name":"vault","full_name":"hashicorp/vault","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/vault","description":"A tool for managing secrets.","fork":false,"url":"https://api.github.com/repos/hashicorp/vault","forks_url":"https://api.github.com/repos/hashicorp/vault/forks","keys_url":"https://api.github.com/repos/hashicorp/vault/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/vault/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/vault/teams","hooks_url":"https://api.github.com/repos/hashicorp/vault/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/vault/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/vault/events","assignees_url":"https://api.github.com/repos/hashicorp/vault/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/vault/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/vault/tags","blobs_url":"https://api.github.com/repos/hashicorp/vault/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/vault/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/vault/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/vault/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/vault/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/vault/languages","stargazers_url":"https://api.github.com/repos/hashicorp/vault/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/vault/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/vault/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/vault/subscription","commits_url":"https://api.github.com/repos/hashicorp/vault/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/vault/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/vault/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/vault/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/vault/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/vault/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/vault/merges","archive_url":"https://api.github.com/repos/hashicorp/vault/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/vault/downloads","issues_url":"https://api.github.com/repos/hashicorp/vault/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/vault/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/vault/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/vault/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/vault/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/vault/releases{/id}","created_at":"2015-02-25T00:15:59Z","updated_at":"2015-07-02T17:45:01Z","pushed_at":"2015-07-02T09:20:42Z","git_url":"git://github.com/hashicorp/vault.git","ssh_url":"git@github.com:hashicorp/vault.git","clone_url":"https://github.com/hashicorp/vault.git","svn_url":"https://github.com/hashicorp/vault","homepage":"http://vaultproject.io","size":7352,"stargazers_count":2765,"watchers_count":2765,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":134,"mirror_url":null,"open_issues_count":50,"forks":134,"open_issues":50,"watchers":2765,"default_branch":"master"}},"base":{"label":"hashicorp:master","ref":"master","sha":"5d9356b8a629038c78474c267d8b6fba7e69f65a","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":31288958,"name":"vault","full_name":"hashicorp/vault","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/vault","description":"A tool for managing secrets.","fork":false,"url":"https://api.github.com/repos/hashicorp/vault","forks_url":"https://api.github.com/repos/hashicorp/vault/forks","keys_url":"https://api.github.com/repos/hashicorp/vault/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/vault/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/vault/teams","hooks_url":"https://api.github.com/repos/hashicorp/vault/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/vault/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/vault/events","assignees_url":"https://api.github.com/repos/hashicorp/vault/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/vault/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/vault/tags","blobs_url":"https://api.github.com/repos/hashicorp/vault/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/vault/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/vault/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/vault/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/vault/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/vault/languages","stargazers_url":"https://api.github.com/repos/hashicorp/vault/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/vault/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/vault/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/vault/subscription","commits_url":"https://api.github.com/repos/hashicorp/vault/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/vault/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/vault/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/vault/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/vault/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/vault/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/vault/merges","archive_url":"https://api.github.com/repos/hashicorp/vault/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/vault/downloads","issues_url":"https://api.github.com/repos/hashicorp/vault/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/vault/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/vault/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/vault/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/vault/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/vault/releases{/id}","created_at":"2015-02-25T00:15:59Z","updated_at":"2015-07-02T17:45:01Z","pushed_at":"2015-07-02T09:20:42Z","git_url":"git://github.com/hashicorp/vault.git","ssh_url":"git@github.com:hashicorp/vault.git","clone_url":"https://github.com/hashicorp/vault.git","svn_url":"https://github.com/hashicorp/vault","homepage":"http://vaultproject.io","size":7352,"stargazers_count":2765,"watchers_count":2765,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":134,"mirror_url":null,"open_issues_count":50,"forks":134,"open_issues":50,"watchers":2765,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashicorp/vault/pulls/385"},"html":{"href":"https://github.com/hashicorp/vault/pull/385"},"issue":{"href":"https://api.github.com/repos/hashicorp/vault/issues/385"},"comments":{"href":"https://api.github.com/repos/hashicorp/vault/issues/385/comments"},"review_comments":{"href":"https://api.github.com/repos/hashicorp/vault/pulls/385/comments"},"review_comment":{"href":"https://api.github.com/repos/hashicorp/vault/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hashicorp/vault/pulls/385/commits"},"statuses":{"href":"https://api.github.com/repos/hashicorp/vault/statuses/ccc0867945135f1c10af3689ae74e5b961488aff"}}}}