Skip to content

Unlink Chrome-Agent 1Password native host and add share-to-agent helper - #1058

Merged
johnnymo87 merged 2 commits into
mainfrom
agent-1p-vault
Dec 1, 2026
Merged

johnnymo87 merged 2 commits into
mainfrom
agent-1p-vault

Conversation

@johnnymo87

Copy link
Copy Markdown
Owner

Summary

  • Removes Chrome-Agent from home.activation.linkOnePasswordNativeHost in users/dev/home.darwin.nix (and removes any existing manifest at Chrome-Agent/NativeMessagingHosts/com.1password.1password.json on switch) so Chrome-Agent's 1Password extension runs standalone against a dedicated Agent vault.
  • Adds pkgs._1password-cli and share-to-agent (assets/scripts/share-to-agent.sh) on macOS to copy a single 1Password item into the Agent vault via op item get --format json --reveal -> jq -> op item create --vault Agent -, without printing secrets, and running op signout in an EXIT trap to end the ~10-minute op CLI session immediately.
  • Adds unit tests in scripts/test-share-to-agent.sh and wires them into .github/workflows/ci.yml.

Verification

  • bash scripts/test-share-to-agent.sh: 4/4 pass.
  • bash users/dev/test-unwired-tests.sh: pass.
  • shellcheck assets/scripts/share-to-agent.sh scripts/test-share-to-agent.sh: clean.
  • gitleaks detect --source . --no-git --redact --no-banner: 0 findings.
  • nix eval .#darwinConfigurations.Y0FMQX93RR-2.system --apply 'x: "ok"': ok.

- Remove Chrome-Agent from home.activation.linkOnePasswordNativeHost in
  users/dev/home.darwin.nix and clean up any existing manifest file/symlink
  so Chrome-Agent's 1Password extension can run standalone against a
  dedicated vault.
- Install pkgs._1password-cli and a share-to-agent helper on macOS to copy
  a single 1Password item into the Agent vault via interactive approval,
  without printing secrets, calling op signout on exit to close the CLI
  session immediately.
- Add unit tests in scripts/test-share-to-agent.sh and wire into CI.
@johnnymo87
johnnymo87 enabled auto-merge (squash) December 1, 2026 18:29
…ion guard

Rewrite echo "$out" | grep -q ... to grep -q ... <<<"$out" so the
pipefail-inversion check passes under set -o pipefail.

X-Shepherd-Wake: #1058
@johnnymo87
johnnymo87 merged commit ff7986d into main Dec 1, 2026
2 checks passed
@johnnymo87
johnnymo87 deleted the agent-1p-vault branch December 1, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant