{"action":"created","comment":{"url":"https://api.github.com/repos/apprenda/kismatic/pulls/comments/91073501","pull_request_review_id":11583273,"id":91073501,"diff_hunk":"@@ -0,0 +1,45 @@\n+package util\n+\n+import (\n+\t\"crypto/x509\"\n+\t\"encoding/pem\"\n+\t\"fmt\"\n+\t\"io/ioutil\"\n+\n+\t\"golang.org/x/crypto/ssh\"\n+)\n+\n+// GetUnencryptedPublicKeyAuth parses SSH private key and returns PublicKeys AuthMethod\n+func GetUnencryptedPublicKeyAuth(file string) (ssh.AuthMethod, error) {\n+\tbuffer, err := ioutil.ReadFile(file)\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\n+\tisEcnrypted, err := isEncrypted(buffer)","path":"pkg/util/ssh.go","position":19,"original_position":19,"commit_id":"7ea98a67bb1bb7f12ff7074f8fc45bef3976b903","original_commit_id":"7ea98a67bb1bb7f12ff7074f8fc45bef3976b903","user":{"login":"alexbrand","id":545723,"avatar_url":"https://avatars.githubusercontent.com/u/545723?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbrand","html_url":"https://github.com/alexbrand","followers_url":"https://api.github.com/users/alexbrand/followers","following_url":"https://api.github.com/users/alexbrand/following{/other_user}","gists_url":"https://api.github.com/users/alexbrand/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbrand/subscriptions","organizations_url":"https://api.github.com/users/alexbrand/orgs","repos_url":"https://api.github.com/users/alexbrand/repos","events_url":"https://api.github.com/users/alexbrand/events{/privacy}","received_events_url":"https://api.github.com/users/alexbrand/received_events","type":"User","site_admin":false},"body":"typo","created_at":"2016-12-06T13:07:58Z","updated_at":"2016-12-06T13:07:58Z","html_url":"https://github.com/apprenda/kismatic/pull/143#discussion_r91073501","pull_request_url":"https://api.github.com/repos/apprenda/kismatic/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/apprenda/kismatic/pulls/comments/91073501"},"html":{"href":"https://github.com/apprenda/kismatic/pull/143#discussion_r91073501"},"pull_request":{"href":"https://api.github.com/repos/apprenda/kismatic/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/apprenda/kismatic/pulls/143","id":96200544,"html_url":"https://github.com/apprenda/kismatic/pull/143","diff_url":"https://github.com/apprenda/kismatic/pull/143.diff","patch_url":"https://github.com/apprenda/kismatic/pull/143.patch","issue_url":"https://api.github.com/repos/apprenda/kismatic/issues/143","number":143,"state":"open","locked":false,"title":"Validate ssh","user":{"login":"dkoshkin","id":4969231,"avatar_url":"https://avatars.githubusercontent.com/u/4969231?v=3","gravatar_id":"","url":"https://api.github.com/users/dkoshkin","html_url":"https://github.com/dkoshkin","followers_url":"https://api.github.com/users/dkoshkin/followers","following_url":"https://api.github.com/users/dkoshkin/following{/other_user}","gists_url":"https://api.github.com/users/dkoshkin/gists{/gist_id}","starred_url":"https://api.github.com/users/dkoshkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkoshkin/subscriptions","organizations_url":"https://api.github.com/users/dkoshkin/orgs","repos_url":"https://api.github.com/users/dkoshkin/repos","events_url":"https://api.github.com/users/dkoshkin/events{/privacy}","received_events_url":"https://api.github.com/users/dkoshkin/received_events","type":"User","site_admin":false},"body":"Added validation for SSH connection\r\n\r\n```\r\nValidating==========================================================================\r\nReading installation plan file \"kismatic-testing.yaml\"                          [OK]\r\nValidating installation plan file                                               [ERROR]\r\n- Etcd nodes: error parsing SSH key: Parse SSH key error: ssh: no key found\r\n- Master nodes: error parsing SSH key: Parse SSH key error: ssh: no key found\r\n- Worker nodes: error parsing SSH key: Parse SSH key error: ssh: no key found\r\nvalidation error prevents installation from proceeding\r\n```\r\n```\r\nValidating==========================================================================\r\nReading installation plan file \"kismatic-cluster.yaml\"                          [OK]\r\nValidating installation plan file                                               [ERROR]\r\n- Worker nodes: error SSH into node: node3, dial tcp 192.168.205.120:22: i/o timeout\r\nvalidation error prevents installation from proceeding\r\n```\r\n```\r\nValidating==========================================================================\r\nReading installation plan file \"kismatic-cluster.yaml\"                          [OK]\r\nValidating installation plan file                                               [ERROR]\r\n- Etcd nodes: error SSH into node: node1, ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain\r\n- Master nodes: error SSH into node: node2, ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain\r\n- Worker nodes: error SSH into node: node3, ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain\r\nvalidation error prevents installation from proceeding\r\n```\r\n```\r\nValidating==========================================================================\r\nReading installation plan file \"kismatic-cluster.yaml\"                          [OK]\r\nValidating installation plan file                                               [ERROR]\r\n- Etcd nodes: error parsing SSH key: Encrypted SSH key is not permitted\r\n- Master nodes: error parsing SSH key: Encrypted SSH key is not permitted\r\n- Worker nodes: error parsing SSH key: Encrypted SSH key is not permitted\r\nvalidation error prevents installation from proceeding\r\n```","created_at":"2016-12-02T00:40:47Z","updated_at":"2016-12-06T13:11:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2a701cc36a8b21e61108a70971e1e8a2f1e973a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apprenda/kismatic/pulls/143/commits","review_comments_url":"https://api.github.com/repos/apprenda/kismatic/pulls/143/comments","review_comment_url":"https://api.github.com/repos/apprenda/kismatic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apprenda/kismatic/issues/143/comments","statuses_url":"https://api.github.com/repos/apprenda/kismatic/statuses/7ea98a67bb1bb7f12ff7074f8fc45bef3976b903","head":{"label":"apprenda:validate-ssh","ref":"validate-ssh","sha":"7ea98a67bb1bb7f12ff7074f8fc45bef3976b903","user":{"login":"apprenda","id":6901411,"avatar_url":"https://avatars.githubusercontent.com/u/6901411?v=3","gravatar_id":"","url":"https://api.github.com/users/apprenda","html_url":"https://github.com/apprenda","followers_url":"https://api.github.com/users/apprenda/followers","following_url":"https://api.github.com/users/apprenda/following{/other_user}","gists_url":"https://api.github.com/users/apprenda/gists{/gist_id}","starred_url":"https://api.github.com/users/apprenda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apprenda/subscriptions","organizations_url":"https://api.github.com/users/apprenda/orgs","repos_url":"https://api.github.com/users/apprenda/repos","events_url":"https://api.github.com/users/apprenda/events{/privacy}","received_events_url":"https://api.github.com/users/apprenda/received_events","type":"Organization","site_admin":false},"repo":{"id":64937285,"name":"kismatic","full_name":"apprenda/kismatic","owner":{"login":"apprenda","id":6901411,"avatar_url":"https://avatars.githubusercontent.com/u/6901411?v=3","gravatar_id":"","url":"https://api.github.com/users/apprenda","html_url":"https://github.com/apprenda","followers_url":"https://api.github.com/users/apprenda/followers","following_url":"https://api.github.com/users/apprenda/following{/other_user}","gists_url":"https://api.github.com/users/apprenda/gists{/gist_id}","starred_url":"https://api.github.com/users/apprenda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apprenda/subscriptions","organizations_url":"https://api.github.com/users/apprenda/orgs","repos_url":"https://api.github.com/users/apprenda/repos","events_url":"https://api.github.com/users/apprenda/events{/privacy}","received_events_url":"https://api.github.com/users/apprenda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apprenda/kismatic","description":"Kismatic Enterprise Toolkit: Fully-Automated, Production-Grade Kubernetes Operations","fork":false,"url":"https://api.github.com/repos/apprenda/kismatic","forks_url":"https://api.github.com/repos/apprenda/kismatic/forks","keys_url":"https://api.github.com/repos/apprenda/kismatic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apprenda/kismatic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apprenda/kismatic/teams","hooks_url":"https://api.github.com/repos/apprenda/kismatic/hooks","issue_events_url":"https://api.github.com/repos/apprenda/kismatic/issues/events{/number}","events_url":"https://api.github.com/repos/apprenda/kismatic/events","assignees_url":"https://api.github.com/repos/apprenda/kismatic/assignees{/user}","branches_url":"https://api.github.com/repos/apprenda/kismatic/branches{/branch}","tags_url":"https://api.github.com/repos/apprenda/kismatic/tags","blobs_url":"https://api.github.com/repos/apprenda/kismatic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apprenda/kismatic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apprenda/kismatic/git/refs{/sha}","trees_url":"https://api.github.com/repos/apprenda/kismatic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apprenda/kismatic/statuses/{sha}","languages_url":"https://api.github.com/repos/apprenda/kismatic/languages","stargazers_url":"https://api.github.com/repos/apprenda/kismatic/stargazers","contributors_url":"https://api.github.com/repos/apprenda/kismatic/contributors","subscribers_url":"https://api.github.com/repos/apprenda/kismatic/subscribers","subscription_url":"https://api.github.com/repos/apprenda/kismatic/subscription","commits_url":"https://api.github.com/repos/apprenda/kismatic/commits{/sha}","git_commits_url":"https://api.github.com/repos/apprenda/kismatic/git/commits{/sha}","comments_url":"https://api.github.com/repos/apprenda/kismatic/comments{/number}","issue_comment_url":"https://api.github.com/repos/apprenda/kismatic/issues/comments{/number}","contents_url":"https://api.github.com/repos/apprenda/kismatic/contents/{+path}","compare_url":"https://api.github.com/repos/apprenda/kismatic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apprenda/kismatic/merges","archive_url":"https://api.github.com/repos/apprenda/kismatic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apprenda/kismatic/downloads","issues_url":"https://api.github.com/repos/apprenda/kismatic/issues{/number}","pulls_url":"https://api.github.com/repos/apprenda/kismatic/pulls{/number}","milestones_url":"https://api.github.com/repos/apprenda/kismatic/milestones{/number}","notifications_url":"https://api.github.com/repos/apprenda/kismatic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apprenda/kismatic/labels{/name}","releases_url":"https://api.github.com/repos/apprenda/kismatic/releases{/id}","deployments_url":"https://api.github.com/repos/apprenda/kismatic/deployments","created_at":"2016-08-04T13:33:36Z","updated_at":"2016-12-05T15:02:12Z","pushed_at":"2016-12-06T12:55:03Z","git_url":"git://github.com/apprenda/kismatic.git","ssh_url":"git@github.com:apprenda/kismatic.git","clone_url":"https://github.com/apprenda/kismatic.git","svn_url":"https://github.com/apprenda/kismatic","homepage":"","size":5260,"stargazers_count":202,"watchers_count":202,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":40,"forks":20,"open_issues":40,"watchers":202,"default_branch":"master"}},"base":{"label":"apprenda:master","ref":"master","sha":"e8055aba37cf78ec44d94e3c39ba0011a9d80f15","user":{"login":"apprenda","id":6901411,"avatar_url":"https://avatars.githubusercontent.com/u/6901411?v=3","gravatar_id":"","url":"https://api.github.com/users/apprenda","html_url":"https://github.com/apprenda","followers_url":"https://api.github.com/users/apprenda/followers","following_url":"https://api.github.com/users/apprenda/following{/other_user}","gists_url":"https://api.github.com/users/apprenda/gists{/gist_id}","starred_url":"https://api.github.com/users/apprenda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apprenda/subscriptions","organizations_url":"https://api.github.com/users/apprenda/orgs","repos_url":"https://api.github.com/users/apprenda/repos","events_url":"https://api.github.com/users/apprenda/events{/privacy}","received_events_url":"https://api.github.com/users/apprenda/received_events","type":"Organization","site_admin":false},"repo":{"id":64937285,"name":"kismatic","full_name":"apprenda/kismatic","owner":{"login":"apprenda","id":6901411,"avatar_url":"https://avatars.githubusercontent.com/u/6901411?v=3","gravatar_id":"","url":"https://api.github.com/users/apprenda","html_url":"https://github.com/apprenda","followers_url":"https://api.github.com/users/apprenda/followers","following_url":"https://api.github.com/users/apprenda/following{/other_user}","gists_url":"https://api.github.com/users/apprenda/gists{/gist_id}","starred_url":"https://api.github.com/users/apprenda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apprenda/subscriptions","organizations_url":"https://api.github.com/users/apprenda/orgs","repos_url":"https://api.github.com/users/apprenda/repos","events_url":"https://api.github.com/users/apprenda/events{/privacy}","received_events_url":"https://api.github.com/users/apprenda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apprenda/kismatic","description":"Kismatic Enterprise Toolkit: Fully-Automated, Production-Grade Kubernetes Operations","fork":false,"url":"https://api.github.com/repos/apprenda/kismatic","forks_url":"https://api.github.com/repos/apprenda/kismatic/forks","keys_url":"https://api.github.com/repos/apprenda/kismatic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apprenda/kismatic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apprenda/kismatic/teams","hooks_url":"https://api.github.com/repos/apprenda/kismatic/hooks","issue_events_url":"https://api.github.com/repos/apprenda/kismatic/issues/events{/number}","events_url":"https://api.github.com/repos/apprenda/kismatic/events","assignees_url":"https://api.github.com/repos/apprenda/kismatic/assignees{/user}","branches_url":"https://api.github.com/repos/apprenda/kismatic/branches{/branch}","tags_url":"https://api.github.com/repos/apprenda/kismatic/tags","blobs_url":"https://api.github.com/repos/apprenda/kismatic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apprenda/kismatic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apprenda/kismatic/git/refs{/sha}","trees_url":"https://api.github.com/repos/apprenda/kismatic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apprenda/kismatic/statuses/{sha}","languages_url":"https://api.github.com/repos/apprenda/kismatic/languages","stargazers_url":"https://api.github.com/repos/apprenda/kismatic/stargazers","contributors_url":"https://api.github.com/repos/apprenda/kismatic/contributors","subscribers_url":"https://api.github.com/repos/apprenda/kismatic/subscribers","subscription_url":"https://api.github.com/repos/apprenda/kismatic/subscription","commits_url":"https://api.github.com/repos/apprenda/kismatic/commits{/sha}","git_commits_url":"https://api.github.com/repos/apprenda/kismatic/git/commits{/sha}","comments_url":"https://api.github.com/repos/apprenda/kismatic/comments{/number}","issue_comment_url":"https://api.github.com/repos/apprenda/kismatic/issues/comments{/number}","contents_url":"https://api.github.com/repos/apprenda/kismatic/contents/{+path}","compare_url":"https://api.github.com/repos/apprenda/kismatic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apprenda/kismatic/merges","archive_url":"https://api.github.com/repos/apprenda/kismatic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apprenda/kismatic/downloads","issues_url":"https://api.github.com/repos/apprenda/kismatic/issues{/number}","pulls_url":"https://api.github.com/repos/apprenda/kismatic/pulls{/number}","milestones_url":"https://api.github.com/repos/apprenda/kismatic/milestones{/number}","notifications_url":"https://api.github.com/repos/apprenda/kismatic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apprenda/kismatic/labels{/name}","releases_url":"https://api.github.com/repos/apprenda/kismatic/releases{/id}","deployments_url":"https://api.github.com/repos/apprenda/kismatic/deployments","created_at":"2016-08-04T13:33:36Z","updated_at":"2016-12-05T15:02:12Z","pushed_at":"2016-12-06T12:55:03Z","git_url":"git://github.com/apprenda/kismatic.git","ssh_url":"git@github.com:apprenda/kismatic.git","clone_url":"https://github.com/apprenda/kismatic.git","svn_url":"https://github.com/apprenda/kismatic","homepage":"","size":5260,"stargazers_count":202,"watchers_count":202,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":40,"forks":20,"open_issues":40,"watchers":202,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apprenda/kismatic/pulls/143"},"html":{"href":"https://github.com/apprenda/kismatic/pull/143"},"issue":{"href":"https://api.github.com/repos/apprenda/kismatic/issues/143"},"comments":{"href":"https://api.github.com/repos/apprenda/kismatic/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/apprenda/kismatic/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/apprenda/kismatic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apprenda/kismatic/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/apprenda/kismatic/statuses/7ea98a67bb1bb7f12ff7074f8fc45bef3976b903"}}}}
{"actor":{"display_login":"alexbrand"}}