Skip to content

alternate_protocols_cache: option to strip the upstream alt-svc header after recording it #48169

Closed as not planned

Description

@zhaohuabing

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.

Activity

  1. github-actions commented on Nov 8, 2026

    @github-actions

    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.

  2. added
    stale
    on Nov 8, 2026
  3. github-actions commented on Nov 15, 2026

    @github-actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions