trackslash
VAULT-105 P2 For an agent

Mac app: create the app target, its sandbox and an empty shell

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

Description

Part of VAULT-101. It needs VAULT-103.

Create the Mac app itself, empty but correctly packaged, so later issues only add features.

  • The app target: a native macOS app target, with SwiftUI and the App lifecycle, and a VaultMac module in the package for its views. It uses the same bundle ID as the iOS app, for Universal Purchase, and the same team and App Group.
  • App Sandbox: only the entitlements the design doc lists. That means the App Group, the keychain access group shared with the AutoFill extension, user-selected files (read and write) for backups, and the camera for QR scanning. No network entitlements (G70), and nothing that lets another process into the vault (VAULT-101's isolation decision).
  • Its shell: a single main window with the sidebar (Items, Tags, Backups, Settings, About) as placeholders, the standard menus and an About window. No state restoration that could save a window's contents.
  • Validation: local-check builds the app and runs a launch test on macOS. The macOS UI test target is set up, launching with an in-memory vault as the iOS one does.

Done when

The Mac app builds, signs and launches, sandboxed with only the listed entitlements, from make validate.

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Done in https://github.com/badbundle/vault-app/pull/715 (merged as df0ebdf7). The Mac app builds, signs and launches from make validate, sandboxed with only the listed entitlements.

  • VaultMacApp (built as Vault.app, bundle ID com.badbundle.vault) and the VaultMac module: one main window titled only "Vault" with the sidebar (Items, Backups), the About window and the Settings window as docs/mac-app.md decided, standard menus without New Window, no state restoration.
  • Its icon is generated like the iOS one: VaultMacAppIconView, rendered by make app-icon at every Mac size.
  • Validation adds: Mac app tests run inside the launched app (window, sandbox, App Group), a "Mac app entitlements" check on the app as it runs (hardened runtime, App Group, nothing unlisted; G84), and Mac UI tests, which run unattended even with the screen locked.
  • The UI tests launch the app plainly here: there's no vault yet. The test vault (-ui-test-vault fresh) comes with VAULT-106, the first thing that reads storage.