fix: remove openssl dependency for password generation
All checks were successful
CI / build (push) Successful in 1m18s
CI / docker (push) Successful in 19s

Use /dev/urandom instead of openssl rand for generating random
passwords. Available on all Linux/macOS systems without requiring
openssl to be installed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-14 19:58:11 +02:00
parent 4a67677158
commit ace6ad0cf2

View File

@@ -135,7 +135,7 @@ prompt_yesno() {
} }
generate_password() { generate_password() {
openssl rand -base64 24 | tr -d '/+=' | head -c 32 tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 32
} }
# --- Argument parsing --- # --- Argument parsing ---
@@ -304,10 +304,6 @@ check_prerequisites() {
log_info "Docker Compose version: $compose_version" log_info "Docker Compose version: $compose_version"
fi fi
if ! command -v openssl >/dev/null 2>&1; then
log_error "OpenSSL is not installed (needed for password generation)."
errors=$((errors + 1))
fi
local socket="${DOCKER_SOCKET:-$DEFAULT_DOCKER_SOCKET}" local socket="${DOCKER_SOCKET:-$DEFAULT_DOCKER_SOCKET}"
if [ ! -S "$socket" ]; then if [ ! -S "$socket" ]; then