I'm developing a set of gRPC microservices using rust and tonic library. One of those microservices is behind a firewall that does not allow any inbound connections. I'd like to know if it's still possible for this service to act as a server for unary grpc calls. I was thinking of rearranging parts of hyper/tower stack to force the server to connect to client and then proceed with regular gRPC communication but I'm not sure where to start (if at all possible). In my research I also came across yamux library, is this something I could use for this purpose?
Asked
Active
Viewed 135 times
0
-
2Short answer: No. Long answer: Get your firewall rules adjusted. Do not port punch or you will create a vulnerability. Consider using a persistent connection (WebSocket?) to send your gRPC calls. – tadman Dec 23 '22 at 21:00