fix: enable TLS on cluster manager API (#113)

This commit is contained in:
Julian Sommer
2026-04-07 10:56:16 +10:00
committed by GitHub
parent 5598e523d5
commit 99f9949bdd
9 changed files with 184 additions and 12 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ sleep 5
echo "Daemon health:"
for IP in 127.0.0.1 127.0.0.2 127.0.0.3; do
echo " $IP: $(curl -s http://$IP:4432/health | head -c 100)"
echo " $IP: $(curl -sk https://$IP:4432/health | head -c 100)"
done
echo ""
+1 -1
View File
@@ -176,7 +176,7 @@ for i in $(seq 0 $((NODE_COUNT - 1))); do
printf " node%d (%s): " "$((i + 1))" "$ip"
attempts=0
while true; do
health=$(curl -s --connect-timeout 3 "http://$ip:4432/health" 2>/dev/null || echo "")
health=$(curl -sk --connect-timeout 3 "https://$ip:4432/health" 2>/dev/null || echo "")
if [ -n "$health" ]; then
echo "healthy"
break
+1 -1
View File
@@ -185,7 +185,7 @@ cmd_status() {
printf " %-20s mgmt=%-16s data=%-16s " "$name" "$ip" "$data_ip"
local health
if health=$(curl -s --connect-timeout 3 "http://$ip:4432/health" 2>/dev/null); then
if health=$(curl -sk --connect-timeout 3 "https://$ip:4432/health" 2>/dev/null); then
echo "health=$health"
else
echo "health=unreachable"
+1 -1
View File
@@ -457,7 +457,7 @@ if is_multinode; then
attempts=0
max_attempts=5
while [ $attempts -lt $max_attempts ]; do
if curl -s --connect-timeout 3 "http://$peer/health" > /dev/null 2>&1; then
if curl -sk --connect-timeout 3 "https://$peer/health" > /dev/null 2>&1; then
echo " $peer: healthy"
break
fi