• Kubernetes Submit Queue's avatar
    Merge pull request #49899 from ericchiang/kubelet-close-conns-on-rotate · 07ddb394
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 49237, 49656, 49980, 49841, 49899)
    
    certificate manager: close existing client conns once cert rotates
    
    After the kubelet rotates its client cert, it will keep connections to the API server open indefinitely, causing it to use its old credentials instead of the new certs. Because the API server authenticates client certs at the time of the request, and not the handshake, this could cause the kubelet to start hitting auth failures even if it rotated its certificate to a new, valid one.
        
    When the kubelet rotates its cert, close down existing connections to force a new TLS handshake.
    
    Ref https://github.com/kubernetes/features/issues/266
    Updates https://github.com/kubernetes-incubator/bootkube/pull/663
    
    ```release-note
    After a kubelet rotates its client cert, it now closes its connections to the API server to force a handshake using the new cert. Previously, the kubelet could keep its existing connection open, even if the cert used for that connection was expired and rejected by the API server.
    ```
    
    /cc @kubernetes/sig-auth-bugs 
    /assign @jcbsmpsn @mikedanese
    07ddb394
Name
Last commit
Last update
..
clicheck Loading commit data...
cloud-controller-manager Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genslateyaml Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
gke-certificates-controller Loading commit data...
hyperkube Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-proxy Loading commit data...
kubeadm Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
linkcheck Loading commit data...
mungedocs Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...