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 broken v1alpha gRPC reflection support #1718

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

vroldanbet
Copy link
Contributor

@vroldanbet vroldanbet commented Jan 23, 2024

⚠️ depends on authzed/grpcutil#64
fixes gRPC reflection support for clients like Postman

with the introduction of v1 Reflection, grpcutil was updated in a way that broke v1alpha reflection calls. grpc-go continues to support both versions and the handler for v1alpha was being registered, but the authless wrapper exposed by grpcutil was failing to bypass auth for v1alpha calls because it dropped support for it.

This vendors the changes to grpcutil that introduce back v1alpha support, and also addresses a missing allowlist in the consistency middleware for the v1 version.

bison
bison previously approved these changes Jan 23, 2024
with the introduction of v1 Reflection, `grpcutil`
was updated in a way that broke `v1alpha` reflection
calls. The go-grpc ecosystem continues to support
both versions, and the handler for v1alpha was
being in fact registered, but the authless wrapper
exposed by `grpcutil` was failing to bypass auth
for `v1alpha` calls because it dropped support for
it.

This vendors the changes to `grpcutil` that introduce
back `v1alpha` support, and also addresses a missing
allowlist in the consistency middleware for `v1` version.
@jzelinskie jzelinskie added kind/tech debt Addresses legacy code/decisions area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Jan 24, 2024
@vroldanbet vroldanbet added this pull request to the merge queue Jan 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 24, 2024
@vroldanbet vroldanbet added this pull request to the merge queue Jan 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 24, 2024
@jzelinskie jzelinskie added this pull request to the merge queue Jan 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 24, 2024
@vroldanbet vroldanbet added this pull request to the merge queue Jan 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 25, 2024
@vroldanbet vroldanbet added this pull request to the merge queue Jan 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 25, 2024
@vroldanbet vroldanbet added this pull request to the merge queue Jan 25, 2024
Merged via the queue into main with commit 3edd286 Jan 25, 2024
20 checks passed
@vroldanbet vroldanbet deleted the fix-grpc-reflection branch January 25, 2024 10:29
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/dependencies Affects dependencies area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) kind/tech debt Addresses legacy code/decisions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants