trackslash
VAULT-115 P3 For an agent

Mac app: widgets, or decide not to

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

Description

Part of VAULT-101, after the first Mac release (VAULT-114). It's not needed to ship.

Code widgets for the Mac's desktop and Notification Center, from the shared iOS widget code where it can be reused.

  • With the App Lock Password always on, iOS widgets show Vault as locked (G44). Decide in docs/mac-app.md whether Mac widgets are worth building at all under that rule. If not, close this with the reason.
  • If they're built, they follow every iOS widget rule:
    • no locked or hidden codes (G45);
    • codes hidden while the Mac is locked;
    • copying needs the Mac unlocked;
    • widget settings list no codes while the password is on (G44).

Done when

Mac widgets ship under those rules, or the design doc records why there are none.

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

2
Bradley

Done in #738, merged 2026-10-11 as 5c03f973 after a full make validate with the Mac UI tests.

The Mac has iOS's widget (small size), built from the same code: VaultiOSWidgets and VaultiOSShared now also build for macOS, and only where the codes come from differs.

  • Codes: while Vault is unlocked, the app hands the widget extension the next five minutes of each time-based code a widget may show, refreshed every 2.5 minutes. Never a secret, a locked or hidden item, or an HOTP code.
  • Where they're kept: a keychain item, readable only while the Mac is unlocked and never synced, in 442P244AFS.com.badbundle.vault.widgets, which only the app and the widget extension have.
  • Taking them back: any lock takes them back, and so do quitting, every launch and an erase. If the delete fails, the item is replaced with an expired one, and the app tries again.
  • No App Group: the widget extension has none, because every App Group is also a keychain access group. local-check.config.ts and an in-app test check that. The same exposure on iOS is VAULT-129.
  • Copying: copying asks for the Mac to be unlocked. The widget leaves a note (never the code) in the widgets' keychain group and posts a Darwin notification, and the app clears the copy like its own.
  • Docs: decision 9 and the Widgets section in docs/mac-app.md; G98, plus the Mac's G44/G45 lines, in the security model; hand checks in RELEASE.md.

Still open for Bradley:

  • With a duress vault open, a widget set up for another vault's code shows "Unavailable", as for a deleted code. It's recorded as an accepted limit.
  • Is the 5-minute window, refreshed every 2.5 minutes, right?
  • The extension's name is "Vault Widgets".
  • The App Store needs a Mac distribution profile for com.badbundle.vault.Widgets (VAULT-114).
Bradley

Bradley's decision (2026-10-11): build them. The Mac gets the same widgets as iOS, sharing as much of the widget code as possible.

The Mac's App Lock Password is always on, so G44 as written would only ever show Locked. On the Mac instead:

  • While Vault is unlocked, the app hands the widgets the next one-time codes for the items they show, never the secrets. Every lock wipes them, and the widgets show Locked.
  • Every other widget rule stays (G45, G50).
  • iOS doesn't change.

docs/mac-app.md (decision 9) and docs/security-model.md change in the same PR. It merges once its full validation, Mac UI tests included, is green.