Skip to content

Let the 1Password extension unlock from the desktop app - #294

Open
scottjones wants to merge 3 commits into
quattrofrom
1password-browser-integration
Open

scottjones wants to merge 3 commits into
quattrofrom
1password-browser-integration

Conversation

@scottjones

@scottjones scottjones commented Aug 29, 2026 •

Copy link
Copy Markdown
Collaborator

On aarch64 the 1Password browser extension could never reach the desktop app, so you had to sign in to both separately.

The extension talks to the app through 1Password-BrowserSupport, which 1Password only trusts when that binary is setgid to the onepassword group. The x86 package sets this up from its .install hooks. We install the official arm64 tarball instead, and while it ships the same logic in /opt/1Password/after-install.sh, nothing ever runs that script — so the group was never created and the helper stayed root:root 755.

This does the same setup the package hooks do. It also runs on the "already installed" path rather than exiting early, so machines installed before this get repaired by re-running the script.

Test plan

  • bash test/shell.d/install-1password-browser-support-test.sh passes (verified on an M2 Max, and with the architecture stubbed to x86)
  • On an aarch64 machine with 1Password already installed, run omarchy-install-1password; getent group onepassword resolves and ls -l /opt/1Password/1Password-BrowserSupport shows root onepassword with the setgid bit (-rwxr-sr-x)
  • Restart 1Password and the browser, lock the extension, unlock it — it unlocks via the desktop app instead of asking for the account password
  • pgrep -af 1Password-BrowserSupport shows a live process while the extension is connected

🤖 Generated with Claude Code


CI fix (aa9db25). test/all was failing on not ok - installer creates the onepassword group. The installer exits at its uname -m gate on anything but aarch64, so on x86 CI the test asserted against an installer that never ran — it only ever exercised anything on Apple Silicon. The test now stubs uname alongside the getent / groupadd / chgrp / chmod stubs it already had, and passes both natively and with the architecture forced to x86.

scottjones and others added 2 commits August 29, 2026 04:26
The browser extension talks to the desktop app through
1Password-BrowserSupport, which 1Password only trusts when it is setgid to
the onepassword group. The x86 package gets that from its .install
pre_install/post_install hooks. On aarch64 we unpack the official tarball
instead, which ships no hooks, so the group was never created and the helper
stayed root:root 755 — the extension could not reach the app and you signed
in to both separately.

Set it up the same way the package hooks do, and run it on the
already-installed path too, so an install predating this is repaired rather
than exiting early.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The installer exits at its `uname -m` gate on anything but aarch64, so on
x86 CI the test asserted against an installer that never ran and reported
"not ok - installer creates the onepassword group". It only ever exercised
anything on Apple Silicon.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@malik-na

malik-na commented Sep 9, 2026

Copy link
Copy Markdown
Member

Fresh and manually rerun installs are covered, but existing 1Password users will not rerun this command during update. Add an idempotent migration that creates the group and repairs the helper ownership and setgid mode.

@wesleygrimes wesleygrimes added the defer Parked. Needs a decision, or may die with the fork. Do not close or port yet. label Sep 12, 2026
@malik-na malik-na added the US label Sep 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

defer Parked. Needs a decision, or may die with the fork. Do not close or port yet. US

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants