Repository navigation
BackupZit 0.70.0
Fixes from a full code review: data safety first, then security and logic.
Data safety
- A lost repository lock stays lost. When a backup lost its storage for longer than the lock's lifetime (a laptop asleep, an outage), another job could free space in the meantime. A later successful lock refresh made the backup go on and save a restore point that could not be restored. The loss is now permanent for that run. It is measured by the wall clock, so sleep counts, as it does for the other hosts.
- Repair keeps intact copies of data. When a damaged pack held data that an intact pack also held, repair dropped the intact copy from the index too. A restorable backup then counted as affected, and a later cleanup could delete the last copy. The new index now comes from the index files on the storage.
- What follows a backup is not lost with the connection. If the agent gave up waiting for the console, or a database hiccup came at the wrong moment, chained jobs, copies and replicas were not queued. The ransomware check and the marking of removed backups could also be skipped. These steps now finish on their own and are retried. A notification no longer goes out as a plain success before the missing-VM and ransomware checks are written.
- Missing VMs stay on the dashboard until someone confirms. The next backup dropped them from Needs attention. Only newly missing VMs make a run a warning.
- Retention keeps the last good restore point of a VM that keeps failing. Restore points of runs where one VM failed (kept for the other VMs) could push that VM's last good restore point out of the retention.
- A wildcard source that matches nothing is a warning. For example, a job with
E:\Shares\*whose drive is gone. A{users}path that finds nothing is still no error. - A failed cluster query no longer moves a Hyper-V host out of its cluster. If the query failed once, for example after a patch reboot, the cluster job's member was deleted and recreated, and its history started from zero.
Security
- Console backup with a new master key. In 0.69 the console backup got its own key file, but the master key underneath stayed the same. That master key could be read with the storage's recovery key. The first console backup of 0.70 deletes the old console backups and starts a new repository. On immutable storage the old files stay readable through the storage's history until their retention ends.
- Installing an agent from the console asks for your password or two-factor code, as creating an enrollment code does.
- Restores never follow links on a network share. This covers NAS jobs over NFS or SMB, and Windows shares and mapped drives. A link that root on the NAS placed where a backed-up folder had been led a restore to the original location onto the agent's own disk.
- Linux and macOS file backups no longer read a file that was swapped between listing and reading. A local user could swap a file for a link to
/etc/shadowand get it stored under their own path. A FIFO swapped in hung the backup. - Appliance: root no longer trusts files in the console user's folder.
- The bzadmin password file and the "first start done" mark moved to a folder only root can use.
- The console's initial password file is now read as the service user.
- The appliance is recognised by its root-owned first-start script.
- Four-eyes approval:
- An approved user deletion checks again that two administrators remain.
- Nobody can approve a request about their own account.
- Resetting the password or two-factor sign-in of a disabled administrator waits for approval too.
Other
- NAS: two different shares never share one Linux mount point. Line breaks are refused in share credentials.
- Enrollment: the request is limited to 64 KiB, and its fields are clipped before the log and the audit chain.
- Updates: a download is never larger than the size in the signed release.
- Hardened repository: only real lock files count as lock files.
- Instant NFS: negative offsets are refused.
- Scheduler: a scheduled backup that could not be started is reported (
schedule.not_started), not only logged. - Guides: updated in all 14 languages.