Repository navigation
feat: support HTTP/3 to upstream backends - #10068
Merged
Merged
Conversation
✅ Deploy Preview for cerulean-figolla-1f9435 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #10068 +/- ##
==========================================
+ Coverage 81.64% 81.68% +0.03%
==========================================
Files 266 267 +1
Lines 41730 42048 +318
==========================================
+ Hits 34071 34345 +274
- Misses 7658 7702 +44
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
zhaohuabing
force-pushed
the
upstream-http3
branch
from
September 22, 2026 08:49
9881169 to
76eb95f
Compare
zhaohuabing
force-pushed
the
upstream-http3
branch
3 times, most recently
from
September 22, 2026 10:58
08283cb to
523495d
Compare
|
Super excited for this! Looks like you are even supporting forwardauth via SecurityPolicy. |
zhaohuabing
force-pushed
the
upstream-http3
branch
3 times, most recently
from
September 30, 2026 03:37
e25fcde to
acf866a
Compare
zhaohuabing
force-pushed
the
upstream-http3
branch
7 times, most recently
from
October 9, 2026 06:55
f6966fb to
d8e7dbe
Compare
zhaohuabing
commented
Oct 12, 2026
| @@ -61,6 +61,7 @@ type BackendTrafficPolicy struct { | |||
| // +kubebuilder:validation:XValidation:rule="!has(self.targetRef) || !(self.targetRef.kind in ['Service', 'ServiceImport', 'Backend']) || !has(self.targetRef.sectionName)", message="sectionName is not supported when targeting a backend" | |||
| // +kubebuilder:validation:XValidation:rule="!has(self.targetRefs) || self.targetRefs.all(ref, !(ref.kind in ['Service', 'ServiceImport', 'Backend']) || !has(ref.sectionName))", message="sectionName is not supported when targeting a backend" | |||
| // +kubebuilder:validation:XValidation:rule="!has(self.compression) || !has(self.compressor)", message="either compression or compressor can be set, not both" | |||
| // +kubebuilder:validation:XValidation:rule="!has(self.http3) || !has(self.useClientProtocol) || !self.useClientProtocol", message="useClientProtocol cannot be used together with http3" | |||
Member
Author
There was a problem hiding this comment.
I'm leaving this out for now, since this PR is already quite large. We can support this in a follow-up, tracked in #10250.
zhaohuabing
force-pushed
the
upstream-http3
branch
5 times, most recently
from
October 14, 2026 07:23
321dc5d to
b981f08
Compare
zhaohuabing
force-pushed
the
upstream-http3
branch
from
October 16, 2026 03:51
26ba9e7 to
eabc5ad
Compare
Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
It now sits next to the alternate protocols cache patch, and the downstream alt-svc append in translator.go is back to what main does. The strip runs after the router anyway, so the duplicate route header on an HTTP/3 listener is removed before the client sees it. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
A standalone Envoy with a static config listens for TLS and QUIC on the same port, answers with a direct response, and reports the protocol in the x-protocol header, which the test now checks instead of the body. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
The router adds route-level response headers before the alternate protocols cache filter looks at the response, so on an upstream HTTP/3 route the gateway's own alt-svc was recorded as the backend's. When the advertised port matched the backend port, Auto mode then tried QUIC against a backend that never offered it. Those routes now get the header from the header mutation filter only, which runs after the cache filter. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
It is the listener port's client-facing HTTP/3 setting, so the name now says which side it refers to next to the upstream HTTP/3 helpers. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
The page grew a long backend section appended after the client walkthrough. Group the existing steps under "HTTP/3 to Clients" and break the backend text into prerequisites, the two modes and limitations under "HTTP/3 to Backends". Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Fold the duplicate-parentrefs case into the base fixture and the plain mergeBackends case into the mixed one, since each only added one route to a copy of the other. Drop the fqdn and no-sni routes from the xds fixture: they covered an SNI workaround that is gone, and nothing in the HTTP/3 path depends on the address type or SNI. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
It sits next to backendtrafficpolicy-with-http3-gateway, and the Service-targeted case already lives in the mergebackends-btp-backend-target family. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
The Service-targeted mergeBackends case now sits next to the gateway-targeted one as backendtrafficpolicy-with-http3-<target>-mergebackends. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
A CEL rule on BackendCluster now turns away http3 for every policy and EnvoyProxy sink that embeds it, so the translator no longer needs its own check or the golden that pinned it. One CEL test case covers the rule. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Keep the modes and the TLS requirement, drop the walkthrough of each warning. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
zhaohuabing
force-pushed
the
upstream-http3
branch
from
October 18, 2026 02:11
21250fb to
2cf6665
Compare
Member
|
/retest |
zirain
previously approved these changes
Oct 19, 2026
The IPv6 e2e cell gives the backend pod no IPv4 address, so the 0.0.0.0 listeners never got a connection and the gateway returned 503. Binding :: with ipv4_compat covers both families. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
zirain
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10053
Adds
http3toBackendTrafficPolicy, enabling HTTP/3 to the backend. It applies to route backends only; setting it under a SecurityPolicy or EnvoyExtensionPolicy backend settings is an error, since those clusters are driven by Envoy's async client, which never records alt-svc. Two modes:Auto, the default. Envoy uses HTTP/3 only once a backend has advertised it through analt-svcheader, and races a QUIC connection against a TCP one so it falls back to HTTP/1.1 or HTTP/2 when QUIC fails.Alwayssends every request over QUIC and never falls back.Two combinations are rejected at admission by CEL rules, because they contradict HTTP/3 outright:
useClientProtocol, plan to implement it in a follow-up PRproxyProtocol, a TCP preamble with no QUIC equivalentThe rest depend on the backend rather than the policy, so the policy stays Accepted, HTTP/3 is left off for the affected route, and the policy reports a
Warningcondition naming the route and the reason:spec.tls.appProtocolThe backend's own
alt-svcheader is stripped from the response after Envoy has recorded it. It names a port on the backend, which a browser would read as a port on the Gateway, and it would otherwise sit next to the Gateway's ownalt-svcon listeners with downstream HTTP/3. The strip is done with the header mutation filter because a route-level removal runs before the alternate protocols cache filter sees the header; envoyproxy/envoy#48169 asks for a native option so this can be simplified later.