trackslash
VAULT-158 P2 For an agent

Check a Backup: confirm a backup opens with its password, without restoring it

0
All issues

Description

Bradley (2026-11-08): add a way to check that a backup can be restored, without restoring it.

Why

Vault keeps the backup key so it can make backups without asking (G59). So a user who set a backup password once may never type it again, and only finds out they've forgotten it when they need to restore. For a recovery phrase or a private key, that can mean losing the funds it guards. Today the only way to test a backup is to restore it, which merges into or replaces the vault.

It also fits the crypto-first listing (VAULT-141): "know your backup restores" is something a 2FA app doesn't offer.

Change

A Check a Backup action on iOS and the Mac:

  1. Choose a PDF backup (or an auto-backup's file), or on iOS scan its QR codes.
  2. Type the backup's password.
  3. Vault derives the key and decrypts and decodes the whole backup in memory, exactly as a restore does before it imports.
  4. It says the backup opens with that password and everything in it can be restored, then forgets what it decrypted.

Where:

  • iOS: a row on the Backups page, beside Restore, that opens a sheet.
  • Mac: a Check a Backup page in the Backups list.

Ground rules

  • It changes nothing on the device. No item, tag, setting, keyring, backup password or "Last backup" is touched. The check's view model doesn't take the VaultDataModel, so it can't import.
  • It shows nothing about what's inside. No item count, titles or kinds. A count would include hidden items, so it would tell someone forcing the user to check a backup that there are hidden items to find (MANIFESTO C5). It says only that the backup opens and decodes.
  • It always asks for the backup's own password (G59), never for Face ID or the passcode instead (C4). It doesn't need device authentication either: it doesn't read the vault or the stored backup key, and anyone holding the file and its password can already open it with Vault on another device.
  • No new encryption. It uses the same CryptoKit decryption as restoring, so export compliance doesn't change.
  • No record of checks. No "last checked" date for now. That can be a follow-up if it's wanted.

Done when

  • iOS and the Mac can check a PDF backup, and iOS can check one from scanned QR codes. A wrong password says so, and the right one says the backup can be restored.
  • Tests pin that a check decrypts and decodes the whole backup, refuses a wrong password, and never changes the vault.
  • docs/security-model.md has a row for the promise, naming the tests. The CHANGELOG and README mention the feature.
  • make validate passes, and the PR is open for Bradley to review.

Sub-issues

0

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

3
Bradley

Merged as #766 (681fac9b), after rebasing onto the VAULT-159 fix (#767) and a full green make validate, Mac UI tests included. It ships with the next release, and the CHANGELOG has it under Unreleased.

Bradley

make validate on e262ad98 failed at "Tests (macOS)", on VaultStoreDifferentialTests seed 5. This PR doesn't touch that code, and main fails the same way since this Mac moved to macOS 27.2. Tracked in VAULT-159.

Every earlier stage passed: lint, Fastlane config, build, iOS tests, iOS UI tests, iOS entitlements and the macOS build. The new tests pass on iOS and macOS when run on their own. Once VAULT-159 is fixed, this branch needs a rebase and a full make validate.

Bradley

PR: https://github.com/badbundle/vault-app/pull/766

  • iOS: a Check a Backup row on the Backups page, under Restore. It opens a page of its own rather than a sheet, as the other Backups rows do.
  • Mac: a Check a Backup page in the Backups list.
  • The promise is G106 in docs/security-model.md. That the check changes nothing is kept by design: BackupCheckViewModel has no data model, and the views drop the decrypted payload as soon as it arrives. The tests pin that every backup in the corpus opens with its password, that a wrong password or a backup that can't be fully decoded doesn't open, and the view model's states.
  • Help's About Backups page has a new "How do I know a backup will restore?" section.