trackslash
VAULT-110 P2 For an agent

Mac app: backups, restore and moving a vault between devices

0
Sub-issue of VAULT-101 P2 A native Mac app

Description

Part of VAULT-101. It needs VAULT-104 and VAULT-108.

The Backups area on the Mac, with the same rules as iOS. It's the only way items move between the Mac and other devices, since there's no sync (G69).

  • Backup password: set and change it, with the same rules as the App Lock Password (G27). Each vault has its own (G17).

  • Export:

    • Keep a Backup saves the encrypted PDF through a save panel, or prints it;
    • Move to Another Device shows the QR codes for an iPhone or iPad to scan, with no file saved.

    Every export is the whole vault, encrypted (G54), and saved backups are padded (G57).

  • Auto-Backup: the user picks a folder, such as one in iCloud Drive. Vault keeps access to it with a security-scoped bookmark, and keeps the same rules for writing, keeping and cleaning up backups (G62).

  • Restore:

    • from a PDF file, or by scanning a device's transfer QR codes with the Mac's camera or Continuity Camera;
    • it always asks for the backup's own password (G59), and Touch ID or the Mac's password first (G31);
    • Import, Merge and Replace work as on iOS (G83).
  • Tests: unit tests for the save panel and bookmark handling, and a round trip each way: an iOS backup restored on the Mac, and a Mac backup restored on iOS.

Done when

Backups can be made, scheduled and restored on the Mac, and an iPhone's vault can be moved to a Mac and back.

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Fixed in https://github.com/badbundle/vault-app/pull/720 (merged as e31ca214).

The sidebar's Backups lists its pages, with when this Mac last backed up. They use the shared backup view models and services, so every iOS backup rule holds (G54–G62):

  • Backup Password: set or changed in a sheet, after Touch ID or the Mac's password, with the App Lock Password's rules.
  • Keep a Backup: the encrypted, padded PDF is saved where the user chooses, or printed, with no temporary file or share sheet. It's logged as a backup once it's saved or printed.
  • Move to Another Device: the transfer's QR codes stop and are forgotten when the page closes.
  • Auto-Backup: writes to a folder the user picks, whenever the vault changes. The folder is kept across launches with a security-scoped bookmark.
  • Restore: from a PDF the user picks, or from another device's codes scanned with the camera, always with the backup's own password, after Touch ID or the Mac's password. Import, Merge or Replace work as on iOS.
  • docs/mac-app.md describes the pages, and docs/security-model.md adds G93.

Follow-up: VAULT-117 (when Auto-Backup can run, given how often the Mac locks) needs a decision from Bradley.