Skip to content

GRPCWeb and GRPCStat filters for HTTPRoute #6934

Closed

Description

@Extor

Description:
We use HTTPRoute to route requests to our services and have encountered an issue when processing gRPC-Web requests. Currently, gRPCWeb and gRPCStats filters are only added to the Envoy Gateway if a GRPCRoute is created:

However, the GRPCRoute model quite limited. In most cases, it would be more convenient for us to use the HTTPRoute. To enable these filters, we need to create an additional GRPCRoute, which seems like implicit and unnecessary behavior

We suggest adding the ability to enable gRPC filters when using the HttpRoute, for example, through the ClientTrafficPolicy extension:

  • Add a new EnableHTTPRouteGRPC flag (for example)
  • Add filters when the flag is set
if irListener.IsHTTP2 || irListener.enableHTTPRouteGRPC {
    mgr.HttpFilters = append(mgr.HttpFilters, xdsfilters.GRPCWeb)
    // always enable grpc stats filter
    mgr.HttpFilters = append(mgr.HttpFilters, xdsfilters.GRPCStats)
}

Activity

  1. Inode1 commented on Sep 16, 2025

    @Inode1
    Contributor

    @arkodg PTAL

  2. arkodg commented on Sep 16, 2025

    @arkodg
    Contributor

    @Extor can you share what's limiting in the GRPCRoute API thats easier to configure in HTTPRoute ?
    looping in Gateway API folks as well @youngnick @robscott

  3. Inode1 commented on Sep 21, 2025

    @Inode1
    Contributor

    @Extor can you share what's limiting in the GRPCRoute API thats easier to configure in HTTPRoute ? looping in Gateway API folks as well @youngnick @robscott

    For us, we only use HTTPRoute for everything (both gRPC and HTTP). In practice:

    1. Everything GRPCRoute can express, HTTPRoute can as well (What was the reason for separating them?).
    2. HTTPRoute is strictly more powerful: richer matching (headers w/ regex, methods, query params, hostnames, etc.).
    3. GRPCRoute ends up being a subset of HTTPRoute, which forces duplication if a service exposes both HTTP + gRPC.

    From our perspective, it would make sense to always stick with HTTPRoute. Enabling the gRPCWeb / gRPCStats filters by default on HTTPRoute seems reasonable too, since they add essentially zero overhead but give users a consistent experience.

  4. github-actions commented on Oct 22, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had activity in the last 30 days.

  5. github-actions commented on Dec 17, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had activity in the last 30 days.

  6. kahirokunn commented on Dec 18, 2025

    @kahirokunn
    Contributor

    I strongly support this feature request!Many CNCF tools that integrate with Gateway API, such as Knative's Gateway API support and Flagger's Gateway API integration, consistently generate HTTPRoute resources. Having this capability would enable these tools to serve gRPC traffic seamlessly, even when they have constraints that limit them to HTTPRoute generation.If Envoy Gateway could support gRPC filters on HTTPRoute, it would significantly improve interoperability across the CNCF ecosystem and create a more cohesive experience when using these tools together.Thank you for considering this enhancement!

  7. guydc commented on Jan 8, 2026

    @guydc
    Contributor

    +1 to making this configurable, with toggles for both filters

    • EnvoyProxy Telemetry for stats
    • ClientTrafficPolicy for gRCP-web
  8. added
    help wanted
    and removed on Jan 9, 2026
  9. added this to the Backlog milestone on Jan 9, 2026
  10. kkk777-7 commented on Jan 10, 2026

    @kkk777-7
    Member

    I’ll work on this :)
    /assign

  11. removed
    help wanted
    on Jan 10, 2026
  12. github-actions commented on Feb 9, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had activity in the last 30 days.

  13. github-actions commented on Mar 12, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had activity in the last 30 days.

  14. kahirokunn commented on Mar 12, 2026

    @kahirokunn
    Contributor

    This issue is now complete and is scheduled to be available in the next release.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions