mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-29 07:23:25 +08:00
fix(cluster): replace openssl with /dev/urandom in cluster image (#139)
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user