Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plugins): grpc-web, grpc-gateway: TE trailers #14042

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gszr
Copy link
Member

@gszr gszr commented Dec 20, 2024

Ensure TE headers is properly sent to gRPC upstream server in request generated from Kong by the grpc-web and grpc-gateway plugins. Previously, the call to kong.service.request.set_headers was not taking effect as the TE headers cannot be set through normal OpenResty APIs; this PR ensures it's set in a similar way as the :authority pseudo-header. This fix ensures our implementation complies with the gRPC spec, which mandates a TE: trailers header in gRPPC over http/2 requests.

@github-actions github-actions bot added core/pdk cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Dec 20, 2024
@gszr gszr force-pushed the fix/grpc-web-and-gateway-trailers branch from 167aba5 to 9400e9d Compare December 20, 2024 17:46
@gszr gszr force-pushed the fix/grpc-web-and-gateway-trailers branch from 9400e9d to 9aece78 Compare December 20, 2024 17:47
@gszr
Copy link
Member Author

gszr commented Dec 20, 2024

Fixes #14043.

@gszr gszr force-pushed the fix/grpc-web-and-gateway-trailers branch 5 times, most recently from 63040b7 to 4cfc45a Compare December 20, 2024 17:57
Ensure `TE` headers is properly sent to gRPC upstream server in request
generated from Kong. Previously, the call to `kong.service.request.set_headers`
was not taking effect as the `TE` headers cannot be set through normal
OpenResty APIs; this PR ensures it's set in a similar way as the
`:authority` pseudo-header.
@gszr gszr force-pushed the fix/grpc-web-and-gateway-trailers branch from 4cfc45a to ee9396b Compare December 23, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/docs core/pdk size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants