Skip to content

How do development builds without a signing identity keep their Keychain items and their CA key?

Answered 2026-10-13: yes between updates, no across an update, and no permanent Secure Enclave key. Decided 2026-10-15: 1D (1A until X29-dev-signingX29-dev-signing: Keychain access group for development buildsCan a developer's free personal team, an Apple ID signed in to Xcode without a paid membership, sign the helpers in Wraith Box.app (wb-proxyd, wb-hostd, wb-vmd) with a keychain-access-groups entitlement and a provisio…) and 2A. The decisions are in the I23I23 (closed): X09-keychain-unsigned: Keychain access without a signing identityDoes the fallback Keychain access model from S09-policy-credentials-audit work for an ad-hoc signed binary, and can such a binary create a Secure Enclave key? comment that starts Decision (2026-10-15):. The spec changes are I249I249 (closed): S09-policy-credentials-audit, S15-least-privilege: developer-signed builds and a wrapped Secure Enclave CA key, from B23-keychain-unsignedThe maintainer decided the two points of B23-keychain-unsigned on 2026-10-15, in the #23 comment that starts Decision (2026-10-15):., and the follow-up spike is X29-dev-signingX29-dev-signing: Keychain access group for development buildsCan a developer's free personal team, an Apple ID signed in to Xcode without a paid membership, sign the helpers in Wraith Box.app (wb-proxyd, wb-hostd, wb-vmd) with a keychain-access-groups entitlement and a provisio… (I248I248 (closed): X29-dev-signing: Keychain access group for development builds signed by a personal teamCan a developer's free personal team (an Apple ID signed in to Xcode, no paid membership) sign the helper binaries inside Wraith Box.app (wb-proxyd, wb-hostd, wb-vmd) with a keychain-access-groups entitlement and a…). Source: I23I23 (closed): X09-keychain-unsigned: Keychain access without a signing identityDoes the fallback Keychain access model from S09-policy-credentials-audit work for an ad-hoc signed binary, and can such a binary create a Secure Enclave key?, X09-keychain-unsignedX09-keychain-unsigned: Keychain access without a signing identityConfirm the fallback access-control model from S09-policy-credentials-audit and the Secure Enclave key creation for an ad-hoc signed binary.. Touches 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., S15-least-privilegeS15-least-privilege: Least Privilege on the HostThe security design for SEC12-least-privilege: which rights Wraith Box takes on the host, where credentials are held, and how each host process gets only the credentials it needs, for only as long as it needs them., S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice. and 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..

1. After an update (ad-hoc build)wb-proxydnew build hashkeychain file itemlist: old build hashesnot on the listdialog: keychain filepasswordthe user doesn’t know it2. CA key, this Mac onlywb-proxydstore itemwrapped keySecure Enclaveunwraps and signs

Figure 1. Left: the first decision. An ad-hoc signed binary is on an item’s list by its build hash (cdhash), so after an update no Wraith Box binary is on it and the Keychain asks for a password only Wraith Box knows (X09-keychain-unsignedX09-keychain-unsigned: Keychain access without a signing identityConfirm the fallback access-control model from S09-policy-credentials-audit and the Secure Enclave key creation for an ad-hoc signed binary.). Right: the second decision. The wrapped key is useless on another Mac, but any process of the user on this Mac that has it can sign.

Decision 1: keeping items across an update

Section titled “Decision 1: keeping items across an update”

D. Sign development builds with the developer’s certificate

Section titled “D. Sign development builds with the developer’s certificate”

Drop the keychain file. Development builds are signed with the developer’s own Apple Development certificate and a profile with a Keychain access group, as Secretive does, and use the same data protection keychain as release builds.

After an update, the binaries read with dialogs turned off, and a read fails at once. wb says the store must be set up again, and the user enters each binding again.

Before an update replaces the binaries, the old ones copy every item into a new keychain file whose lists name the new binaries, already on disk.

The user picks the keychain file’s password and answers one dialog per item and binary after each update.

RequirementD. Developer signedA. Fail closedB. Copy overC. Known password
SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts. each item reachable only by its declared processesby code signatureby build hashone reader of all during an updateany process can ask
SEC14-no-fake-approvalsSEC14-no-fake-approvals: Approvals cannot be spoofed by the guestApproval prompts are never rendered in the agent's terminal stream. a prompt is never an approvalno dialogsno dialogsno dialogsroutine dialogs
Work for the developer after an updatenoneall bindings againnoneone dialog per item
Generated items survivekeptlostcopiedkept

Decision 2: where the CA signing key is kept

Section titled “Decision 2: where the CA signing key is kept”

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. keeps the CA key in the Secure Enclave, with a software key in the store as the fallback. A permanent Secure Enclave key needs an entitlement, so it isn’t there for an ad-hoc build.

A. A wrapped Secure Enclave key in a store item, for every build

Section titled “A. A wrapped Secure Enclave key in a store item, for every build”

wb-proxyd makes a Secure Enclave key that isn’t stored in the Keychain, and stores its wrapped form (the token object ID) as the item ca/<vm>/<ca>. Later it hands the wrapped key back to the Secure Enclave to sign.

B. Software key for ad-hoc, permanent key for signed

Section titled “B. Software key for ad-hoc, permanent key for signed”

Ad-hoc builds use the software fallback key 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.. Signed builds make a permanent Secure Enclave key.

Details and glossary

Why the dialog asks for a password nobody knows. A Keychain file has its own password. S15-least-privilegeS15-least-privilege: Least Privilege on the HostThe security design for SEC12-least-privilege: which rights Wraith Box takes on the host, where credentials are held, and how each host process gets only the credentials it needs, for only as long as it needs them. gives the file a random one and keeps it in the login keychain, so Wraith Box can unlock the file without asking. When a binary that isn’t on an item’s list asks for the item, macOS asks the user to confirm with that file’s password, not the login password. The user never saw it.

Why signed builds don’t have the problem. With a Developer ID or Apple Development certificate, items go into the data protection keychain and are shared by an access group, which names the team, not a build. An update signed by the same team keeps access.

Glossary

  • Ad-hoc signed: signed without a certificate. The signature only records the binary’s hash.
  • cdhash: the hash of a binary’s code, which changes with every build.
  • Access-control list: the list of binaries that an item in a keychain file lets in without a dialog.
  • Access group: an entitlement that lets every binary of one team share Keychain items.
  • Secure Enclave: the Mac’s key hardware. Its keys can’t be read out.
  • Wrapped key (token object ID): a Secure Enclave key encrypted by this Mac’s Secure Enclave, which only that Secure Enclave can use.