You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within the cert-manager documentation the certificate spec states that the duration field is optional. When I was testing the pca issuer I noticed the controller crashed when I didn't specify a duration.
sample manifest to cause the crash
apiVersion: cert-manager.io/v1alpha2kind: Certificatemetadata:
name: bug-testnamespace: awspca-issuer-systemspec:
issuerRef:
group: certmanager.awspcakind: AWSPCAIssuername: awspca-issuersecretName: bug-testcommonName: foo.com# DNS SANdnsNames:
- localhost
- foo.com# IP Address SANipAddresses:
- "127.0.0.1"# Duration of the certificate# Renew 1 hour before the certificate expiration# renewBefore: 1hisCA: false
I think this line is the cause of the crash. Would it be possible to slip in a default duration of 24 hours to prevent crashes for future users?
Within the cert-manager documentation the certificate spec states that the duration field is optional. When I was testing the pca issuer I noticed the controller crashed when I didn't specify a duration.
sample manifest to cause the crash
I think this line is the cause of the crash. Would it be possible to slip in a default duration of 24 hours to prevent crashes for future users?
awspca-issuer/provisioners/awspca.go
Lines 101 to 110 in b5adadf
edited to add:
I left out the stack trace so I added it. I apologize for the log being partially cut off.
The text was updated successfully, but these errors were encountered: