rantav / go-grpc-channelz

A ChannelZ UI for gRPC in Golang
MIT License
41 stars 3 forks source link

Support TLS servers? #9

Open DanTulovsky opened 3 years ago

DanTulovsky commented 3 years ago

Is supporting TLS based gRPC servers on the roadmap?

Thank you

rantav commented 3 years ago

Hi @DanTulovsky I'm not sure, what would that entail? Want to send a PR for me to look at?

choopm commented 8 months ago

As #14 got merged, you can now use grpc.DialOption to provide a TLS config, see this example:

handler := channelz.CreateHandlerWithDialOpts(
    "/prefix",
    "localhost:8443",
    grpc.WithTransportCredentials(
        credentials.NewTLS(&tls.Config{
            InsecureSkipVerify: true,
        }),
    ),
)
// http.Handle("/", handler)
// ...

imho this issue might be closed.