trackslash
VAULT-109 P2 For an agent

Mac app: keep windows private (screen capture, previews, titles)

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

Description

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

Mac-specific ways a window's contents could leak, and how each is closed.

  • Screen capture: Hide While Recording is on by default (G24, C7). On the Mac, NSWindow.sharingType = .none keeps every Vault window out of screenshots, screen recordings, screen sharing and AirPlay. That's stronger than iOS, which can only cover the app, so the G24 row gets a Mac version.
  • When locked, no window shows anything from the vault, including in Mission Control, App Exposé and the Dock's window previews.
  • No state restoration that writes window contents to disk.
  • No Handoff, Quick Look or Share extensions for items.
  • The Services menu and other system text services see nothing from Vault's fields, beyond what G52 already rules out.
  • Window titles never include an item's name, so the Window menu, Mission Control labels and accessibility tools show only "Vault".
  • Tests: unit tests for each window's sharing type and title, and a UI test that locks and checks the windows are empty.

Done when

Each of the above holds, and the Mac's rows are in docs/security-model.md, including any limit a Mac can't close.

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Fixed in https://github.com/badbundle/vault-app/pull/719 (merged as 594ce304).

  • While Hide While Recording is on (the default), every Vault window is kept out of screenshots, screen recordings, screen sharing and AirPlay, including its sheets and alerts. This applies to each window as it opens and again as it updates, so a change to the setting reaches every window.
  • No window is restorable or can become a tab. Minimising a window locks Vault first, so the Dock's image of it shows only the lock screen.
  • Window titles are only ever "Vault", "About Vault" or Settings', never an item's name. Nothing is offered to Handoff or Services.
  • docs/mac-app.md records this. docs/security-model.md adds G91 and G92, and two accepted limits: apps allowed to control the Mac can read its windows, and hiding windows from capture depends on macOS.
  • Mac UI tests: locking leaves no window showing anything from the vault, and an open item's name is never in the window's title.