Can an approval add an inspected host without breaking running tools?
Decided 2026-10-04: A. No per-set constraints, rotate with overlap. The decision and its reasons are in the I39I39 (closed): S09-policy-credentials-audit: CA name constraints and rotation versus live policy changes- S07-egress-gateway "Approvals": "Policy changes take effect without restarting anything." - S09-policy-credentials-audit "Scope": the CA has name constraints for the inspected hostnames, and "when the inspected set… comment that starts Decision (2026-10-04):. Source: I39I39 (closed): S09-policy-credentials-audit: CA name constraints and rotation versus live policy changes- S07-egress-gateway "Approvals": "Policy changes take effect without restarting anything." - S09-policy-credentials-audit "Scope": the CA has name constraints for the inspected hostnames, and "when the inspected set…. Affects S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host. and 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.. X04-tls-inspectionX04-tls-inspection: Inspection compatibilityGo-based, Swift-based, and Xcode clients accept a CA that only the guest trusts. may settle part of it.
The problem
Section titled “The problem”Figure 1. As 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. is written, the CA is name-constrained to the inspected hosts. Approving a new host means a new CA (CA 2), which wb-guestd installs. Tools that loaded their trusted CAs at start still know only CA 1. They reject every leaf wb-proxyd now signs (red path) until they restart. The 30-day rotation has the same effect on long sessions.
Options
Section titled “Options”Impact
Section titled “Impact”No SEC* control depends on the name constraints. The CA is trusted only inside guests, and the guest reaches no host other than through wb-proxyd.
Evidence
Section titled “Evidence”- verified “Policy changes take effect without restarting anything” (S07-17-approvals-and-learningS07-17-approvals-and-learning: Approvals and LearningHow an unknown destination reaches the user as an approval request, what an approval grants, and how learn mode collects names.).
- verified The CA is name-constrained to the inspected hosts and lives 30 days. A new CA is issued when that set changes (S09-07-ca-certificatesS09-07-ca-certificates: CA CertificatesThe profile and scope of each TLS inspection CA, the leaf certificates it signs, and its rotation., “Scope” and “Lifetimes”).
- verified The CA key is non-exportable in the Secure Enclave, and the CA is trusted only inside guests (S09-06-ca-keysS09-06-ca-keys: CA KeysHow the key of each TLS inspection certificate authority is made, stored and restored, and when a CA is valid., “Key”, and S09-07-ca-certificatesS09-07-ca-certificates: CA CertificatesThe profile and scope of each TLS inspection CA, the leaf certificates it signs, and its rotation., “Scope”).
- verified Node reads
NODE_EXTRA_CA_CERTSonly when the process starts (Node.js CLI docs,NODE_EXTRA_CA_CERTS). - verified Go loads the system roots once per process (
sync.Onceincrypto/x509/root.go, Go 1.27.1), and enforces name constraints when it verifies (crypto/x509/verify.go). - verified Conforming CAs must mark name constraints critical, and a client must reject a certificate with a critical extension it doesn’t recognize (RFC 5280, 4.2.1.10).
- inferred Python reads its CA bundle when it creates an SSL context. A long-lived client keeps the old CA until it makes a new context.
- inferred With the overlap of option A, a tool started before the new CA is installed works until
wb-proxydswitches to signing with the new CA. - assumed Java loads its trust store once per process. X04-tls-inspectionX04-tls-inspection: Inspection compatibilityGo-based, Swift-based, and Xcode clients accept a CA that only the guest trusts. can check it with the other clients.
- assumed Which guest clients pin certificates or reject a name-constrained CA. That is 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?).
What this unblocks
Section titled “What this unblocks”- The CA work in
wb-proxydfor V1-M3-network-floorV1-M3-network-floor: The network floorwb-netd and wb-proxyd in inspect mode with a static policy, the audit log, and the conformance cases for egress., and approvals that add an inspected host in V1-M5-approvalsV1-M5-approvals: Approvals and policyApprovals with notifications and wb approve, learn mode, credential bindings, the dependency gate, wb trust with the boundary check, wb policy explain, and the toolchain reconcile.. - The choice between A and C waits on nothing. 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?) settles only how long the overlap must be and which clients pin.
Details and glossary
How the overlap works. CA 1 is valid for 60 days. On day 30, wb-guestd installs CA 2 next to it, and new processes trust both. wb-proxyd keeps signing with CA 1 until day 58, then signs with CA 2. A process that started before day 30 and still runs on day 58 trusts only CA 1, and breaks. Every other process keeps working.
Glossary
- CA (certificate authority): a certificate whose key signs other certificates. Clients trust what it signs.
- Leaf certificate: the certificate for one host name that
wb-proxydpresents to the guest. - Name constraints: a field in a CA certificate that limits which host names it may sign for.
- Intermediate: a CA certificate signed by the root, which in turn signs leaves.
- Pinning: a client that accepts only a specific certificate or key for a host, whatever the trust store says.
- Secure Enclave: the hardware key store in Apple chips. A key made there can be used but never read out.