Skip to content

ING-1336: Do not manually set server name in tls config#312

Merged
Westwooo merged 1 commit into
masterfrom
ING-1336-cluster-tls
Nov 10, 2025
Merged

ING-1336: Do not manually set server name in tls config#312
Westwooo merged 1 commit into
masterfrom
ING-1336-cluster-tls

Conversation

@Westwooo

@Westwooo Westwooo commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

When I added support for tls communication between CNG and the cluster I manually set the server name in the tls config. This means that every time we try to form a tls connection we use the same server name, the hostname from the connection string that CNG was given on start up. This will cause TLS handshakes to fail against any nodes other than the one that CNG was pointed to on start up because only that node's SAN list will contain a matching server name.

There was an underlying issue in the http transport for our agent that meant that the server name as not being automatically populated with the hostname from the address as it should be. That issue has been addressed so now we can remove the manual setting of the serverName and tls communication with the cluster will work correctly for all deployments.

Interestingly this did not cause any problems in Capella because we start CNG with a localhost connection string then all of the server node certificates have localhost in their SAN list.

@Westwooo Westwooo force-pushed the ING-1336-cluster-tls branch 3 times, most recently from 3ee8f53 to bd388e8 Compare November 10, 2025 09:26
@Westwooo Westwooo force-pushed the ING-1336-cluster-tls branch from bd388e8 to 3d0be50 Compare November 10, 2025 09:30
@Westwooo Westwooo merged commit 1d4680a into master Nov 10, 2025
18 checks passed
@Westwooo Westwooo deleted the ING-1336-cluster-tls branch November 10, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants