{"action":"closed","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32679","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32679/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32679/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32679/events","html_url":"https://github.com/kubernetes/kubernetes/issues/32679","id":176957195,"number":32679,"title":"kubectl shouldn't fail hard when /version returns 404","user":{"login":"sttts","id":730123,"avatar_url":"https://avatars.githubusercontent.com/u/730123?v=3","gravatar_id":"","url":"https://api.github.com/users/sttts","html_url":"https://github.com/sttts","followers_url":"https://api.github.com/users/sttts/followers","following_url":"https://api.github.com/users/sttts/following{/other_user}","gists_url":"https://api.github.com/users/sttts/gists{/gist_id}","starred_url":"https://api.github.com/users/sttts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sttts/subscriptions","organizations_url":"https://api.github.com/users/sttts/orgs","repos_url":"https://api.github.com/users/sttts/repos","events_url":"https://api.github.com/users/sttts/events{/privacy}","received_events_url":"https://api.github.com/users/sttts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/security","name":"area/security","color":"d4c5f9"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubectl","name":"component/kubectl","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-14T16:35:48Z","updated_at":"2016-09-21T11:59:17Z","closed_at":"2016-09-21T11:59:16Z","body":"kubectl works mostly fine without /version. But a number of commands (apply, create, convert, ....) are wired to this:\r\n\r\nhttps://github.com/kubernetes/kubernetes/blob/519c13745f8c5cc3fa50897575fe7aaca04cfbf1/pkg/kubectl/cmd/util/factory.go#L749-L749\r\n\r\nA 404 on /version let's the kubectl to fail hard.\r\n\r\nFor environments where `/version` might be a security problem (cf. https://github.com/kubernetes/kubernetes/pull/32387#issuecomment-247071249) this is a nogo.\r\n\r\nRelates to minimal apiserver routes: https://github.com/kubernetes/kubernetes/issues/32678"}}
{"actor":{"display_login":"k8s-merge-robot"}}