EQTY LabDocs

Configuration

Every environment variable the Desktop Notary reads, its default, and which platform it applies to.

View as Markdown

The daemon reads its configuration from the process environment once, at startup. Where to set it depends on the platform:

PlatformWhere
LinuxA systemd drop-in: sudo systemctl edit eqty-notary, then Environment=NAME=value lines under [Service].
macOSThe EnvironmentVariables dictionary in /Library/LaunchDaemons/com.eqty.notary.plist, then bootout and bootstrap the job. See Install on macOS.
WindowsThe EqtyNotary service’s Environment registry value.

The Linux unit and the macOS plist are kept in step: a setting in one has the same value in the other, unless it has no counterpart on that OS.

Listeners

VariableDefaultPurpose
EQTY_SOCKET/var/run/eqty-notary/eqty-notary.sockThe Unix socket path. Linux and macOS.
EQTY_SOCKET_MODE0666The socket’s file mode. Any local user can connect; tracking is enforced by peer credentials, not socket ACLs. Set 0660 and a shared group to restrict the connect set anyway.
EQTY_DISABLE_UDSunsetSet to disable the Unix socket listener.
EQTY_DISABLE_TCPunsetSet to disable the loopback TCP listener.
EQTY_TCP_BIND127.0.0.1:8066The TCP bind address. PID-gated endpoints only work for peers on this host.
EQTY_WELL_KNOWN_IP100.100.100.200The well-known address, aliased onto the loopback interface. Move it if your Tailscale tailnet uses it.
EQTY_WELL_KNOWN_PORT8066The port served on the well-known address. Not 80, which Kubernetes ingress host ports capture on every local address.
EQTY_DISABLE_WELL_KNOWNunsetSet to 1 to neither serve nor alias the well-known address.
EQTY_ACCEPT_NETNS_PEERS1 in the .deb unit, else offLinux only. Resolve TCP callers in other network namespaces on this host, such as pods reaching the well-known address. Callers on other hosts are never resolved.

At least one of the Unix socket and TCP must stay enabled. With both disabled the daemon refuses to start.

Registration and identity

VariableDefaultPurpose
EQTY_AUTO_REGISTER1 in the packages, else offMint a key for any calling binary on its first /v1/sign or /v1/credential, instead of returning 403. Any local process that can reach the notary then gets a key. Set 0 to require POST /v1/registrations first.
EQTY_KEY_SCOPEcontainerLinux only. container gives a caller in a container a key of its own for each binary and container, so the DID belongs to that container alone. binary shares one key per binary across every container and the host. Callers outside a container always use the binary’s key. Also --key-scope=.
EQTY_OPERATED_BYunsetOverrides the operatedBy DID that /get_dids reports. Set but empty names no operator.
EQTY_KEY_GUARDIAN_URLhttps://key-guardian.dev.eqtylab.io in the Linux unitLinux only. The EQTY Key Guardian that certifies the attestation key on first start. Comment out to run without certification, as a guest notary on a vTPM should.
EQTY_PUBLIC_CREDENTIAL_PATH/run/eqty-notary/credential.jsonWhere the identity credential is published, mode 0644, for non-root verifiers. The parent directory is not created.

State and logs

VariableDefaultPurpose
EQTY_STATE_DIR/var/lib/eqty-notaryThe state root, mode 0700. Also the subtree the key guard protects.
EQTY_KEYS_DIR/var/lib/eqty-notary/keysTPM key blobs, <hex>.tpm. Linux.
EQTY_ATTESTATION_DIR/var/lib/eqty-notary/attestationThe startup attestation bundle: the AK, the quote, the IMA replay. See Credentials.
EQTY_LOG_DIR/var/log/eqty-notaryPer-process audit logs.
EQTY_AUDIT_MAX_FILE_BYTES67108864 (64 MiB)Maximum size of one process log. Later events count as dropped.
EQTY_AUDIT_MAX_TOTAL_BYTES1073741824 (1 GiB)Maximum total audit-log bytes in the directory.
EQTY_AUDIT_RETENTION_DAYS7Expired, inactive logs are removed at startup and hourly.

TPM and observer

Linux only.

VariableDefaultPurpose
EQTY_TPM_TCTIdevice:/dev/tpmrm0The TPM connection. swtpm:path=/var/run/swtpm.sock for a local swtpm; mssim:host=localhost,port=2321 for a simulator over TCP.
OBSERVER_BPF_OBJECT/usr/local/lib/eqty-notary/observer.bpf.oThe compiled observer BPF object.

Key guard

Linux only. The BPF LSM key guard stops any process but the daemon from opening the key blobs, even as root. It needs bpf in /sys/kernel/security/lsm; without it the daemon logs key-guard skipped and runs with file permissions and TPM sealing alone. GET / reports key_guard_active, and /v1/audit_status the per-hook state.

VariableDefaultPurpose
EQTY_KEY_GUARD_BPF/usr/local/lib/eqty-notary/key_guard.bpf.oThe compiled key-guard object.
EQTY_GUARD_KEYS_DIRthe value of EQTY_STATE_DIRThe subtree the hook protects.
EQTY_GUARD_PERMISSIVEunsetSet to 1 to load the hook in log-only mode. For a first rollout.
EQTY_REQUIRE_KEY_GUARDunsetSet to 1 to fail startup unless the hook loads.
EQTY_GUARD_TPM_DEVICEunsetSet to 1 so only the daemon may open /dev/tpm0 and /dev/tpmrm0. Also locks out tpm2-tools and systemd’s own TPM use.

vTPMs

See Hardware-rooted vTPMs. Linux and macOS; EQTY_VTPM_PCRS and the TPM device rule do not apply on macOS.

VariableDefaultPurpose
EQTY_VTPMonSet to 0 to turn vTPMs off.
EQTY_VTPM_DIR/var/lib/eqty-notary/vtpmvTPM state and sealed keys, mode 0700, guarded on Linux.
EQTY_VTPM_RUN_DIR/var/run/eqty-notary/vtpmThe vTPM sockets, <id>.sock and <id>.sock.ctrl, mode 0600, owned by the vTPM’s client.
EQTY_VTPM_SWTPM/opt/eqty/swtpm-notary/bin/swtpm, then /usr/local/lib/eqty-notary/swtpm, else /usr/bin/swtpm (/opt/homebrew/bin/swtpm on macOS)The swtpm binary. Backed keys and a hardware-derived seed need the swtpm-notary fork.
EQTY_VTPM_ALLOWED_HASHESunsetComma-separated BLAKE3 hashes. When set, the swtpm and any libtpms it maps must match one.
EQTY_VTPM_PCRSunsetHost PCRs, SHA-256 bank, that the vTPM state keys are sealed to, for example 7,8. TPM only.
EQTY_VTPM_BACKINGidentity with the fork’s swtpm, else noneThe default for new vTPMs: none, identity (IAK and AKs held by the host root) or all-signing.
EQTY_VTPM_EPS1 with the fork’s swtpm, else 01 derives each new vTPM’s endorsement seed from the host root instead of storing it.
EQTY_VTPM_OWNER_OPSshow,start,stopWhich operations a vTPM’s owner may run on it without root. Empty means root only.