Skip to content

Commit 985100c

Browse files
committed
feat: changing condition of ecdsa maximum support from p-256 to p-521
1 parent fb566e5 commit 985100c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/envoy/ingress_translator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ func validateTlsSecret(secret *v1.Secret) (bool, error) {
353353
if !ok {
354354
return false, fmt.Errorf("error in *ecdsa.PublicKey type assertion")
355355
}
356-
if ecdsaPub.Curve.Params().BitSize > 256 {
357-
logrus.Infof("skipping ECDSA %s certificate %s/%s: only P-256 certificates are supported", ecdsaPub.Curve.Params().Name, secret.Namespace, secret.Name)
356+
if ecdsaPub.Curve.Params().BitSize > 521 {
357+
logrus.Infof("skipping ECDSA %s certificate %s/%s: only P-256, P-384 and P-521 certificates are supported", ecdsaPub.Curve.Params().Name, secret.Namespace, secret.Name)
358358
return false, nil
359359
}
360360
}

0 commit comments

Comments
 (0)