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

Pass grpc request headers to GrpcInflightMethodLimiter #392

Merged

Conversation

pstibrany
Copy link
Member

What this PR does:

After grpc/grpc-go#6652, we can now pass gRPC request headers to our GrpcInflightMethodLimiter. This allows implementations to perform additional checks before allowing the request in (see #391 for what we have in mind: httpgrpc URL or message size).

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@pstibrany
Copy link
Member Author

pstibrany commented Oct 6, 2023

I will convert this to draft, and merge only after google.golang.org/grpc v1.59.0 is released.

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far LGTM.

@pstibrany pstibrany force-pushed the pass-grpc-request-header-to-grpc-inflight-method-limiter branch from 5edb466 to bf8067d Compare October 23, 2023 09:07
@pstibrany
Copy link
Member Author

I will convert this to draft, and merge only after google.golang.org/grpc v1.59.0 is released.

This version is now available, updating PR and merging it.

@pstibrany pstibrany marked this pull request as ready for review October 23, 2023 09:08
@pstibrany pstibrany merged commit 7982d8c into main Oct 23, 2023
3 checks passed
@pstibrany pstibrany deleted the pass-grpc-request-header-to-grpc-inflight-method-limiter branch October 23, 2023 09:28
ying-jeanne pushed a commit that referenced this pull request Nov 2, 2023
* Pass grpc request header (metadata) to GrpcInflightMethodLimiter.

* Use custom type as context key.

* Update CHANGELOG.md

* Update grpc-go to 1.59.0.
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.

None yet

2 participants