Skip to content

match sni using single dns label#1436

Merged
jcmoraisjr merged 1 commit intomasterfrom
jm-tls-wildcard
Mar 23, 2026
Merged

match sni using single dns label#1436
jcmoraisjr merged 1 commit intomasterfrom
jm-tls-wildcard

Conversation

@jcmoraisjr
Copy link
Copy Markdown
Owner

Gateway API uses distinct wildcard hostname match on HTTP and TLS:

  • Host header and HTTPRoute hostnames matching understand a wildcard as one or more DNS labels, so the wildcard hostname is used as a suffix;
  • TLS SNI extension and TLSRoute hostnames matching understand a wildcard as a single DNS label, following RFC-2818.

Context:

https://github.com/kubernetes-sigs/gateway-api/blob/8f9b904306371cbfed9f9d542e9af667de804286/site-src/concepts/hostnames.md?plain=1#L142-L145

kubernetes-sigs/gateway-api#4437 (comment)

TLSRoute was not following this configuration, but instead the suffix approach of the HTTPRoute, making one of the conformance tests to fail. This update configures ExtendedWildcard to false, so HAProxy configures the TLS/SNI match using single DNS label instead.

Gateway API uses distinct wildcard hostname match on HTTP and TLS:

* Host header and HTTPRoute hostnames matching understand a wildcard as
  one or more DNS labels, so the wildcard hostname is used as a suffix;
* TLS SNI extension and TLSRoute hostnames matching understand a
  wildcard as a single DNS label, following RFC-2818.

Context:

https://github.com/kubernetes-sigs/gateway-api/blob/8f9b904306371cbfed9f9d542e9af667de804286/site-src/concepts/hostnames.md?plain=1#L142-L145

kubernetes-sigs/gateway-api#4437 (comment)

TLSRoute was not following this configuration, but instead the suffix
approach of the HTTPRoute, making one of the conformance tests to fail.
This update configures ExtendedWildcard to false, so HAProxy configures
the TLS/SNI match using single DNS label instead.
@jcmoraisjr jcmoraisjr merged commit d7e0450 into master Mar 23, 2026
10 checks passed
@jcmoraisjr jcmoraisjr deleted the jm-tls-wildcard branch March 23, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant