EventStore / EventStoreDB-Client-Rust

Rust EventStoreDB gRPC Client
MIT License
49 stars 12 forks source link

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

Open shaan1337 opened 3 years ago

shaan1337 commented 3 years ago

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.

YoEight commented 1 year ago

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

YoEight commented 8 months ago

Waiting on tonic to upgrade to hyper version 1.