fix(cluster): replace openssl with /dev/urandom in cluster image#139
Merged
fix(cluster): replace openssl with /dev/urandom in cluster image#139
Conversation
The k3s base image is BusyBox-based with no package manager, so `apk add openssl` fails. Replace the sole openssl usage (rand -hex 32) with an equivalent using /dev/urandom + od, which are available in BusyBox.
drew
added a commit
that referenced
this pull request
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RUN apk add --no-cache opensslfromDockerfile.cluster— therancher/k3sbase image is BusyBox-based with no package manager, soapkis not availableopenssl rand -hex 32incluster-entrypoint.shwithhead -c 32 /dev/urandom | od -A n -t x1 | tr -d ' \n', which produces an identical 64-character hex string using only BusyBox builtinsTest Plan
mise run docker:build:clustersucceeds (previously failed withapk: not found)/dev/urandomreplacement produces correct 64-char hex output inside the k3s container