anthropics / anthropics/sandbox-runtime

macOS: Add com.apple.trustd to mach-lookup allowlist (Go TLS broken)

Open
#125 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.2k
Forks
439
Avg merge
2d 9m
Merged PRs (30d)
13

Description

## Problem

Go-based CLI tools (e.g. `gh`, `terraform`, `kubectl`) fail with TLS certificate verification errors when running inside the macOS seatbelt sandbox:

```
Get "https://api.github.com/user": tls: failed to verify certificate: x509: OSStatus -26276
```

`OSStatus -26276` = `errSecInternalError` from `SecTrustEvaluateWithError`.

## Affected Tools

Any Go binary doing HTTPS: `gh`, `terraform`, `kubectl`, `helm`, `docker`, `cosign`, etc.

## Workaround

Currently using a curl-based shim for `gh` CLI calls, but this doesn't scale to other Go tools.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.