Self-Update & Dry-Run
Microbase includes a fail-closed self-updater available in both the Admin UI (Settings → Application → System Update) and the CLI.
How Verification Works (Fail-Closed)
Section titled “How Verification Works (Fail-Closed)”Every update — whether dry-run or live — performs strict verification before touching your executable:
- Queries GitHub Releases (with a 5-minute cache and automatic web-redirect fallback if
api.github.comreturns HTTP 403/429). - Downloads the OS/architecture archive and
checksums.txt. - Computes the SHA-256 digest and aborts immediately if
checksums.txtis missing or the digest does not match. - Extracts the binary and validates its native executable header (ELF, Mach-O, or Windows PE).
- Verifies write permission to the running executable path.
Dry-Run Verify (Safe Pre-Flight Check)
Section titled “Dry-Run Verify (Safe Pre-Flight Check)”Test the entire download and SHA-256 verification flow without modifying the running binary:
./microbase update --dry-run./microbase update --dry-run --to v0.12.18Or click Dry-Run Verify in Settings → Application → System Update.
Applying an Update
Section titled “Applying an Update”# Check only./microbase update --check
# Update to latest release./microbase update
# Update or rollback to a specific tag./microbase update --to v0.12.18After updating, restart Microbase (systemctl restart microbase or re-run ./microbase) to activate the new version.