Skip to content

Commit

Permalink
kubeadm: change SystemPrivilegedGroup in apiserve-kubelet-client.crt
Browse files Browse the repository at this point in the history
The component connection between kube-apiserver and kubelet does not
require the "O" field on the Subject to be set to the
"system:masters" privileged group. It can be a less
privileged group like "kubeadm:cluster-admins".

Change the group in the apiserve-kubelet-client
certificate specification. This cert is passed to
--kubelet-client-certificate.
  • Loading branch information
neolit123 committed Nov 10, 2023
1 parent 5ce0bd9 commit 2780060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubeadm/app/phases/certs/certlist.go
Expand Up @@ -291,7 +291,7 @@ func KubeadmCertKubeletClient() *KubeadmCert {
config: pkiutil.CertConfig{
Config: certutil.Config{
CommonName: kubeadmconstants.APIServerKubeletClientCertCommonName,
Organization: []string{kubeadmconstants.SystemPrivilegedGroup},
Organization: []string{kubeadmconstants.ClusterAdminsGroupAndClusterRoleBinding},
Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
},
},
Expand Down

0 comments on commit 2780060

Please sign in to comment.