fix(cluster): replace openssl with /dev/urandom in cluster image (#139)

This commit is contained in:
Drew Newberry
2026-03-05 16:20:19 -08:00
committed by GitHub
parent ae9e766567
commit fc22cfd2f7
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -18,9 +18,6 @@
ARG K3S_VERSION=v1.29.8-k3s1
FROM rancher/k3s:${K3S_VERSION}
# Install openssl (used by entrypoint to generate SSH handshake secret)
RUN apk add --no-cache openssl
# Create directories for manifests, charts, and configuration
RUN mkdir -p /var/lib/rancher/k3s/server/manifests \
/var/lib/rancher/k3s/server/static/charts \
+1 -1
View File
@@ -252,7 +252,7 @@ fi
# Generate a random SSH handshake secret for the NSSH1 HMAC handshake between
# the gateway and sandbox SSH servers. This is required — the server will refuse
# to start without it.
SSH_HANDSHAKE_SECRET="${SSH_HANDSHAKE_SECRET:-$(openssl rand -hex 32)}"
SSH_HANDSHAKE_SECRET="${SSH_HANDSHAKE_SECRET:-$(head -c 32 /dev/urandom | od -A n -t x1 | tr -d ' \n')}"
# Inject SSH gateway host/port into the HelmChart manifest so the navigator
# server returns the correct address to CLI clients for SSH proxy CONNECT.