-
Notifications
You must be signed in to change notification settings - Fork 709
Closed
Description
Description:
- This issue is not a duplicate of Bug in logic detecting overlapping cert SANs #6321.
- The cause of this issue is mistakenly treating all absolute domain names as wildcard domain names for comparison.
- Use 'strings.HasSuffix' for comparison is reckless, because the wildcard applies only to one level of the domain name.
Repro steps:
- Add a listener for
foo.example.comandpdf.foo.example.com.
※ Use*.example.comandpdf.foo.example.comshould also trigger the issue. - Use cert-manager to issue certs for them (note that a wildcard certificate should not be used)
- Look in the logs to see a warning about overlapping SANs
Sample Gateway Listeners
listeners:
- name: foo
hostname: foo.example.com
protocol: HTTPS
port: 443
tls:
mode: Terminate
certificateRefs:
- name: foo-tls
- name: foo-pdf
hostname: pdf.foo.example.com
protocol: HTTPS
port: 443
tls:
mode: Terminate
certificateRefs:
- name: foo-pdf-tlsEnvironment:
Envoy Gateway v1.5.3
Logs:
Message: The certificate SAN pdf.foo.example.com overlaps with the certificate SAN foo.example.com in listener foo. ALPN will default to HTTP/1.1 to prevent HTTP/2 connection coalescing, unless explicitly configured via ClientTrafficPolicy
Reason: OverlappingCertificates
Type: OverlappingTLSConfig
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working