Repository navigation
fix(claude): let sandboxed tools verify TLS and run Terraform plugins - #119
Merged
Merged
Conversation
…ervice The sandbox blocked com.apple.trustd.agent, so every client that verifies TLS through Security.framework failed with x509: OSStatus -26276 unless it ran unsandboxed or had SSL_CERT_FILE set. enableWeakerNetworkIsolation allows the trust service, at the cost of a path outside the network proxy.
…dbox Terraform and TFLint fetch providers from registry.terraform.io and releases.hashicorp.com, and their plugins handshake over a Unix socket in TMPDIR. Projects point TMPDIR at ~/.cache/terraform-tmp for those tools, so the sandbox allows sockets in that one directory.
0xA3B
force-pushed
the
fix/claude-sandbox-tls
branch
from
November 11, 2026 00:41
d46cba1 to
4ad26a7
Compare
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.
Sandboxed commands could not verify TLS through macOS's Security.framework, and Terraform tooling
could not download providers or start its plugins inside the sandbox.
Solution
enableWeakerNetworkIsolationlets sandboxed commands reach the macOS trust service,com.apple.trustd.agent. Without it, Go tools such asgh, and other clients that verify TLSthrough Security.framework, fail with
x509: OSStatus -26276. Sandboxedghtherefore no longerneeds
SSL_CERT_FILE. The user instructions now tell the agent to rerun any tool, not onlygh,outside the sandbox when it hits that error.
registry.terraform.ioandreleases.hashicorp.com.allowUnixSocketsallows Unix sockets only in~/.cache/terraform-tmp, the directory thatprojects use as TMPDIR for Terraform and TFLint, whose plugins handshake over a socket.
Review notes
that trade-off.
these settings, a socket binds and connects in
~/.cache/terraform-tmpbut not in~/.cache, sothe
~expands. Sandboxedgh apisucceeds withSSL_CERT_FILEunset.