Do the guest's tools accept the inspection CA?
Answered 2026-10-08: no. Decided 2026-10-10: A, accept it. The decision and its reasons are in the I185I185 (closed): Decide how wb-guestd makes a macOS guest trust the per-VM CAX04-tls-inspection (#18) found that a root daemon in a macOS 27 guest can't make the system trust a CA without a user to confirm: comment that starts Decision (2026-10-10):. B is rejected on principle without the test that A proposed, and C isn’t viable. I185I185 (closed): Decide how wb-guestd makes a macOS guest trust the per-VM CAX04-tls-inspection (#18) found that a root daemon in a macOS 27 guest can't make the system trust a CA without a user to confirm: makes the spec change: it amends FR08-no-proxy-configFR08-no-proxy-config: No per-tool proxy settingsAllowlisted network destinations work for every tool without per-tool proxy configuration. and rewrites “Guest trust” in S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded.. Source: X04-tls-inspectionX04-tls-inspection: Inspection compatibilityGo-based, Swift-based, and Xcode clients accept a CA that only the guest trusts. (I18I18 (closed): X04-tls-inspection: Inspection compatibilityDo Go-based, Swift-based, and Xcode clients accept the name-constrained Wraith Box CA when it is trusted only in the guest?). Changes S09-08-guest-trustS09-08-guest-trust: Guest TrustHow wb-guestd makes the guest's clients trust the VM's CAs., and the day-60 step and one sentence of “Lifetimes”), S13-guest-confinementS13-guest-confinement: Guest ConfinementControls inside the guest that narrow what a project user's processes can do, and tell the host which program opened each connection. (the read allowlist), S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does. (the toolchain user’s environment), S07-07-hosts-and-modesS07-07-hosts-and-modes: Hosts and ModesHow wb-proxyd binds a stream to its name, which upstream addresses it refuses, and the inspect, pass and audit modes. (“Modes, per host”, pass), S12-platformsS12-platforms: PlatformsWhich host and guest operating systems Wraith Box targets, how platform-specific code is isolated, what each platform uses, and how wb works inside WSL. (the macOS “CA trust” cell) and S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq… (the spike list). Follow-up: I213I213 (open): Attended guest setup: let the maintainer confirm CA trust in the guest UIFollow-up to the decision on #185 (option A, accept that URLSession and pip's truststore reject inspected hosts). (an attended step in which the maintainer confirms trust in the guest UI).
Figure 1. wb-guestd can write the trust files and variables, and the tools that read them accept the leaf from wb-proxyd. The system trust store refuses the CA without a user, so URLSession clients reject inspected hosts (X04-tls-inspectionX04-tls-inspection: Inspection compatibilityGo-based, Swift-based, and Xcode clients accept a CA that only the guest trusts., answer 1).
Decision: URLSession clients on a macOS guest (I185)
Section titled “Decision: URLSession clients on a macOS guest (I185)”Impact
Section titled “Impact”Evidence
Section titled “Evidence”- verified
security add-trusted-cert -d,security authorizationdb write,trust-settings-import, user domain trust andprofiles installare all refused as root without a user, on macOS 27.0.1. Spike branch,results/g1-requests.jsonl(trust.sh,trust-probe.sh,trust-supported.sh). - verified With every variable set, the Swift URLSession client and a SwiftPM binary target download reject the leaf, and every other client accepts it.
results/matrix-vars.jsonl,results/extras.txt. - verified Which single variable each client needs.
results/matrix-only-*.jsonl, X04-tls-inspectionX04-tls-inspection: Inspection compatibilityGo-based, Swift-based, and Xcode clients accept a CA that only the guest trusts., table. - verified A bundle without the public roots breaks pass hosts for curl, Go, and Python.
results/extras.txt. - verified Only Python’s
requestsaccepted the successor CA in a process started before its install. Go, Node,urllib, Ruby and Java didn’t.results/reread.txt. - verified None of the clients that could be tested pins. URLSession and Xcode couldn’t be tested for pinning.
results/matrix-vars.jsonl. - inferred Apple pins its own hosts: trustd’s pinning rules in the guest list software update,
xcode-cdn.apple.com,mesu.apple.comand others, so they would refuse an inspected leaf even with the CA in the system store. The spike couldn’t put it there.results/pinning-rules.txt. - inferred The six variables S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded. names work as a set. The spike ran eight together and each one alone, never these six alone.
- assumed Option B works: that
add-trusted-certsucceeds once the rule allows root, that trustd’s entitlement check doesn’t refuse it, that the rule is still there after a reboot and a macOS update, and that other users still need an admin. Untried, it needs a VM test (I185I185 (closed): Decide how wb-guestd makes a macOS guest trust the per-VM CAX04-tls-inspection (#18) found that a root daemon in a macOS 27 guest can't make the system trust a CA without a user to confirm:). - assumed Claude Code reads its trust once at start, like Node. It couldn’t be run in a loop without an API key.
- assumed The Java trust store of S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded. works: built by
wb-guestdfrom the bundle, without a password. The spike tested the JDK’s own roots plus the CA, built withkeytool, with a password.
What it unblocks
Section titled “What it unblocks”wb-guestd’s CA install and the trust variables (S09-08-guest-trustS09-08-guest-trust: Guest TrustHow wb-guestd makes the guest's clients trust the VM's CAs.).wb-proxydleaf issuing, which X04-tls-inspectionX04-tls-inspection: Inspection compatibilityGo-based, Swift-based, and Xcode clients accept a CA that only the guest trusts. blocked indocs/implementation-plan.md.- I185I185 (closed): Decide how wb-guestd makes a macOS guest trust the per-VM CAX04-tls-inspection (#18) found that a root daemon in a macOS 27 guest can't make the system trust a CA without a user to confirm:, which decides URLSession clients on macOS guests.
Details and glossary
How the spike ran. A macOS 27 guest from the X17-image-buildX17-image-build: Unattended image buildCan a macOS guest installed from an Apple restore image get past Setup Assistant, with wb-guestd running as a root LaunchDaemon, without SSH, scripted clicks, or MDM? image, with the Xcode command line tools, Xcode 27.0 and Homebrew. A Go relay in the guest took the place of wb-proxyd, and pf in the guest sent every process’s port 443 to it, so no tool had proxy settings. The relay signed a 24-hour leaf for each name with a CA of the S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded. profile, without name constraints. Each client ran three ways: without the CA anywhere, with all variables set, and with one variable at a time.
Why “no”. The question names Swift-based and Xcode clients. Xcode’s package resolution passes, because it clones over git. URLSession, the HTTP client of Apple’s frameworks, reads only the system trust store, and nothing could put the CA there.
Glossary.
- CA (certificate authority): the certificate that signs others. A client accepts a server’s certificate when a CA it trusts signed it.
- Leaf: the certificate a server shows.
wb-proxydsigns one per inspected host name. - Trust store: the list of CAs a client accepts. macOS keeps one for the system, and many tools read their own file instead.
- Trust variable: an environment variable that points a tool at a CA file, such as
SSL_CERT_FILE. - Pinning: a client accepts only the certificates it expects for a host, whatever CAs it trusts.
- URLSession: Apple’s HTTP client, used by Swift programs and Apple’s tools.
- Authorization right: a rule in macOS’s authorization database that says who may do a protected action, here change trust settings.
- MDM: mobile device management, Apple’s remote management of devices, which can install profiles without a click.