EventStoreDB-Client-Rust icon indicating copy to clipboard operation
EventStoreDB-Client-Rust copied to clipboard

Connecting to a node or cluster via an IP address using TLS results in InvalidDnsNameError

Open shaan1337 opened this issue 3 years ago • 2 comments

Sample error when logging is enabled:

DEBUG eventstore::grpc             > Failed to create gRPC channel for candidate Endpoint { host: "172.30.240.11", port: 2113 }: transport error: error trying to connect: InvalidDNSNameError

This occurs due to the following limitation in the webpki dependency: https://github.com/briansmith/webpki/issues/54

(Parsing IP SANs from certificates is not yet supported)

See also: https://github.com/ctz/rustls/issues/281 https://github.com/hyperium/tonic/issues/279

This forces the user to use DNS names for each node of the cluster.

shaan1337 avatar Jun 22 '21 12:06 shaan1337

rustls next version 0.21 has fixed that issue. I'll fix it when released.

YoEight avatar Feb 13 '23 14:02 YoEight

Waiting on tonic to upgrade to hyper version 1.

YoEight avatar Jan 15 '24 17:01 YoEight