don't check OtherNames when fuzzy matching

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Tim Ramlot 2024-01-09 16:41:13 +01:00
parent 736896d264
commit 3dad3f320b
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D

View File

@ -312,16 +312,6 @@ func SecretDataAltNamesMatchSpec(secret *corev1.Secret, spec cmapi.CertificateSp
violations = append(violations, "spec.emailAddresses") violations = append(violations, "spec.emailAddresses")
} }
if spec.OtherNames != nil {
matched, err := matchOtherNames(x509cert.Extensions, spec.OtherNames)
if err != nil {
return nil, err
}
if !matched {
violations = append(violations, "spec.otherNames")
}
}
return violations, nil return violations, nil
} }