---
title: "Configuration"
description: "Every environment variable the Desktop Notary reads, its default, and which platform it applies to."
source: "EQTY Notary"
---
The daemon reads its configuration from the process environment once, at startup. Where to set
it depends on the platform:

| Platform | Where                                                                                         |
| -------- | --------------------------------------------------------------------------------------------- |
| Linux    | A systemd drop-in: `sudo systemctl edit eqty-notary`, then `Environment=NAME=value` lines under `[Service]`. |
| macOS    | The `EnvironmentVariables` dictionary in `/Library/LaunchDaemons/com.eqty.notary.plist`, then `bootout` and `bootstrap` the job. See [Install on macOS](../install/macos.mdx#3-configure). |
| Windows  | The `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

| Variable                  | Default                                 | Purpose                                                                                                   |
| ------------------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| `EQTY_SOCKET`             | `/var/run/eqty-notary/eqty-notary.sock` | The Unix socket path. Linux and macOS.                                                                    |
| `EQTY_SOCKET_MODE`        | `0666`                                  | The 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_UDS`        | unset                                   | Set to disable the Unix socket listener.                                                                  |
| `EQTY_DISABLE_TCP`        | unset                                   | Set to disable the loopback TCP listener.                                                                 |
| `EQTY_TCP_BIND`           | `127.0.0.1:8066`                        | The TCP bind address. PID-gated endpoints only work for peers on this host.                              |
| `EQTY_WELL_KNOWN_IP`      | `100.100.100.200`                       | The well-known address, aliased onto the loopback interface. Move it if your Tailscale tailnet uses it.  |
| `EQTY_WELL_KNOWN_PORT`    | `8066`                                  | The port served on the well-known address. Not 80, which Kubernetes ingress host ports capture on every local address. |
| `EQTY_DISABLE_WELL_KNOWN` | unset                                   | Set to `1` to neither serve nor alias the well-known address.                                            |
| `EQTY_ACCEPT_NETNS_PEERS` | `1` in the `.deb` unit, else off        | Linux 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

| Variable              | Default                 | Purpose                                                                                                                             |
| --------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `EQTY_AUTO_REGISTER`  | `1` in the packages, else off | Mint 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_SCOPE`      | `container`             | Linux 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_BY`    | unset                   | Overrides the `operatedBy` DID that `/get_dids` reports. Set but empty names no operator.                                           |
| `EQTY_KEY_GUARDIAN_URL` | `https://key-guardian.dev.eqtylab.io` in the Linux unit | Linux 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.json` | Where the identity credential is published, mode `0644`, for non-root verifiers. The parent directory is not created.    |

## State and logs

| Variable                       | Default                             | Purpose                                                                                        |
| ------------------------------ | ----------------------------------- | ---------------------------------------------------------------------------------------------- |
| `EQTY_STATE_DIR`               | `/var/lib/eqty-notary`              | The state root, mode `0700`. Also the subtree the key guard protects.                          |
| `EQTY_KEYS_DIR`                | `/var/lib/eqty-notary/keys`         | TPM key blobs, `<hex>.tpm`. Linux.                                                             |
| `EQTY_ATTESTATION_DIR`         | `/var/lib/eqty-notary/attestation`  | The startup attestation bundle: the AK, the quote, the IMA replay. See [Credentials](./credentials.mdx#what-sits-beside-the-credential). |
| `EQTY_LOG_DIR`                 | `/var/log/eqty-notary`              | Per-process [audit logs](./audit-log.mdx).                                                     |
| `EQTY_AUDIT_MAX_FILE_BYTES`    | `67108864` (64 MiB)                 | Maximum size of one process log. Later events count as dropped.                                |
| `EQTY_AUDIT_MAX_TOTAL_BYTES`   | `1073741824` (1 GiB)                | Maximum total audit-log bytes in the directory.                                                |
| `EQTY_AUDIT_RETENTION_DAYS`    | `7`                                 | Expired, inactive logs are removed at startup and hourly.                                      |

## TPM and observer

Linux only.

| Variable               | Default                                      | Purpose                                                                                       |
| ---------------------- | -------------------------------------------- | --------------------------------------------------------------------------------------------- |
| `EQTY_TPM_TCTI`        | `device:/dev/tpmrm0`                         | The 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.o`  | The 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.

| Variable                  | Default                                        | Purpose                                                                                            |
| ------------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| `EQTY_KEY_GUARD_BPF`      | `/usr/local/lib/eqty-notary/key_guard.bpf.o`   | The compiled key-guard object.                                                                     |
| `EQTY_GUARD_KEYS_DIR`     | the value of `EQTY_STATE_DIR`                  | The subtree the hook protects.                                                                     |
| `EQTY_GUARD_PERMISSIVE`   | unset                                          | Set to `1` to load the hook in log-only mode. For a first rollout.                                 |
| `EQTY_REQUIRE_KEY_GUARD`  | unset                                          | Set to `1` to fail startup unless the hook loads.                                                  |
| `EQTY_GUARD_TPM_DEVICE`   | unset                                          | Set 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](../../notary-backed-vtpm/index.mdx). Linux and macOS; `EQTY_VTPM_PCRS` and the TPM device
rule do not apply on macOS.

| Variable                    | Default                                                        | Purpose                                                                                     |
| --------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `EQTY_VTPM`                 | on                                                             | Set to `0` to turn vTPMs off.                                                               |
| `EQTY_VTPM_DIR`             | `/var/lib/eqty-notary/vtpm`                                    | vTPM state and sealed keys, mode `0700`, guarded on Linux.                                  |
| `EQTY_VTPM_RUN_DIR`         | `/var/run/eqty-notary/vtpm`                                    | The 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](/notary-backed-vtpm/) fork. |
| `EQTY_VTPM_ALLOWED_HASHES`  | unset                                                          | Comma-separated BLAKE3 hashes. When set, the swtpm and any libtpms it maps must match one. |
| `EQTY_VTPM_PCRS`            | unset                                                          | Host PCRs, SHA-256 bank, that the vTPM state keys are sealed to, for example `7,8`. TPM only. |
| `EQTY_VTPM_BACKING`         | `identity` with the fork's swtpm, else `none`                  | The default for new vTPMs: `none`, `identity` (IAK and AKs held by the host root) or `all-signing`. |
| `EQTY_VTPM_EPS`             | `1` with the fork's swtpm, else `0`                            | `1` derives each new vTPM's endorsement seed from the host root instead of storing it.      |
| `EQTY_VTPM_OWNER_OPS`       | `show,start,stop`                                              | Which operations a vTPM's owner may run on it without root. Empty means root only.         |