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

basic auth and server reflection broken with io.grpc >= 1.66.0 #1136

Open
profhenry opened this issue Aug 27, 2024 · 0 comments
Open

basic auth and server reflection broken with io.grpc >= 1.66.0 #1136

profhenry opened this issue Aug 27, 2024 · 0 comments
Labels
bug Something does not work as expected

Comments

@profhenry
Copy link

grpc-spring compiles against io.grpc 1.63.0, but up to now it was possible to use a more recent version of io.grpc.
This works fine up to 1.65.1, but with 1.66.0 there is a incompatibility.

io.grpc added support for server reflection v1, see grpc/grpc-java#6724. They still provide support for server reflection v1alpha.
When implementing a grpc server with grpc-spring server reflection is (still) offered in version v1alpha (which is good because of backward compatibility) and this works in general. But when using in combination with spring security and basic authentication it does no longer work :-/ You always get a "PermissionDenied".

I haven't figured it out yet but i think spring security gets confused because ProtoReflectionService binds the new ProtoReflectionServiceV1 still using the v1alpha service descriptor, see here.

@profhenry profhenry added the bug Something does not work as expected label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something does not work as expected
Projects
None yet
Development

No branches or pull requests

1 participant