Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 328a41c

Browse files
authored
Extend pod webhook self-signed certs expiration date to 99 years in the future (#535)
Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
1 parent 3c3ec33 commit 328a41c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/webhook/init_cert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func createCerts(serviceName string, serviceNamespace string) (certs webhookCert
162162
Organization: []string{"flyte.org"},
163163
},
164164
NotBefore: time.Now(),
165-
NotAfter: time.Now().AddDate(1, 0, 0),
165+
NotAfter: time.Now().AddDate(99, 0, 0),
166166
IsCA: true,
167167
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},
168168
KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
@@ -204,7 +204,7 @@ func createCerts(serviceName string, serviceNamespace string) (certs webhookCert
204204
Organization: []string{"flyte.org"},
205205
},
206206
NotBefore: time.Now(),
207-
NotAfter: time.Now().AddDate(1, 0, 0),
207+
NotAfter: time.Now().AddDate(99, 0, 0),
208208
SubjectKeyId: []byte{1, 2, 3, 4, 6},
209209
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},
210210
KeyUsage: x509.KeyUsageDigitalSignature,

0 commit comments

Comments
 (0)