Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Node Discovery fails in .NET Client with HTTPS enabled #11960

Open
martinsuchan opened this issue Mar 23, 2025 · 2 comments
Open

Automatic Node Discovery fails in .NET Client with HTTPS enabled #11960

martinsuchan opened this issue Mar 23, 2025 · 2 comments
Assignees

Comments

@martinsuchan
Copy link

We've discovered a bug in Ignite 2.15-2.17 if EnableClusterDiscovery property is set in .NET Client when connecting to a cluster with HTTPS enabled on each host.
If we try to connect form .NET Thin client in this configuration, it works without any certificate issues, but then if the Automatic Server Node Discovery is enabled (IgniteClientConfiguration.EnableClusterDiscovery), it fails on RemoteCertificateMismatch. Interestingly this error is only logged in the background, we can stilll connect to the cluster.

We've tried to debug it and we discovered, that requests in the server discovery background process are done by targeting IP addresses of our nodes, rather than using host names or DNS aliases of nodes.
Because of that these requests fail via HTTPS, because the IP address is not inlcluded in our host certificates in the SAN list. Including IP addresses in node certificates is not an option in our case.

Expected behavior: Automatic Server Node Discovery over HTTPS should not fail if each host has a trusted certificate with proper host name in the SAN list. Node Discovery requests should use hostnames instead of IP addresses for connections.

See this line in ClientFailoverSocket.cs where this behavior starts:

@ptupitsyn
Copy link
Contributor

Thank you for the detailed report, ticket created: https://issues.apache.org/jira/browse/IGNITE-24906

@martinsuchan
Copy link
Author

Update, the same error is also logged when using this property in .NET Thin client and using HTTPS on server:
IgniteClientConfiguration.EnableHeartbeats = true
even when automatic node discovery and partition awareness is set to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants