Hi, For the las couple days I’ve been trying to deploy a gRPC server, I went through the gRPC tutorial on the docs but at first I couldn’t get it working. I found a post from 7 months ago that had somewhat the same issues that I did.
I finally got it working and even deployed my own service, but I can’t understand why having the handlers as [] works and I would like to understand what is happening here to get a little bit more knowledge on the matter. Once I set the handlers as [] I can call grpcurl but I have to set the -plaintext flag, which I am pretty sure once I hit production this would be something to be concerned about ?
A little bit more context:
Both my backend and client are written in go.
Setting the handlers with ["tls"] I am able to call with grpcurl without any extra flags but my go client won’t connect, it would print out an error saying connection closed before server preface received.
Once I remove the handlers I can call from my client but when trying grpcurl without -plaintext I get tls: first record does not look like a TLS handshake.
Is it possible to have tls enabled and being able to call my service from both my client and grpcurl?
Ah got it, I think that cleared things up. All TLS responsibility is then passed to my app instead of the basic config fly provides, so if I would like to have some security i would have to implement tls through some gRPC config on my end, am I right?