fix: add insecure TLS verification for initial cluster join

This commit is contained in:
Tanishq Dubey 2025-05-18 10:46:05 -04:00
parent 0e50eaa407
commit 641a2f09d3
No known key found for this signature in database
GPG Key ID: CFC1931B84DFC3F9

View File

@ -95,7 +95,8 @@ func JoinCluster(leaderAPI, advertiseAddr, nodeName, leaderCACert string, pkiDir
// Configure TLS // Configure TLS
client.Transport = &http.Transport{ client.Transport = &http.Transport{
TLSClientConfig: &tls.Config{ TLSClientConfig: &tls.Config{
RootCAs: caCertPool, RootCAs: caCertPool,
InsecureSkipVerify: true, // Skip hostname verification for initial join
}, },
} }
} else { } else {