Skip to content

Commit

Permalink
Merge pull request #1044 from abhinavdahiya/bump_bootstrap_kubeconfig
Browse files Browse the repository at this point in the history
tls: increase validity of client cert used for boostrapping masters to 1 day
  • Loading branch information
openshift-merge-robot committed Jan 12, 2019
2 parents 7880721 + d6b850c commit 761e172
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/asset/tls/kubeletcertkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (a *KubeletCertKey) Generate(dependencies asset.Parents) error {
Subject: pkix.Name{CommonName: "system:serviceaccount:openshift-machine-config-operator:node-bootstrapper", Organization: []string{"system:serviceaccounts:openshift-machine-config-operator"}},
KeyUsages: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
ExtKeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
Validity: ValidityThirtyMinutes,
Validity: ValidityOneDay,
}

return a.CertKey.Generate(cfg, kubeCA, "kubelet", DoNotAppendParent)
Expand Down
4 changes: 2 additions & 2 deletions pkg/asset/tls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const (
// ValidityTenYears sets the validity of a cert to 10 years.
ValidityTenYears = time.Hour * 24 * 365 * 10

// ValidityThirtyMinutes sets the validity of a cert to 30 minutes.
// ValidityOneDay sets the validity of a cert to 24 hours.
// This is for the kubelet bootstrap.
ValidityThirtyMinutes = time.Minute * 30
ValidityOneDay = time.Hour * 24
)

// CertCfg contains all needed fields to configure a new certificate
Expand Down

0 comments on commit 761e172

Please sign in to comment.