{"action":"created","comment":{"url":"https://api.github.com/repos/kontena/kontena/pulls/comments/83376876","pull_request_review_id":4225162,"id":83376876,"diff_hunk":"@@ -4,7 +4,11 @@ class AuthApi < Roda\n \n     route do |r|\n       r.post do\n-        halt_request(403, 'This version of Kontena Master does not support user credential authentication.')\n+        if r.user_agent.to_s.start_with?('kontena-cli')\n+          halt_request(403, 'This version of Kontena Master does not support user credential authentication. You need to upgrade your Kontena CLI, use: gem install kontena-cli')","path":"server/app/routes/v1/auth_api.rb","position":6,"original_position":6,"commit_id":"3e3d1702b41bcfd3da7cf4cc11ff80bf40ea1d4c","original_commit_id":"3e3d1702b41bcfd3da7cf4cc11ff80bf40ea1d4c","user":{"login":"jakolehm","id":1446224,"avatar_url":"https://avatars.githubusercontent.com/u/1446224?v=3","gravatar_id":"","url":"https://api.github.com/users/jakolehm","html_url":"https://github.com/jakolehm","followers_url":"https://api.github.com/users/jakolehm/followers","following_url":"https://api.github.com/users/jakolehm/following{/other_user}","gists_url":"https://api.github.com/users/jakolehm/gists{/gist_id}","starred_url":"https://api.github.com/users/jakolehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakolehm/subscriptions","organizations_url":"https://api.github.com/users/jakolehm/orgs","repos_url":"https://api.github.com/users/jakolehm/repos","events_url":"https://api.github.com/users/jakolehm/events{/privacy}","received_events_url":"https://api.github.com/users/jakolehm/received_events","type":"User","site_admin":false},"body":"Could we remove the method for upgrading the cli? There are too many ways to upgrade the cli ... might confuse? /cc @jnummelin @nevalla ","created_at":"2016-10-14T08:22:00Z","updated_at":"2016-10-14T08:22:00Z","html_url":"https://github.com/kontena/kontena/pull/1138#discussion_r83376876","pull_request_url":"https://api.github.com/repos/kontena/kontena/pulls/1138","_links":{"self":{"href":"https://api.github.com/repos/kontena/kontena/pulls/comments/83376876"},"html":{"href":"https://github.com/kontena/kontena/pull/1138#discussion_r83376876"},"pull_request":{"href":"https://api.github.com/repos/kontena/kontena/pulls/1138"}}},"pull_request":{"url":"https://api.github.com/repos/kontena/kontena/pulls/1138","id":89337551,"html_url":"https://github.com/kontena/kontena/pull/1138","diff_url":"https://github.com/kontena/kontena/pull/1138.diff","patch_url":"https://github.com/kontena/kontena/pull/1138.patch","issue_url":"https://api.github.com/repos/kontena/kontena/issues/1138","number":1138,"state":"open","locked":false,"title":"Upgrade CLI hint when doing legacy login from cli","user":{"login":"kke","id":224971,"avatar_url":"https://avatars.githubusercontent.com/u/224971?v=3","gravatar_id":"","url":"https://api.github.com/users/kke","html_url":"https://github.com/kke","followers_url":"https://api.github.com/users/kke/followers","following_url":"https://api.github.com/users/kke/following{/other_user}","gists_url":"https://api.github.com/users/kke/gists{/gist_id}","starred_url":"https://api.github.com/users/kke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kke/subscriptions","organizations_url":"https://api.github.com/users/kke/orgs","repos_url":"https://api.github.com/users/kke/repos","events_url":"https://api.github.com/users/kke/events{/privacy}","received_events_url":"https://api.github.com/users/kke/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-14T07:39:18Z","updated_at":"2016-10-14T08:22:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6451ca3ca32a8b6368f35d424feaab97708a7055","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kontena/kontena/pulls/1138/commits","review_comments_url":"https://api.github.com/repos/kontena/kontena/pulls/1138/comments","review_comment_url":"https://api.github.com/repos/kontena/kontena/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kontena/kontena/issues/1138/comments","statuses_url":"https://api.github.com/repos/kontena/kontena/statuses/3e3d1702b41bcfd3da7cf4cc11ff80bf40ea1d4c","head":{"label":"kontena:feature/upgrade_hint_in_legacy_auth_response","ref":"feature/upgrade_hint_in_legacy_auth_response","sha":"3e3d1702b41bcfd3da7cf4cc11ff80bf40ea1d4c","user":{"login":"kontena","id":10419574,"avatar_url":"https://avatars.githubusercontent.com/u/10419574?v=3","gravatar_id":"","url":"https://api.github.com/users/kontena","html_url":"https://github.com/kontena","followers_url":"https://api.github.com/users/kontena/followers","following_url":"https://api.github.com/users/kontena/following{/other_user}","gists_url":"https://api.github.com/users/kontena/gists{/gist_id}","starred_url":"https://api.github.com/users/kontena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kontena/subscriptions","organizations_url":"https://api.github.com/users/kontena/orgs","repos_url":"https://api.github.com/users/kontena/repos","events_url":"https://api.github.com/users/kontena/events{/privacy}","received_events_url":"https://api.github.com/users/kontena/received_events","type":"Organization","site_admin":false},"repo":{"id":32689932,"name":"kontena","full_name":"kontena/kontena","owner":{"login":"kontena","id":10419574,"avatar_url":"https://avatars.githubusercontent.com/u/10419574?v=3","gravatar_id":"","url":"https://api.github.com/users/kontena","html_url":"https://github.com/kontena","followers_url":"https://api.github.com/users/kontena/followers","following_url":"https://api.github.com/users/kontena/following{/other_user}","gists_url":"https://api.github.com/users/kontena/gists{/gist_id}","starred_url":"https://api.github.com/users/kontena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kontena/subscriptions","organizations_url":"https://api.github.com/users/kontena/orgs","repos_url":"https://api.github.com/users/kontena/repos","events_url":"https://api.github.com/users/kontena/events{/privacy}","received_events_url":"https://api.github.com/users/kontena/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kontena/kontena","description":"The developer friendly container and micro services platform. Works on any cloud, easy to setup, simple to use.","fork":false,"url":"https://api.github.com/repos/kontena/kontena","forks_url":"https://api.github.com/repos/kontena/kontena/forks","keys_url":"https://api.github.com/repos/kontena/kontena/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kontena/kontena/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kontena/kontena/teams","hooks_url":"https://api.github.com/repos/kontena/kontena/hooks","issue_events_url":"https://api.github.com/repos/kontena/kontena/issues/events{/number}","events_url":"https://api.github.com/repos/kontena/kontena/events","assignees_url":"https://api.github.com/repos/kontena/kontena/assignees{/user}","branches_url":"https://api.github.com/repos/kontena/kontena/branches{/branch}","tags_url":"https://api.github.com/repos/kontena/kontena/tags","blobs_url":"https://api.github.com/repos/kontena/kontena/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kontena/kontena/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kontena/kontena/git/refs{/sha}","trees_url":"https://api.github.com/repos/kontena/kontena/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kontena/kontena/statuses/{sha}","languages_url":"https://api.github.com/repos/kontena/kontena/languages","stargazers_url":"https://api.github.com/repos/kontena/kontena/stargazers","contributors_url":"https://api.github.com/repos/kontena/kontena/contributors","subscribers_url":"https://api.github.com/repos/kontena/kontena/subscribers","subscription_url":"https://api.github.com/repos/kontena/kontena/subscription","commits_url":"https://api.github.com/repos/kontena/kontena/commits{/sha}","git_commits_url":"https://api.github.com/repos/kontena/kontena/git/commits{/sha}","comments_url":"https://api.github.com/repos/kontena/kontena/comments{/number}","issue_comment_url":"https://api.github.com/repos/kontena/kontena/issues/comments{/number}","contents_url":"https://api.github.com/repos/kontena/kontena/contents/{+path}","compare_url":"https://api.github.com/repos/kontena/kontena/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kontena/kontena/merges","archive_url":"https://api.github.com/repos/kontena/kontena/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kontena/kontena/downloads","issues_url":"https://api.github.com/repos/kontena/kontena/issues{/number}","pulls_url":"https://api.github.com/repos/kontena/kontena/pulls{/number}","milestones_url":"https://api.github.com/repos/kontena/kontena/milestones{/number}","notifications_url":"https://api.github.com/repos/kontena/kontena/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kontena/kontena/labels{/name}","releases_url":"https://api.github.com/repos/kontena/kontena/releases{/id}","deployments_url":"https://api.github.com/repos/kontena/kontena/deployments","created_at":"2015-03-22T18:52:32Z","updated_at":"2016-10-14T06:10:58Z","pushed_at":"2016-10-14T08:05:11Z","git_url":"git://github.com/kontena/kontena.git","ssh_url":"git@github.com:kontena/kontena.git","clone_url":"https://github.com/kontena/kontena.git","svn_url":"https://github.com/kontena/kontena","homepage":"http://www.kontena.io","size":4368,"stargazers_count":813,"watchers_count":813,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":131,"forks":68,"open_issues":131,"watchers":813,"default_branch":"master"}},"base":{"label":"kontena:master","ref":"master","sha":"ce1d37db8b9fca069357292728d5f0cd797be438","user":{"login":"kontena","id":10419574,"avatar_url":"https://avatars.githubusercontent.com/u/10419574?v=3","gravatar_id":"","url":"https://api.github.com/users/kontena","html_url":"https://github.com/kontena","followers_url":"https://api.github.com/users/kontena/followers","following_url":"https://api.github.com/users/kontena/following{/other_user}","gists_url":"https://api.github.com/users/kontena/gists{/gist_id}","starred_url":"https://api.github.com/users/kontena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kontena/subscriptions","organizations_url":"https://api.github.com/users/kontena/orgs","repos_url":"https://api.github.com/users/kontena/repos","events_url":"https://api.github.com/users/kontena/events{/privacy}","received_events_url":"https://api.github.com/users/kontena/received_events","type":"Organization","site_admin":false},"repo":{"id":32689932,"name":"kontena","full_name":"kontena/kontena","owner":{"login":"kontena","id":10419574,"avatar_url":"https://avatars.githubusercontent.com/u/10419574?v=3","gravatar_id":"","url":"https://api.github.com/users/kontena","html_url":"https://github.com/kontena","followers_url":"https://api.github.com/users/kontena/followers","following_url":"https://api.github.com/users/kontena/following{/other_user}","gists_url":"https://api.github.com/users/kontena/gists{/gist_id}","starred_url":"https://api.github.com/users/kontena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kontena/subscriptions","organizations_url":"https://api.github.com/users/kontena/orgs","repos_url":"https://api.github.com/users/kontena/repos","events_url":"https://api.github.com/users/kontena/events{/privacy}","received_events_url":"https://api.github.com/users/kontena/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kontena/kontena","description":"The developer friendly container and micro services platform. Works on any cloud, easy to setup, simple to use.","fork":false,"url":"https://api.github.com/repos/kontena/kontena","forks_url":"https://api.github.com/repos/kontena/kontena/forks","keys_url":"https://api.github.com/repos/kontena/kontena/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kontena/kontena/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kontena/kontena/teams","hooks_url":"https://api.github.com/repos/kontena/kontena/hooks","issue_events_url":"https://api.github.com/repos/kontena/kontena/issues/events{/number}","events_url":"https://api.github.com/repos/kontena/kontena/events","assignees_url":"https://api.github.com/repos/kontena/kontena/assignees{/user}","branches_url":"https://api.github.com/repos/kontena/kontena/branches{/branch}","tags_url":"https://api.github.com/repos/kontena/kontena/tags","blobs_url":"https://api.github.com/repos/kontena/kontena/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kontena/kontena/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kontena/kontena/git/refs{/sha}","trees_url":"https://api.github.com/repos/kontena/kontena/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kontena/kontena/statuses/{sha}","languages_url":"https://api.github.com/repos/kontena/kontena/languages","stargazers_url":"https://api.github.com/repos/kontena/kontena/stargazers","contributors_url":"https://api.github.com/repos/kontena/kontena/contributors","subscribers_url":"https://api.github.com/repos/kontena/kontena/subscribers","subscription_url":"https://api.github.com/repos/kontena/kontena/subscription","commits_url":"https://api.github.com/repos/kontena/kontena/commits{/sha}","git_commits_url":"https://api.github.com/repos/kontena/kontena/git/commits{/sha}","comments_url":"https://api.github.com/repos/kontena/kontena/comments{/number}","issue_comment_url":"https://api.github.com/repos/kontena/kontena/issues/comments{/number}","contents_url":"https://api.github.com/repos/kontena/kontena/contents/{+path}","compare_url":"https://api.github.com/repos/kontena/kontena/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kontena/kontena/merges","archive_url":"https://api.github.com/repos/kontena/kontena/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kontena/kontena/downloads","issues_url":"https://api.github.com/repos/kontena/kontena/issues{/number}","pulls_url":"https://api.github.com/repos/kontena/kontena/pulls{/number}","milestones_url":"https://api.github.com/repos/kontena/kontena/milestones{/number}","notifications_url":"https://api.github.com/repos/kontena/kontena/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kontena/kontena/labels{/name}","releases_url":"https://api.github.com/repos/kontena/kontena/releases{/id}","deployments_url":"https://api.github.com/repos/kontena/kontena/deployments","created_at":"2015-03-22T18:52:32Z","updated_at":"2016-10-14T06:10:58Z","pushed_at":"2016-10-14T08:05:11Z","git_url":"git://github.com/kontena/kontena.git","ssh_url":"git@github.com:kontena/kontena.git","clone_url":"https://github.com/kontena/kontena.git","svn_url":"https://github.com/kontena/kontena","homepage":"http://www.kontena.io","size":4368,"stargazers_count":813,"watchers_count":813,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":131,"forks":68,"open_issues":131,"watchers":813,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kontena/kontena/pulls/1138"},"html":{"href":"https://github.com/kontena/kontena/pull/1138"},"issue":{"href":"https://api.github.com/repos/kontena/kontena/issues/1138"},"comments":{"href":"https://api.github.com/repos/kontena/kontena/issues/1138/comments"},"review_comments":{"href":"https://api.github.com/repos/kontena/kontena/pulls/1138/comments"},"review_comment":{"href":"https://api.github.com/repos/kontena/kontena/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kontena/kontena/pulls/1138/commits"},"statuses":{"href":"https://api.github.com/repos/kontena/kontena/statuses/3e3d1702b41bcfd3da7cf4cc11ff80bf40ea1d4c"}}}}
{"actor":{"display_login":"jakolehm"}}