Repository navigation
Let the 1Password extension unlock from the desktop app - #294
Open
scottjones wants to merge 3 commits into
Open
scottjones wants to merge 3 commits into
scottjones wants to merge 3 commits into
Conversation
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>
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. |
This branch has not been deployed
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.
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 theonepasswordgroup. The x86 package sets this up from its.installhooks. 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 stayedroot: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.shpasses (verified on an M2 Max, and with the architecture stubbed to x86)omarchy-install-1password;getent group onepasswordresolves andls -l /opt/1Password/1Password-BrowserSupportshowsroot onepasswordwith the setgid bit (-rwxr-sr-x)pgrep -af 1Password-BrowserSupportshows a live process while the extension is connected🤖 Generated with Claude Code
CI fix (aa9db25).
test/allwas failing onnot ok - installer creates the onepassword group. The installer exits at itsuname -mgate 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 stubsunamealongside thegetent/groupadd/chgrp/chmodstubs it already had, and passes both natively and with the architecture forced to x86.