Skip to content

sandbox: allow system trust evaluation online - #24126

Merged
MikeMcQuaid merged 1 commit into
mainfrom
sandbox-system-trust
Sep 29, 2026
Merged

MikeMcQuaid merged 1 commit into
mainfrom
sandbox-system-trust

Conversation

@MikeMcQuaid

Copy link
Copy Markdown
Member
  • Allow com.apple.trustd for TLS trust evaluation in online builds.
  • Keep it denied offline, including with local socket exceptions, because trust evaluation can fetch certificates and revocation data.
  • Cover the online allowance and offline restrictions with tests.

Fixes #24124


  • Have you followed our Contributing guidelines?
  • Have you checked for other open Pull Requests for the same change?
  • Have you explained what your changes do? Performance claims (e.g. "this is faster") must include brew benchmark results.
  • Have you explained why you'd like these changes included, not just what they do?
  • For bug fixes, have you given step-by-step brew commands to reproduce the bug?
  • Have you written new tests (excluding integration tests)? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) locally?

  • I did not use AI/LLM to create this PR, or I disclosed the tool/model below and reviewed its output; I did not attribute commits to AI and will answer maintainer questions and review comments myself without AI/LLM.

Codex with GPT 6 Astra at Medium effort, with local review and testing.


- Allow `com.apple.trustd` for TLS trust evaluation in online builds.
- Keep it denied offline, including with local socket exceptions,
  because trust evaluation can fetch certificates and revocation data.
- Cover the online allowance and offline restrictions with tests.

Fixes #24124
@MikeMcQuaid
MikeMcQuaid requested a review from a team as a code owner September 29, 2026 18:19
Copilot AI lite review requested due to automatic review settings September 29, 2026 18:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

馃煝 Approval recommended

No unresolved review comments; the changes and tests cover the stated behavior.

Review effort: Lite
Findings: None

What changed in this PR

Enables com.apple.trustd for macOS online sandboxed builds while preserving offline restrictions.

Changes:

  • Conditionally permits trust daemon access when networking is enabled.
  • Adds tests for online access and offline/socket-exception restrictions.
File Description
Library/鈥婬omebrew/鈥媡est/鈥媠andbox_spec.rb Tests online and offline trust evaluation behavior.
Library/鈥婬omebrew/鈥媏xtend/鈥媜s/鈥媘ac/鈥媠andbox.rb Adds conditional trust daemon access.

馃挕 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@MikeMcQuaid
MikeMcQuaid added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit 0598628 Sep 29, 2026
53 checks passed
@MikeMcQuaid
MikeMcQuaid deleted the sandbox-system-trust branch September 29, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build sandbox denies mach-lookup to com.apple.trustd, so system trust evaluation fails in source builds (OSStatus -26276)

4 participants