If you are after a Java based proxy Undertow provides a reverse proxy with full HTTP/2 support (and no need to mess around with the boot classpath to get ALPN support).
A simple example is at https://github.com/undertow-io/undertow/blob/master/examples/src/main/java/io/undertow/examples/http2/Http2Server.java Stuart On Friday, 18 August 2017 22:10:31 UTC+10, [email protected] wrote: > > Hi Kun. That's interesting thanks! Will definitely have a deeper look, but > at first glance it looks like a c based lib, and we're looking to have our > own Java based proxy adapted to do this, but also implement some of our > existing Java features related to JWTs. > > Cheers, > - Matt > > > On Thursday, August 17, 2017 at 4:58:20 PM UTC-4, Kun Zhang wrote: >> >> nghttpx <https://nghttp2.org/documentation/nghttpx-howto.html> is >> capable of http/2 reverse proxy. It sounds like what you need. >> >> On Thursday, August 17, 2017 at 11:39:19 AM UTC-7, Matt Mitchell wrote: >>> >>> Hi, >>> >>> We've been developing gRPC services for our backend. We would like to >>> prevent direct access to these services when in production, by having all >>> clients go through a proxy. We have a custom proxy setup now (based on >>> Jetty) that handles http/1 traffic - it also applies authentication and >>> handles sessions. What we'd like to do, is find a way to do the same thing >>> for our gRPC services. >>> >>> My initial thought was to somehow develop a simple pass-thru ("dumb") >>> handler for the http/2 (grpc) requests to the backend services. So requests >>> coming into the proxy would be routed to the backend services without any >>> inspection/manipulation of the data. But I'm unsure of how we'd do this >>> really. Is this approach possible? >>> >>> Another idea was to just import grpc into the proxy, startup a grpc >>> server and use the generated client libs to handle the proxying. But I >>> wouldn't want to do this if it required that we have to manually wire up >>> each request to the specific client class etc.. Is there a way to do this >>> dynamically? >>> >>> And lastly, we would like to reuse some of the auth handling we have in >>> our http/1 proxy - mainly, JWTs. Are there examples out there of using JWT >>> w/gRPC? >>> >>> Cheers, >>> - Matt >>> >> -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/2c9bfa94-b27e-4140-b802-fecd8286430e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
