Skip to content

Add gRPC-Web conversion guide - #1192

Open
kristin-kronstain-brown wants to merge 1 commit into
mainfrom
kkb-triage-5452-grpc-web
Open

kristin-kronstain-brown wants to merge 1 commit into
mainfrom
kkb-triage-5452-grpc-web

Conversation

@kristin-kronstain-brown

Copy link
Copy Markdown
Contributor

Description

Add a guide for the new grpcWeb field on TrafficPolicy. The field converts gRPC-Web requests from browser clients to gRPC for backends that speak only gRPC. Set grpcWeb: {disable: {}} to turn off conversion for routes that inherit the setting from a broader policy.

Changes

  • New guide assets/kgw-docs/pages/traffic-management/grpc-web.md with a stub at content/docs/envoy/main/traffic-management/grpc-web.md. The guide covers enabling conversion on a route, turning off conversion for one route under a Gateway-level policy, and the CORS headers that browser clients need.
  • assets/kgw-docs/pages/traffic-management/grpc.md gets one sentence that links to the new guide. A version gate hides the sentence in the 2.1.x to 2.5.x trees.

The guide is in the main tree only. The feature is not in a release yet.

Testing

I did not run the guide end to end on a cluster. The steps follow the e2e suite in the code PR (test/e2e/features/grpcweb). The example outputs show only the values that the e2e suite checks:

  • A converted request returns 200 with a content-type that starts with application/grpc-web. The body contains pong and grpc-status:0.
  • A request that is not converted returns 502 with reset reason: protocol error.

The ... lines stand in for headers that the e2e suite does not check. The +proto suffix on the example content-type is my best guess from the request content type.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Kristin Brown <kristin.brown@solo.io>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Deploying kgateway-io with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4d4bc63
Status: ✅  Deploy successful!
Preview URL: https://2724b542.kgateway-io.pages.dev
Branch Preview URL: https://kkb-triage-5452-grpc-web.kgateway-io.pages.dev

View logs

@kristin-kronstain-brown
kristin-kronstain-brown marked this pull request as ready for review December 2, 2026 14:44
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