trackslash
VAULT-112 P2 For an agent

Mac app: AutoFill one-time codes

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

Description

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

Fill one-time codes into Safari and other apps on the Mac, as the iOS AutoFill extension does.

  • Check first what macOS 26 allows a third-party credential provider to do for one-time codes (ProvidesOneTimeCodes). Record it in docs/mac-app.md.
  • A credential provider extension for the Mac, sharing the App Group and keychain access group with the app, and nothing else:
    • it asks for the App Lock Password in its own sheet, after Touch ID or the Mac's password (G25, G48);
    • its attempts are counted with the app's, and it never makes the tenth, so it never erases (G20);
    • it locks when the Mac locks (G29);
    • it never offers locked or hidden codes (G47).
  • Its sheet: the same search as iOS AutoFill, which doesn't check killphrases (G2). It's covered while the screen is captured (G24).
  • Tests: unit tests that match the iOS AutoFill service's, and a manual check in Safari that goes in RELEASE.md's device checks.

Done when

One-time codes fill from Vault on the Mac, under the same rules as iOS AutoFill, or the design doc records why macOS doesn't allow it.

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

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

  • macOS 15 and later let a credential provider extension fill one-time codes, with the same API as iOS 18. docs/mac-app.md records this.

  • The new VaultMacAutofill extension follows the iOS AutoFill rules:

    • its sheet asks for Touch ID or the Mac's password, then the App Lock Password;
    • its attempts are counted with the app's, and it never makes the last attempt before an erase;
    • it locks when the Mac locks and at the end of every request;
    • it never offers a locked or hidden code, and its search never checks killphrases;
    • Hide While Recording keeps it out of captures.

    With the system's list of codes empty, nothing is filled without the sheet.

  • The extension only reads the vault as the app left it.

  • Signing: a "Vault Mac AutoFill Development" profile was made in the developer account for com.badbundle.vault.VaultAutofill (it expires on 5 October 2027). VAULT-114 has a note that the App Store build needs a distribution profile for it too.

  • The app's own keychain group is now separate from the App Group, as on iOS, and the extension's only group is the App Group. The entitlements check in make validate now covers the extension too.

  • RELEASE.md gains a Safari check. docs/security-model.md adds G95 and updates G84.