Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

secure communciation from kubernetes API to kubelet API endpoint #1978

Merged
merged 2 commits into from
Jan 2, 2018
Merged

secure communciation from kubernetes API to kubelet API endpoint #1978

merged 2 commits into from
Jan 2, 2018

Conversation

pidah
Copy link
Contributor

@pidah pidah commented Jan 2, 2018

What this PR does / why we need it:
Communication from kubelet -> API server is currently secure, but not API server -> kubelet. The kubelet exposes an unauthenticated endpoint on port 10250 which can be exploited from any other node on the cluster.

This PR adds:

  • client cert authentication for the kubernetes API against the kubelet API
  • Disables anonymous access to the kubelet API
  • Restricts access to the kubelet API to only the kubernetes API

More info is available here:

https://kubernetes.io/docs/admin/kubelet-authentication-authorization/
https://kubernetes.io/docs/tasks/administer-cluster/securing-a-cluster/
kubernetes/kubernetes#52184

@jackfrancis
Copy link
Member

jackfrancis commented Jan 2, 2018

@pidah Thanks!

gofmt -w pkg/acsengine/defaults-kubelet.go to fix unit test lint failure, btw.

@ghost ghost assigned jackfrancis Jan 2, 2018
@ghost ghost added the in progress label Jan 2, 2018
@jackfrancis
Copy link
Member

@pidah nevermind I gofmt'd myself, gonna run E2E now

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jackfrancis jackfrancis merged commit 1ab1e49 into Azure:master Jan 2, 2018
@ghost ghost removed the in progress label Jan 2, 2018
@amit-kumar-4 amit-kumar-4 deleted the secureKubeletApiEndpoint branch April 13, 2018 09:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants