EQTY LabDocs

Install on macOS

Install the Secure Enclave-backed .pkg, configure the launchd job, verify it, and update or remove it.

View as Markdown

On macOS the notary runs as a launchd system daemon with its keys in the Secure Enclave. No kernel configuration is needed. You need:

  • A Mac with Apple silicon or a T2 chip. The package is built for the architecture it was built on; releases are arm64.
  • An admin account.

1. Install

From the .pkg attached to the vcomp-notary-desktop release:

sh
sudo installer -pkg eqty-notary-{{VERSION}}-macos-arm64.pkg -target /

The package lays down:

PathWhat
/usr/local/bin/eqty-notaryThe daemon
/usr/local/bin/eqty-notaryctlThe command line
/Library/LaunchDaemons/com.eqty.notary.plistThe launchd job
/var/run/eqty-notary/The Unix socket; recreated each boot
/var/log/eqty-notary/eqty-notary.log and .err, plus the per-process audit logs
/var/lib/eqty-notary/State: attestation, vTPM state, mode 0700

Its preinstall script boots out any previous instance so upgrades replace cleanly, and postinstall bootstraps the job with RunAtLoad and KeepAlive. The daemon runs as root: only root sees every PID in proc_listallpids, which the observer needs.

Persistent Secure Enclave keys are wrapped blobs in the System keychain, readable only by code matching the daemon’s designated requirement. The release package is signed with EQTY’s Developer ID, so its keys survive upgrades.

2. Verify

sh
# the job and the environment it sees
sudo launchctl print system/com.eqty.notary | grep -A20 environment

# the listeners came up
log show --predicate 'process == "eqty-notary"' --last 5m | grep "listener up"

# ready: the notary's own credential exists
curl -s http://127.0.0.1:8066/v1/isReady

# the socket exists
ls -l /var/run/eqty-notary/eqty-notary.sock

If isReady stays pending, the startup attestation did not complete. Look for SK provenance skipped in /var/log/eqty-notary/eqty-notary.err.

3. Configure

The daemon reads its configuration from the process environment once, at startup. Under launchd that is the plist’s EnvironmentVariables dictionary; there is no drop-in layer as with systemd. The package sets EQTY_AUTO_REGISTER=1, as the Linux package does.

To change a setting on an installed host, edit the plist and reload the job:

sh
sudo vi /Library/LaunchDaemons/com.eqty.notary.plist
sudo launchctl bootout   system /Library/LaunchDaemons/com.eqty.notary.plist
sudo launchctl bootstrap system /Library/LaunchDaemons/com.eqty.notary.plist

Or with plutil, for example to require registration:

sh
P=/Library/LaunchDaemons/com.eqty.notary.plist
sudo plutil -replace EnvironmentVariables.EQTY_AUTO_REGISTER -string 0 "$P"
sudo launchctl bootout system/com.eqty.notary
while sudo launchctl print system/com.eqty.notary >/dev/null 2>&1; do sleep 1; done
sudo launchctl bootstrap system "$P"

The while line waits until launchd has unloaded the old daemon. Without it, bootstrap can fail with Bootstrap failed: 5: Input/output error.

Upgrading the package replaces the plist, so repeat any edits after an upgrade. The full list of variables is on the Configuration page. EQTY_TPM_TCTI, EQTY_KEY_GUARDIAN_URL, EQTY_VTPM_PCRS and the key-guard settings have no effect on macOS.

What the notary issues here

The macOS notary is Secure Enclave-backed and has no attestation key: there is no TPM to quote. Its identity credential is a VCompSecureEnclaveV1 carrying the daemon binary’s CID and a host-reported code identity (CDHash, team ID, signing ID, hardened runtime, SIP status). Apple does not attest Secure Enclave keys for daemons, so this root is self-reported. See Credentials.

Update

Install the newer package over the old one. preinstall boots the old instance out and postinstall re-bootstraps. Keys and state under /var/lib/eqty-notary and in the System keychain persist, so registered binaries keep their DIDs.

sh
sudo installer -pkg eqty-notary-{{VERSION}}-macos-arm64.pkg -target /

Uninstall

sh
sudo launchctl bootout system /Library/LaunchDaemons/com.eqty.notary.plist
sudo rm /Library/LaunchDaemons/com.eqty.notary.plist /usr/local/bin/eqty-notary /usr/local/bin/eqty-notaryctl
sudo rm -rf /var/run/eqty-notary /var/log/eqty-notary
sudo pkgutil --forget com.eqty.notary

To remove the keys and state too, which destroys every notary key and DID on this Mac, also run sudo eqty-notary --wipe-keys before deleting the binary, then sudo rm -rf /var/lib/eqty-notary.

Troubleshooting

SymptomCause and fix
/v1/isReady stays pending, /v1/credential is 503The startup attestation did not complete. Check eqty-notary.err for SK provenance skipped.
/v1/sign returns 403The caller is not tracked: its binary was not registered, or it was already running before registration. With auto-registration off, register it and start a fresh process.
The process credential shows the daemon’s details, not the caller’sThe daemon must be root to read another process’s environment. The packaged job is.
Tracked child PIDs vanishA known kqueue NOTE_TRACK quirk; see macos/QUIRKS.md in the repository.
Environment changes did not takelaunchd reads the environment at process start only. bootout then bootstrap.
The daemon exits at startupBoth EQTY_DISABLE_UDS and EQTY_DISABLE_TCP are set. Leave at least one listener on.
OSStatus -25293 in the logA differently signed daemon is trying to use keys another signature created. See the note above.