You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
alternate_protocols_cache: option to strip the upstream alt-svc header after recording it #48169
Title: alternate_protocols_cache: option to strip the upstream alt-svc header after recording it
Description:
Feature request for the envoy.filters.http.alternate_protocols_cache HTTP filter: an opt-in setting that removes the alt-svc response header once the filter has recorded it into the cluster's alternate protocols cache.
The filter currently reads alt-svc in encodeHeaders, stores the parsed entries, and returns Continue with the header untouched. That's right for a forward proxy, where the header is relative to the origin the client asked for. For a reverse proxy it leaks the backend's advertisement to the client. alt-svc: h3=":8443" from the backend is interpreted by a browser as relative to the host it connected to, so the browser starts probing UDP on port 8443 of the proxy. If the proxy also serves HTTP/3 downstream and appends its own alt-svc through response_headers_to_add, the client sees two conflicting entries on one response.
Proposal: add a boolean to FilterConfig, something like strip_alt_svc (default false), that removes the header after it has been parsed and stored. With the field set the filter would still populate the cache exactly as today, and the response would leave the filter without alt-svc, so the proxy's own downstream advertisement added by the route is the only one the client sees.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
Activity
github-actions commentedon Nov 8, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
github-actions commentedon Nov 15, 2026
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.