Close
logodocs

Environment Variables

The strongDM command line recognizes environment variables to control and modify its functionality. This document details the available environment variables and their function.

NameFormatFunction
SDM_ADMIN_TOKEN<JWT token>An admin token or service account token to use for sdm authentication. If set, this token will be used by strongDM and there is no need to log in via the CLI or GUI.
SDM_EMAILSDM_EMAIL=email-address-value@example.comIf set, the specified email address will be used automatically when using the sdm login command in the CLI.
SDM_HOME/path/to/homeThe location where sdm places its logs and keys. Defaults to ~/.sdm. Must be writable by the user running sdm.
SDM_VERBOSEtrue|falseIf set, log verbosity will be set to high for troubleshooting purposes.

Variables for Relays/Gateways

The following variables are only for use with Relays and Gateways.

NameFormatFunction
SDM_DOCKERIZEDtrue|falsestderr
SDM_ORCHESTRATOR_PROBES:portIf set, the http://<GATEWAY OR RELAY IP>:port/liveness URL will be enabled to check whether the Gateway/Relay is in good health.
SDM_RELAY_LOG_ENCRYPTIONplaintext|pubkey:///pubkeyfullpath/file.pemOverrides Relay log encryption settings configured in Admin UI.
SDM_RELAY_LOG_FORMATcsv|jsonOverrides Relay log format settings configured in Admin UI.
SDM_RELAY_LOG_STORAGEstdout|file|none|tcp://host:port|socket:///fullpath/Overrides Relay log storage settings configured in Admin UI.
SDM_RELAY_TOKEN<JWT_TOKEN>A Relay or Gateway token to use when invoking the sdm binary. Normally not needed as this is entered when installing the Relay/Gateway.
Previous
Datasources
Next
Gateways