Add allowMachLookup config for XPC services (macOS)#92
Open
dvic wants to merge 1 commit intoanthropic-experimental:mainfrom
Open
Add allowMachLookup config for XPC services (macOS)#92dvic wants to merge 1 commit intoanthropic-experimental:mainfrom
dvic wants to merge 1 commit intoanthropic-experimental:mainfrom
Conversation
Adds a new network config option allowMachLookup that allows specifying additional XPC/Mach service names to permit in the sandbox. This enables tools like 1Password CLI that require access to services not in the default allowlist. Supports both exact matches and prefix wildcards: - Exact: "com.1password.helper" - Prefix: "2BUA8C4S2C.com.1password.*" Closes anthropic-experimental#83
|
Any progress on getting this merged? Also required for running Playwright E2E tests in the sandbox, since it uses Chromium mach lookup |
|
👍 Currently having to exclude |
|
I just wanted to +1 this because I assume this will fix an issue that currently, for iOS development, you can't run the simulator (eg. for agentic testing) in the sandbox environment as it requires at least the following XPC services via mach-lookup. I don't feel competent enough to judge, but it seems to me this PR would provide an appropriate fix. |
sysid
added a commit
to sysid/sandbox-runtime-improved
that referenced
this pull request
Mar 25, 2026
Allow users to specify additional XPC/Mach service names in the sandbox profile via a new `allowMachLookup` string array config option. Services ending with `*` use global-name-prefix (wildcard matching); others use global-name (exact match). Use case: tools like 1Password CLI that require specific Mach services not in the default allowlist. Source: anthropic-experimental#92
sysid
added a commit
to sysid/sandbox-runtime-improved
that referenced
this pull request
Mar 26, 2026
Allow users to specify additional XPC/Mach service names in the sandbox profile via a new `allowMachLookup` string array config option. Services ending with `*` use global-name-prefix (wildcard matching); others use global-name (exact match). Use case: tools like 1Password CLI that require specific Mach services not in the default allowlist. Source: anthropic-experimental#92
sysid
added a commit
to sysid/sandbox-runtime-improved
that referenced
this pull request
Mar 26, 2026
Allow users to specify additional XPC/Mach service names in the sandbox profile via a new `allowMachLookup` string array config option. Services ending with `*` use global-name-prefix (wildcard matching); others use global-name (exact match). Use case: tools like 1Password CLI that require specific Mach services not in the default allowlist. Source: anthropic-experimental#92
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.
Summary
allowMachLookupnetwork config option for specifying additional XPC/Mach service names to permit in the sandboxcom.1password.helper) and prefix wildcards (2BUA8C4S2C.com.1password.*)Test plan
allowMachLookup: ['2BUA8C4S2C.com.1password.*']allowMachLookup(can't connect to desktop app)Closes #83