One-click online updates and rollback, update site in China
Show what changed
Added
- One-click updates: once the update service is installed on the host, Settings → Version and updates has Install and Roll back buttons and shows each step as it runs: verify, load image, back up, switch and health check. The bundled user database is backed up before switching, keeping the latest 3 copies; the update rolls back if the new version fails its health check; and every install and rollback is recorded in the audit log. Command-line updates still work without the service
- Update site in China: updates are checked and downloaded from an update site in China first, with GitHub as the fallback; both pass the same signature check
Security
- The update service strictly validates update requests from the gateway and trusts nothing the gateway sends
Upgrade notes
- After updating to 1.2.25 as usual, run
sudo ./deploy/rst-update.sh --install-serviceonce in the install directory to turn on one-click updates. Deployments using the bundled Elasticsearch should include theCOMPOSE_FILEandCOMPOSE_PROFILESthey normally start with - If outbound traffic is filtered, allow
updates.reallysec.com:443. To use GitHub only, setRST_UPDATE_MIRROR_URLto an empty value in.env - See the upgrade guide