DEACONGUARD_ADMIN_USER | serve | Create this account, an admin, when the server has none. Ignored once any account exists. |
DEACONGUARD_ADMIN_PASSWORD_FILE | serve | The file with that account's password, such as a secret; one trailing newline is ignored. |
DEACONGUARD_ADMIN_PASSWORD | serve | The password itself, when there is no file. Prefer the file: the environment is easier to leak. |
DEACONGUARD_TRUSTED_PROXIES | serve | Comma-separated addresses or networks of reverse proxies, like --trusted-proxy. See Behind a reverse proxy. |
DEACONGUARD_ACCESS_LOG | serve | 1 or true writes a line to standard output for each request, like --access-log. On a server installed with the install script, set it with sudo systemctl edit deaconguard-server ([Service] then Environment=DEACONGUARD_ACCESS_LOG=1); in Docker Compose, under the server's environment. |
DEACONGUARD_CLUSTER_IMAGE_REGISTRY | serve | off stops the server reading the images clusters run from their registries: only builds node agents read from running containers are checked (1.20.1 and later). See Running images. |
DEACONGUARD_UPDATE_CHECK | serve | off stops the server asking get.deaconguard.io for the newest release's number, whatever Settings → New versions says (1.34.0 and later); the Helm chart's server.updateCheck: false sets it. See Knowing when there's a new release. |
DEACONGUARD_UPDATE_URL | serve | Where to read the newest release's number instead of https://get.deaconguard.io/stable.txt: an http or https address of a copy of that file, for networks without internet access (1.34.0 and later). |
DEACONGUARD_FEED_CACHE_MB | serve | Memory, in MB, for advisory feeds kept parsed between scans; 400 by default (at most 40% of a memory limit under 1 GB), 0 to parse for every scan. See Parsed feeds. |
GOMEMLIMIT | all | Go's soft memory limit, such as 700MiB. Without it, DeaconGuard sets one to 85% of the memory limit it runs under, a container's or a systemd unit's MemoryMax, if there is one (1.20.3 and later). |
DEACONGUARD_HOST_ROOT | the agent | Where the host's root filesystem is mounted, such as /host. Checks run there, with the host's own tools. |
DEACONGUARD_HOSTNAME | the agent | The name the agent reports, such as a Kubernetes node's name. Otherwise the host's /etc/hostname, with DEACONGUARD_HOST_ROOT, or the machine's name. |
DEACONGUARD_ENROLL_TOKEN_FILE, DEACONGUARD_ENROLL_TOKEN | agent run | A token to enroll with by itself. |