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

How to support grpc-gateway in springboot #657

Open
kerwin-wang opened this issue Apr 22, 2022 · 5 comments
Open

How to support grpc-gateway in springboot #657

kerwin-wang opened this issue Apr 22, 2022 · 5 comments
Labels
question A question about this library or its usage

Comments

@kerwin-wang
Copy link

kerwin-wang commented Apr 22, 2022

How to support grpc-gateway in springboot? How can I do that rpc and http+json use the same port?
Thank you!

@kerwin-wang kerwin-wang added the question A question about this library or its usage label Apr 22, 2022
@ST-DDT
Copy link
Collaborator

ST-DDT commented Apr 22, 2022

I assume you are referring to https://github.com/grpc-ecosystem/grpc-gateway

We are slowly working on something like this
https://github.com/yidongnan/grpc-spring-boot-starter/pull/207

@ST-DDT
Copy link
Collaborator

ST-DDT commented Apr 22, 2022

Other than that, you can still use their standalone proxy variant as is.

@kerwin-wang
Copy link
Author

kerwin-wang commented Oct 11, 2022 via email

@stillya
Copy link

stillya commented Feb 12, 2023

Any updates? I want to switch my frontend to Protocol Buffers and create a gRPC gateway for all my microservices. However, I'm currently using Spring Security to implement Attribute-Based Access Control (ABAC) authorization model. This means that I have to define REST controllers where I simply call the gRPC client, which I don't think is a great solution. For every new endpoint, I have to implement a new REST controller. It would be great to have something declarative to solve this problem, like what's provided by https://github.com/grpc-ecosystem/grpc-gateway. I'm willing to contribute to this feature if you find it useful.

@ST-DDT
Copy link
Collaborator

ST-DDT commented Feb 12, 2023

Grpc java now offers grpc-servlet that you can use to achieve the same.
There isnt direct support for that from this library, but it should be easy to do yourself in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about this library or its usage
Projects
None yet
Development

No branches or pull requests

3 participants