Skip to content

Commit

Permalink
bootkube(INSECURE): add system:masters to kubelet client cert
Browse files Browse the repository at this point in the history
  • Loading branch information
sttts authored and mfojtik committed Oct 10, 2018
1 parent 24fe196 commit c43391c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/asset/tls/kubeletcertkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ func (a *KubeletCertKey) Generate(dependencies asset.Parents) error {
dependencies.Get(kubeCA)

cfg := &CertCfg{
Subject: pkix.Name{CommonName: "system:serviceaccount:kube-system:default", Organization: []string{"system:serviceaccounts:kube-system"}},
// system:masters is a hack to get the kubelet up without kube-core
// TODO(node): make kubelet bootstrapping secure with minimal permissions eventually switching to system:node:* CommonName
Subject: pkix.Name{CommonName: "system:serviceaccount:kube-system:default", Organization: []string{"system:serviceaccounts:kube-system", "system:masters"}},
KeyUsages: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
ExtKeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
Validity: ValidityThirtyMinutes,
Expand Down

0 comments on commit c43391c

Please sign in to comment.