S17 - Install, Downloads and Upgrades
Purpose: Build, install, upgrade and remove a Wraith Box bundle, move its stored data to a new version, and download what an image build needs from the internet.
Requirements: SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts. (no root, each process gets only what it needs), SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter. (every egress decision recorded), SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped. (what the host spends is capped), NFR06-explained-refusalsNFR06-explained-refusals: OperabilityEvery refusal names the rule that caused it and how to change it. (each refusal names its rule and the fix).
Design
Section titled “Design”Out of scope
Section titled “Out of scope”- Release builds: Developer ID signing, notarization and the Homebrew cask (S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice.).
- A restore image from a file the user names, for hosts without access to Apple’s servers (I263I263 (open): S17-install-and-upgrade: build an image from a local restore image fileS17-install-and-upgrade (#49) gets the macOS restore image only from Apple's catalog, through wb-download.).
- A macOS version other than the newest the host supports, apart from
--allow-older-macos, and an upstream proxy for downloads. - Deleting data and store items at uninstall (I264I264 (open): S17-install-and-upgrade: wb setup --remove --purgewb setup --remove (S17-install-and-upgrade, #49) unloads the LaunchAgent and deletes the plist and the wb link, and keeps <config, <data, <logs and the secret store items.), and downgrades:
an older
wb-hostdrefuses a newerstate.db.
Status: Draft