Skip to content

Version 4.2.1

Choose a tag to compare

@andreapollastri andreapollastri released this 08 Mar 16:25
· 107 commits to master since this release

[4.2.1] — 2026-03-08

Added

  • Non-interactive SSH key inputsetup.sh now accepts SSH_PUBKEY environment variable for non-interactive installs (e.g. SSH_PUBKEY="ssh-rsa ..." bash setup.sh)
  • Random root password — installer generates a 32-character random root password, saves it in server.json, and displays it in the final summary
  • SSH key setup instructions — clearer installer prompt: shows accepted key formats (ssh-rsa, ssh-ed25519, ecdsa) for existing keys, and RSA 4096 generation command for new keys

Security

  • su restricted to sudo group — application users can no longer use su to elevate to root or cipi (via pam_wheel.so group=sudo)

Fixed

  • SSH key paste in curl | bashread now reads from /dev/tty so interactive input works when setup is piped via curl
  • SSH key sanitization — automatically strips comments, carriage returns, and extra whitespace from pasted keys before validation
  • SSH service restart on Ubuntu 24.04 — use ssh service name with sshd fallback for compatibility across distributions
  • server.json missing during SSH hardening — installer now creates /etc/cipi/server.json before writing to it, and MariaDB setup merges instead of overwriting