Skip to main content

Environment variables

These variables configure the fleet agent, which ships telemetry from your hosts, and the CLI and bridges.

Fleet agent​

The installer writes these to /etc/constellation/agent.env (root-only) and /etc/constellation/socket.env, and the fleet agent reads them at start.

VariablePurpose
CONSTELLATION_API_TOKENThe API key, sent as x-api-key
CONSTELLATION_API_URLPlatform API base URL for this host
CONSTELLATION_ENDPOINTgRPC ingest host:port for gRPC egress. Empty on HTTP egress
CONSTELLATION_SOCKET_PATHIngest socket, always /run/constellation-agent/telemetry.sock. The only variable publishing applications read

constellation-agent emit and verify use CONSTELLATION_SOCKET_PATH from the process environment when it is set, then socket.env, then the default path.

Installer​

The install script reads these. Export CONSTELLATION_API_TOKEN in your shell and pass it with sudo --preserve-env=CONSTELLATION_API_TOKEN, so it never appears on a command line, where ps and the auth log would show it; set the others after env, as in the example below. sudo drops every variable it is not told to keep, so an exported CONSTELLATION_API_URL needs --preserve-env=CONSTELLATION_API_TOKEN,CONSTELLATION_API_URL or env to reach the installer; without it the agent points at https://api.constellation.space. Re-running the installer regenerates the configuration from these values.

VariableDefaultPurpose
CONSTELLATION_API_TOKENnoneRequired. The API key the fleet agent authenticates with
CONSTELLATION_API_URLhttps://api.constellation.spaceAPI base URL
CONSTELLATION_EGRESSgrpcgrpc or http. Any other value fails the install. See Egress
CONSTELLATION_ENDPOINTderivedgRPC ingest host:port. Derived for https://api.constellation.space and its stage. and dev. variants; required for any other API URL on gRPC egress
CONSTELLATION_BUFFER_STRATEGYdiskdisk or memory. Any other value fails the install. See Buffering
CONSTELLATION_FLUSH_INTERVAL1sFleet agent flush interval, as a Telegraf duration
CONSTELLATION_TELEGRAF_VERSION1.39.2Telegraf version to install or expect. The installer carries package digests for 1.39.2 only, so it fails on any other value when it has to install Telegraf itself
CONSTELLATION_TELEGRAF_SHA256pinnedOverride the expected Telegraf package checksum
CONSTELLATION_TELEGRAF_PACKAGEnonePath to a local .deb or .rpm for private or air-gapped hosts. Requires CONSTELLATION_TELEGRAF_SIGNATURE
CONSTELLATION_TELEGRAF_SIGNATUREnoneLocal InfluxData .asc detached signature for that package
CONSTELLATION_INFLUXDATA_KEYfetchedLocal InfluxData signing key; otherwise fetched from repos.influxdata.com. Its fingerprint is checked either way
CONSTELLATION_CLI_PACKAGEfetchedLocal constellation-agent binary for air-gapped installs
CONSTELLATION_GRPC_PACKAGEfetchedLocal gRPC egress binary for air-gapped installs. Needed unless CONSTELLATION_EGRESS=http
CONSTELLATION_ARTIFACT_BASErelease URLBase URL for the CLI and gRPC binaries
CONSTELLATION_ALLOW_TELEGRAF_TAKEOVER0Set 1 to adopt a pre-existing Telegraf the installer did not provision
CONSTELLATION_ALLOW_TELEGRAF_VERSION_MISMATCH0Set 1 to proceed against an existing Telegraf whose version does not match the pin

A fully offline install needs every artifact supplied locally; supplying only the Telegraf package fails partway through. Local artifacts are verified the same way as downloaded ones. Get the files from Downloads.

Install with HTTP egress and a memory buffer:

curl -fsSL https://install.constellation.space/agent | \
sudo --preserve-env=CONSTELLATION_API_TOKEN env \
CONSTELLATION_EGRESS=http \
CONSTELLATION_BUFFER_STRATEGY=memory sh

gRPC egress child​

On gRPC egress, Telegraf runs telegraf-constellation-grpc as a child process, which translates line protocol to constellation.ingest.v2.TelemetryIngest/Write calls. The installer passes it the endpoint and the key through Telegraf's environment, so the child reads no config file and application code never holds a credential. The other variables are tuning options read from the environment list of the [[outputs.execd]] block; the installer overwrites that block on every run.

VariablePurpose
CONSTELLATION_ENDPOINTRequired. gRPC host:port. The child exits without it
CONSTELLATION_API_TOKENRequired. Sent as x-api-key request metadata
CONSTELLATION_TIMEOUTPer-RPC timeout as a Go duration. Default 10s
CONSTELLATION_BATCH_SIZERecords per Write call, 1 to 1000. Default 500
CONSTELLATION_SHIM_FLUSH_INTERVALHow long the child holds a partial batch before sending, 1ms to 1m. Default 50ms. Separate from the collector's flush interval
CONSTELLATION_INSECUREtrue disables TLS. Test and private-tunnel use only; the default is TLS 1.2 or later

Key handling is in Security overview, and the install procedure in Fleet agent.

CLI and bridges​

The constellation CLI, the SDKs and every bridge built on them read these:

VariableDefaultPurpose
CONSTELLATION_API_URLhttps://api.constellation.spaceAPI base URL
CONSTELLATION_API_KEYNoneThe API key, sent as x-api-key. A bridge needs predictions:read.
CURSOR_FILEcursor.txtWhere a bridge built on the SDK Bridge classes keeps the last cursor it applied, and beside it (.acted) the approved actions it carried out
POLL_SECONDS15How often a bridge polls for workflow results once caught up
CONSTELLATION_CONFORMANCE_LOGUnsetThe file a bridge built on the SDK Bridge classes appends its conformance log to

Each official connector adds its own, listed on its page under Connectors.