EventStoreDB-Client-Rust
EventStoreDB-Client-Rust copied to clipboard
Connecting to a node or cluster via an IP address using TLS results in InvalidDnsNameError
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.
rustls
next version 0.21
has fixed that issue. I'll fix it when released.
Waiting on tonic
to upgrade to hyper
version 1.