Repository navigation
Read the Mac unattended 1Password token from SSH sessions - #44
Merged
Merged
Conversation
Over SSH, `security find-generic-password -w` finds the login Keychain item but exits 36 (errSecInteractionNotAllowed), so dotagents-op-run and every op:// reader failed with OP_UNATTENDED_TOKEN_UNREADABLE on the Mac. On exit 36, read through a one-shot launchd job bootstrapped into the same user's gui/<uid> domain. The job writes the token to a FIFO in a 0700 mkdtemp dir; the parent reads it with cat, then boots the job out and removes the dir. The token never touches disk, argv or logs; no root. Exit 44 still means "not stored". Feature map updated. Verified on macbook over SSH: direct read rc=36, unattendedToken() returns the 819-char token, no tmp dir or job left behind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Over SSH,
security find-generic-password -wfinds the login Keychainitem but exits 36 (errSecInteractionNotAllowed), so dotagents-op-run and
every op:// reader failed with OP_UNATTENDED_TOKEN_UNREADABLE on the Mac.
On exit 36, read through a one-shot launchd job bootstrapped into the
same user's gui/ domain. The job writes the token to a FIFO in a
0700 mkdtemp dir; the parent reads it with cat, then boots the job out
and removes the dir. The token never touches disk, argv or logs; no root.
Exit 44 still means "not stored". Feature map updated.
Verified on macbook over SSH: direct read rc=36, unattendedToken() returns
the 819-char token, no tmp dir or job left behind.
3 OS x 4 harness: only the darwin branch of the shared reader changes; Linux (systemd-creds) and Windows (DPAPI) paths are untouched. The reader is harness-independent (Claude Code, Codex, Grok, Cursor all reach it through dotagents-op-run / reporter / TypeSafe loader).
🤖 Generated with Claude Code