Upgrades, rollback and what an upgrade keeps
By the end you can
- Check for a new version and read what changed
- Upgrade online or air-gapped and know what the upgrade does for you
- Roll back, and say what is lost when you do
- Find and fix the weak defaults an upgraded install keeps
Knowing a new version is out
Settings → Updates shows the installed version, whether a newer one exists, and the release notes: what is new since your version and the recent changes in yours. When a newer version exists, administrators see a banner at the top of every page, which can be dismissed per version.
The check reads a small list of versions and notes, signed with the Authcha release key, from the release site every six hours (or Check now). Only the version number is sent, in the User-Agent: no license, host or user information. Nothing is downloaded or installed by the check, and a list whose signature does not verify is ignored. Turn it off in the same tab, or with UPDATE_CHECK=off in .env for a site with no internet.
Upgrade
sudo authcha upgrade # the latest release
sudo authcha upgrade --version 1.11.0 # a specific release
sudo authcha --version # product version, bundle, image tags
sudo authcha status --json # services, migrations, license, legacy settingsauthcha upgrade does these steps for you:
- Downloads the release with your installed license (upgrades are included while the license is valid).
- Verifies its SHA-256 and Ed25519 signature, and checks Docker has about 3 GB free for the images. If it does not, it removes the images of older releases first, and stops with a clear message if that is still not enough.
- Backs up the database to
/opt/authcha/backups/pre-upgrade-<from>-to-<to>-<time>.sql.gz. - Loads the new images and replaces the product files, keeping your settings, certificates and data.
- Restarts and waits for the console, then removes the images of releases older than the one you came from. The running release and the previous one stay, so
authcha rollbackworks.
If the console is not healthy within five minutes, it rolls back on its own. Database migrations run automatically at start.
Air-gapped: copy the new bundle, its .sig and install.sh to the server and run sudo bash install.sh --bundle authcha-X.Y.Z.tar.gz --license-file license.json. The same backup, checks and data-keeping apply.
Roll back
sudo authcha rollbackIt reinstalls the previous release, which is kept on the host, and restores the database from the pre-upgrade backup. Changes made since the upgrade are lost, so it asks first. The installer refuses to install an older release over a newer one any other way.
What an upgrade keeps, and the weak defaults
An upgrade never changes your settings. An install that began on an older release therefore keeps a few defaults a new install does not have. The upgrade writes each into .env explicitly, prints the list when it finishes, and Authcha keeps reminding you about the weak ones:
sudo authcha statusnames each one.- The console shows an Action needed after the upgrade banner and a Dashboard card until each risk is fixed or accepted with a reason. An accepted risk shows again after 30 days.
/api/health/summaryand the metricauthcha_legacy_settings{severity}carry the same.
Examples: RADIUS_REQUIRE_MESSAGE_AUTHENTICATOR (a risk: without it a PAP request with no Message-Authenticator is accepted, the BlastRADIUS issue), the password policy for RADIUS users (a risk), the captive-portal rule that stops a code stage being skipped (a risk), and the PAP cache (a capacity recommendation).
To apply the recommended values:
sudo authcha apply-recommendedIt shows what it will change, backs up .env, edits it, recreates FreeRADIUS and the console (a few seconds without RADIUS), and checks that FreeRADIUS now runs with the new value. Before you apply the Message-Authenticator setting, make sure every network device sends Message-Authenticator with PAP. A device that cannot should stay on auto: accept the risk in the console with a reason.
LabHands-on
- Open Settings on the demo as
demo-viewer(passwordAuthcha-View-2026) and find Updates. Read the current version and the notes. - On your install, run
sudo authcha --versionandsudo authcha status. Does it list any legacy settings? - Open the Dashboard and look for an Action needed after the upgrade card.
- Take a console backup, then run
sudo authcha upgradeto the latest (or--versionfor a lab version). - Run
sudo authcha apply-recommendedand read what it proposes before you say yes. - On a lab host, run
sudo authcha rollbackand read what it warns you about. Cancel if you do not want to roll back.
Check yourselfQuiz
Cheat sheetKeep this
- Settings → Updates: version, notes, signed check every 6 h.
sudo authcha upgrade [--version X]. It backs up, verifies, keeps settings, rolls itself back if unhealthy in 5 min.sudo authcha rollback: previous release + pre-upgrade database. Loses changes since.- Air-gapped:
install.sh --bundle ... --license-file .... - Weak defaults after an upgrade:
sudo authcha status, thensudo authcha apply-recommended. - Before every upgrade: console backup. After:
sudo authcha backup verify. - Read more: Operations.