Skip to main content

Environment variables

Install script​

VariableEffect
DEACONGUARD_TOKENInstall an agent and enroll it with this token. The script passes it to setup through a private temporary file, never on a command line.
DEACONGUARD_NAMEWith DEACONGUARD_TOKEN: the name the dashboard shows the host as, instead of its hostname.
DEACONGUARD_REGISTRY_USERNAME, DEACONGUARD_REGISTRY_PASSWORDA login for deaconguard image scan: a username and a token or password with pull access to the image's registry.
DEACONGUARD_REGISTRYThe registry host that login is for, such as registry.gitlab.com. When it is set, the login is sent to that registry only, never to another, such as Docker Hub for a public image. The GitLab template sets it to $CI_REGISTRY.
DEACONGUARD_VERSIONInstall this release, for example 1.35.0, instead of the latest.

Set them after the pipe, before sudo -E, which passes them on to the installer (as root, leave out sudo -E):

curl -fsSL https://get.deaconguard.io | DEACONGUARD_VERSION=1.35.0 DEACONGUARD_TOKEN=deaconguard1.… sudo -E sh -

DeaconGuard​

VariableEffect
DEACONGUARD_HOMEThe data directory. Default: /var/lib/deaconguard for the server service, ~/.local/share/deaconguard otherwise.
DEACONGUARD_AGENT_CONFIGThe agent's configuration file. Default: /etc/deaconguard/agent.json for root.
DEACONGUARD_TOKENRead by deaconguard setup agent when no --token-file is given.
DEACONGUARD_NAMERead by deaconguard setup agent and deaconguard agent enroll when no --name is given, and by deaconguard agent run when it enrolls itself: the host's name on the dashboard.

Containers​

Read by the container image, and by DeaconGuard anywhere else they are set.

VariableRead byEffect
DEACONGUARD_ADMIN_USERserveCreate this account, an admin, when the server has none. Ignored once any account exists.
DEACONGUARD_ADMIN_PASSWORD_FILEserveThe file with that account's password, such as a secret; one trailing newline is ignored.
DEACONGUARD_ADMIN_PASSWORDserveThe password itself, when there is no file. Prefer the file: the environment is easier to leak.
DEACONGUARD_TRUSTED_PROXIESserveComma-separated addresses or networks of reverse proxies, like --trusted-proxy. See Behind a reverse proxy.
DEACONGUARD_ACCESS_LOGserve1 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_REGISTRYserveoff 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_CHECKserveoff 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_URLserveWhere 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_MBserveMemory, 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.
GOMEMLIMITallGo'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_ROOTthe agentWhere the host's root filesystem is mounted, such as /host. Checks run there, with the host's own tools.
DEACONGUARD_HOSTNAMEthe agentThe 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_TOKENagent runA token to enroll with by itself.