Skip to content

grans sync on macOS fails with a Granola keychain error instead of telling you to sign in #91

Description

@dmwyatt

After #89/#90, grans sync on a machine that has never run grans auth login still falls through to Granola's own token store. On macOS that read cannot succeed: Granola's data-encryption key lives in the data-protection keychain, reachable only by Granola's code signature.

The user sees:

Failed to read the 'Granola Safe Storage' password from the macOS Keychain. Ensure Granola is installed and allow access when prompted, or pass --token.

Both suggestions in that message are dead ends on current macOS builds, and it never mentions grans auth login, which is the one thing that fixes it.

grans should not attempt a read it can never complete. On macOS the chain should end after grans's own credentials with an error naming the remedy, and the macOS safeStorage decryption code becomes unreachable and should go with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio: p1High priority, address soonsize: sSmall, quick fixstatus: readyReady to be worked ontype: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions