Configuration reference

Every STRUCTAM_* environment variable of the server and the agent, with its default and the processes that read it, generated from the product's own list.

On this page

Structam is configured with environment variables only; there is no configuration file. This page lists every variable an operator sets, with the default the code applies and the processes that read it. It is generated from the product's own reference, which a product test keeps in step with the code.

How values are read

  • Only STRUCTAM_DATABASE_URL and STRUCTAM_SECRET_KEY are required (STRUCTAM_PUBLIC_URL too for serve and all). Every other variable has the default shown.
  • Booleans are on/off (also true/false, 1/0, yes/no). Durations use Go syntax (90s, 15m, 1h). Lists are comma-separated.
  • A variable marked file form is a secret and also accepts <NAME>_FILE, the path of a file holding the value (Docker and Kubernetes secrets, systemd credentials). Set one form, not both: setting both stops start-up.
  • Every value is validated at start. A process with an invalid value does not start, and the error names the variable.
  • Settings saved in the UI (Integrations, Access, System) replace the environment for their integration while the saved row exists; deleting the saved setting returns to the environment.
  • Variables marked cluster-wide must be identical on every node, workers included. Each node records a hash of them, and System → Nodes flags a node whose hash differs.

In the "Used by" column, serve, worker and all are the server roles; "admin commands" are the one-shot subcommands (structam migrate, user, token and the rest), which read the same environment; structam-agent is the host agent, which reads its own env file, not the server's. Background tasks run on whichever node holds their lease, workers included, so settings used by "serve, worker, all" belong in every node's environment.

Where the environment comes from depends on how Structam was installed: /etc/structam/structam.env with the server installer, deploy/compose/structam.env with Docker Compose, the ConfigMap and Secret on Kubernetes.

Database

VariableDefaultUsed by
STRUCTAM_DATABASE_URL (file form)requiredserve, worker, all; admin commands

PostgreSQL 16 or newer. For a cluster list every database host; Structam adds target_session_attrs=primary and connect_timeout=3 when they are missing, so it always writes to the current primary. Transaction-mode PgBouncer is not supported (session mode is fine).

VariableDefaultUsed by
STRUCTAM_DB_MAX_CONNS0 (worker pool maxima + 8, +12 on serve and all; at least 16)serve, worker, all

Connection pool size; 0 uses the role's default. At least 12 when set.

VariableDefaultUsed by
STRUCTAM_MIGRATEautoserve, worker, all

auto applies pending schema migrations at start (single node). For clusters set off and run structam migrate once per upgrade, before starting the new release.

Secrets

VariableDefaultUsed by
STRUCTAM_SECRET_KEY (file form)requiredserve, worker, all; admin commands

32 or more random bytes, base64 (openssl rand -base64 32). Cluster-wide. Seals integration secrets, sink credentials, configuration file contents and the server identity key. Losing it loses those; keep a copy outside the database backups.

VariableDefaultUsed by
STRUCTAM_SECRET_KEY_PREVIOUS (file form)unsetserve, worker, all; rotate-secret-key

Only while rotating: the key being replaced, so values sealed with it still open until structam rotate-secret-key has re-sealed them. Unset it afterwards.

VariableDefaultUsed by
STRUCTAM_SERVER_KEY_FILEunset (key generated once, stored sealed)serve, worker, all

Overrides the server identity key (Ed25519) that is otherwise generated once and stored sealed in the database. Agents pin this key; replacing it needs structam server-key rotate.

Listeners and URLs

VariableDefaultUsed by
STRUCTAM_HTTP_ADDR:8080serve, all; healthcheck

API, web UI and agent gateway (serve and all).

VariableDefaultUsed by
STRUCTAM_WORKER_ADDR:8081worker; healthcheck -worker

/livez, /readyz and /metrics of the worker role.

VariableDefaultUsed by
STRUCTAM_METRICS_ADDRunset (no extra listener)serve, all

When set, /metrics is also served here without authentication (bind it to a management network).

VariableDefaultUsed by
STRUCTAM_PUBLIC_URLrequired by serve and allserve, worker, all

The https:// URL agents and browsers use. Cluster-wide: give workers the same value (it is part of the configuration hash, and it names the STIX identity). Required by serve and all; install.sh requires it for every role.

VariableDefaultUsed by
STRUCTAM_ALLOWED_ORIGINSunsetserve, all

Extra origins accepted by the cross-site request check, comma-separated. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_TRUSTED_PROXIESunset (X-Forwarded-For ignored)serve, all

Reverse proxies and load balancers whose X-Forwarded-For is believed (CIDRs or addresses). Cluster-wide.

VariableDefaultUsed by
STRUCTAM_DRAIN_DELAY5s (0 to 2m)serve, worker, all

How long a stopping node reports not-ready before it closes its listeners, so load balancers move away first.

VariableDefaultUsed by
STRUCTAM_INSECURE_DEVoffserve, worker, all

Development only: plain-HTTP cookies and URLs. Logged as a warning on every start.

Outbound proxy

VariableDefaultUsed by
STRUCTAM_PROXY_DIRECT10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, fc00::/7, fe80::/10serve, worker, all

HTTPS_PROXY, HTTP_PROXY and NO_PROXY are honoured for NetBox, InfraDB, the licence server, LLM providers and SIEM sinks. These ranges are always direct (empty = the private ranges below; "none" = loopback only). The cloud metadata addresses 169.254.169.254 and fd00:ec2::254 are never direct unless named on their own. Cluster-wide.

NetBox (source of truth for hosts)

VariableDefaultUsed by
STRUCTAM_NETBOX_URLunset (NetBox off)serve, worker, all; structam netbox

Used while no NetBox setting is saved on the Integrations page; a saved setting replaces all of these (except the two intervals), and deleting it reverts to them. Cluster-wide. The NetBox URL (3.7 to 4.7). Empty: NetBox is not configured.

VariableDefaultUsed by
STRUCTAM_NETBOX_TOKEN (file form)unsetserve, worker, all; structam netbox

Read token (v1 40-hex token, or a v2 nbt_<key>.<secret> token). Needs view on dcim.device, dcim.interface, dcim.site, dcim.platform, dcim.devicerole, ipam.ipaddress, tenancy.tenant, extras.tag, virtualization.virtualmachine, virtualization.vminterface and virtualization.cluster.

VariableDefaultUsed by
STRUCTAM_NETBOX_WEBHOOK_SECRET (file form)unset (webhooks refused)serve, worker, all

Verifies NetBox's X-Hook-Signature on POST /api/v1/ingest/netbox; without it webhooks are refused (the 60 s poll still finds every change).

VariableDefaultUsed by
STRUCTAM_NETBOX_VERIFY_TLSonserve, worker, all

off skips verification of NetBox's TLS certificate (a lab NetBox only; prefer STRUCTAM_NETBOX_CA_FILE).

VariableDefaultUsed by
STRUCTAM_NETBOX_CA_FILEunset (system roots)serve, worker, all

PEM certificates that replace the system roots for NetBox (a private CA).

VariableDefaultUsed by
STRUCTAM_NETBOX_DEVICE_FILTERunset (every device)serve, worker, all
STRUCTAM_NETBOX_VM_FILTERunset (every virtual machine)serve, worker, all

NetBox query strings added to the device and virtual machine lists, e.g. status=active&tenant=noc. Hosts outside them count as gone from NetBox.

VariableDefaultUsed by
STRUCTAM_NETBOX_EXPECT_AGENT_FILTERunset (off)serve, worker, all

NetBox hosts that should run an agent (drift host.no_agent after 24 h without one): * for every active host, or keys site, tenant, role, platform, tag, status, type (device or vm), e.g. role=server&tag=linux. Empty: off.

VariableDefaultUsed by
STRUCTAM_NETBOX_PRUNEdecommissionserve, worker, all

decommission marks hosts NetBox no longer returns as decommissioned (never deleted; refused when a run would remove more than half of 10 or more hosts); none leaves them as they are.

VariableDefaultUsed by
STRUCTAM_NETBOX_SYNC_INTERVAL15m (1m to 24h)serve, worker, all
STRUCTAM_NETBOX_POLL_INTERVAL1m (10s to 1h)serve, worker, all

Full reconciliation interval (lease task netbox-sync) and incremental poll interval (netbox-poll).

VariableDefaultUsed by
STRUCTAM_NETBOX_WRITEBACKoffserve, worker, all
STRUCTAM_NETBOX_JOURNALoffserve, worker, all
STRUCTAM_NETBOX_WRITE_TOKEN (file form)unsetserve, worker, all

Write-back into Structam's own custom fields (structam_*; create them with structam netbox bootstrap) and, with JOURNAL, journal entries for approved and rejected high-severity changes. Needs a separate write token with change on dcim.device and virtualization.virtualmachine and add on extras.journalentry.

VariableDefaultUsed by
STRUCTAM_NETBOX_WRITE_USERunset (detected on NetBox 4.5+)serve, worker, all

NetBox username of the write token: webhook events it causes are dropped as write-back echoes. Detected on NetBox 4.5 and later when empty.

Logging

VariableDefaultUsed by
STRUCTAM_LOG_FORMATtextserve, worker, all; structam-agent

text or json.

VariableDefaultUsed by
STRUCTAM_LOG_LEVELinfoserve, worker, all; structam-agent

debug, info, warn or error.

Retention (days; 0 keeps everything)

VariableDefaultUsed by
STRUCTAM_AUDIT_RETENTION_DAYS0 (keep everything)serve, worker, all

Audit log. Partitions are dropped whole, never before every enabled SIEM sink has received them. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_CHANGE_RETENTION_DAYS0 (keep everything)serve, worker, all

Change events. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_CONFIG_RETENTION_DAYS0 (keep everything)serve, worker, all

Configuration file versions (the newest 20 versions of every file, its current version and every baseline are always kept; unreferenced content is collected a day later). Cluster-wide.

Worker pools

VariableDefaultUsed by
STRUCTAM_INGEST_WORKERS_MIN1 on serve, 2 on worker and allserve, worker, all
STRUCTAM_INGEST_WORKERS_MAX4 x GOMAXPROCSserve, worker, all
STRUCTAM_INGEST_BACKLOG_PER_WORKER25serve, worker, all
STRUCTAM_DISCOVERY_WORKERS_MIN0serve, worker, all
STRUCTAM_DISCOVERY_WORKERS_MAX2serve, worker, all
STRUCTAM_DISCOVERY_BACKLOG_PER_WORKER5serve, worker, all
STRUCTAM_INTEGRATION_WORKERS_MIN0serve, worker, all
STRUCTAM_INTEGRATION_WORKERS_MAX2serve, worker, all
STRUCTAM_INTEGRATION_BACKLOG_PER_WORKER10serve, worker, all

Each node runs between MIN and MAX workers per pool and adds one per BACKLOG_PER_WORKER queued jobs. Unset MIN means the role's default (ingest: 1 on serve, 2 otherwise; other pools: 0). Unset ingest MAX is 4 x GOMAXPROCS.

VariableDefaultUsed by
STRUCTAM_INGEST_MAX_QUEUE100000 (100 to 100000000)serve, all

Queued ingest jobs above which agents are told to retry later (they keep the data on disk). Cluster-wide.

Identity and access

Settings saved on the Access page (auth-policy, ldap, oidc-<slug>) replace these for their part; deleting the saved setting returns to the environment.

VariableDefaultUsed by
STRUCTAM_BOOTSTRAP_ADMIN_USERadminserve, worker, all
STRUCTAM_BOOTSTRAP_ADMIN_PASSWORD (file form)unset (no administrator is created)serve, worker, all

The first administrator, created at start only while the database has no users at all. The password must pass the policy (12+ characters, not a common password, not containing the username) or the server does not start; it must be changed at the first sign-in. Remove the password from the environment afterwards. Without it, create the first administrator with structam user create -username admin -admin.

VariableDefaultUsed by
STRUCTAM_LOCAL_LOGINallserve, all

all: every account may sign in with a password. break-glass: while an OIDC provider is enabled, local passwords work only for administrators (the sign-in page hides the form behind ?local=1). Cluster-wide.

VariableDefaultUsed by
STRUCTAM_REQUIRE_TOTPoffserve, all

on: every local account must set up a TOTP second factor before it can do anything else. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_RBAC_TAG_PREFIXstructam-serve, worker, all

Tags that grant access through a scoped role grant must start with this prefix. NetBox editors who can tag hosts decide which scoped users see them. Cluster-wide.

LDAP / Active Directory sign-in (unset STRUCTAM_LDAP_URL: no directory). URLs are tried in order; use ldaps://, or ldap:// with STRUCTAM_LDAP_START_TLS=on (plain LDAP is refused: binds carry passwords). Certificates are always verified; STRUCTAM_LDAP_CA_FILE adds a private CA. {username} in the user filter, {dn} and {username} in the group filter are replaced (escaped). Without STRUCTAM_LDAP_GROUP_BASE, groups come from the user's memberOf.

VariableDefaultUsed by
STRUCTAM_LDAP_URLunset (no directory)serve, worker, all
STRUCTAM_LDAP_START_TLSoffserve, worker, all
STRUCTAM_LDAP_BIND_DNunsetserve, worker, all
STRUCTAM_LDAP_BIND_PASSWORD (file form)unsetserve, worker, all
STRUCTAM_LDAP_USER_BASEunsetserve, worker, all
STRUCTAM_LDAP_USER_FILTERunsetserve, worker, all
STRUCTAM_LDAP_USERNAME_ATTRunsetserve, worker, all
STRUCTAM_LDAP_DISPLAY_NAME_ATTRunsetserve, worker, all
STRUCTAM_LDAP_EMAIL_ATTRunsetserve, worker, all
STRUCTAM_LDAP_GROUP_BASEunset (groups from memberOf)serve, worker, all
STRUCTAM_LDAP_GROUP_FILTERunsetserve, worker, all
STRUCTAM_LDAP_NESTED_GROUPSoffserve, worker, all
STRUCTAM_LDAP_CA_FILEunset (system roots)serve, worker, all
STRUCTAM_LDAP_TIMEOUT8s (1s to 1m)serve, worker, all
STRUCTAM_LDAP_SYNC_INTERVAL15m (1m to 24h)serve, worker, all
STRUCTAM_LDAP_REQUIRE_GROUPonserve, worker, all

STRUCTAM_LDAP_NESTED_GROUPS=on uses Active Directory's in-chain matching rule. Users need a group mapped on the Access page (directory group mappings) unless STRUCTAM_LDAP_REQUIRE_GROUP=off. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_OIDC_PROVIDERSunset (no OIDC provider)serve, all

OpenID Connect providers, by slug (lower case; part of the callback URL <public URL>/api/v1/auth/oidc/<slug>/callback). Each provider is configured with STRUCTAM_OIDC_<SLUG>_<FIELD>, the slug upper-cased with '-' as '_': ISSUER (https://), CLIENT_ID, CLIENT_SECRET (or CLIENT_SECRET_FILE), TITLE, SCOPES (default openid,profile,email), USERNAME_CLAIM (preferred_username), NAME_CLAIM (name), EMAIL_CLAIM (email), GROUPS_CLAIM (groups), AUTO_REDIRECT (off), JIT (on: create accounts at first sign-in), REQUIRE_GROUP (on: refuse users none of whose groups is mapped), RP_LOGOUT (off: sign out at the provider too). Cluster-wide.

STRUCTAM_OIDC_CORP_ISSUER=https://id.example.com
STRUCTAM_OIDC_CORP_CLIENT_ID=structam
STRUCTAM_OIDC_CORP_CLIENT_SECRET_FILE=/etc/structam/secrets/oidc_corp_client_secret

Agent gateway

VariableDefaultUsed by
STRUCTAM_AGENT_ADMISSIONenforceserve, all

enforce answers a bare 404 to every agent connection without a valid, unused admission stamp. log lets such a connection go on to the handshake (which still authenticates the agent) and only records the refusal: use it briefly to find a proxy that strips the Structam-Admission header. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_AGENT_JOIN_FAILURES_PER_MINUTE30serve, all

Failed join-token admissions allowed per client address per minute (counted across nodes) before the address is refused without a database lookup until the bucket refills. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_AGENT_UPDATE_RATE60 (0 turns automatic updates off)serve, worker, all

Automatic self-updates queued per minute across the cluster, for agents whose policy has auto_update; 0 turns automatic updates off (manual updates from the Agents page still work). Cluster-wide.

Onboarding

VariableDefaultUsed by
STRUCTAM_AGENT_CA_FILEunsetserve, all

Private CA bundle (PEM certificates) that the install scripts write to each agent's ca.pem, for a public URL whose TLS certificate the hosts' system trust store does not know. Never installed into the system trust store, and not the agents' trust anchor (that is the pinned server key). The UI setting "onboard" replaces it when saved. A file that holds anything but certificates stops serve and all at start. Cluster-wide.

Licence

VariableDefaultUsed by
STRUCTAM_LICENCE_SERVERhttps://license.kazlabs.coserve, worker, all; structam licence

The KazLabs licence server for activation and the daily heartbeat (one node at a time, through the proxy settings above). The licence itself is entered on the System page or with structam licence activate, never here. Cluster-wide.

InfraDB

VariableDefaultUsed by
STRUCTAM_INFRADB_URLunset (InfraDB off)serve, worker, all
STRUCTAM_INFRADB_TOKEN (file form)unsetserve, worker, all

InfraDB while no "infradb" setting is saved under Integrations -> InfraDB (a saved setting replaces all of these). URL and token go together; unset leaves the integration off. The token is an InfraDB API token (mc token create -name structam -role viewer -scopes ingest): role viewer to read hosts, scope ingest to push alarms, a role with inventory.edit (built-in engineer) only when STRUCTAM_INFRADB_LINKS=on. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_INFRADB_CA_FILEunset (system roots)serve, worker, all

PEM CA bundle that replaces the system roots for InfraDB's certificate.

VariableDefaultUsed by
STRUCTAM_INFRADB_ALARMSonserve, worker, all

Push alarms (change rules with raise_infradb_alarm, agents offline for more than 10 minutes) to InfraDB.

VariableDefaultUsed by
STRUCTAM_INFRADB_ENRICHonserve, worker, all

Read InfraDB's hardware components and firmware into host components (source infradb).

VariableDefaultUsed by
STRUCTAM_INFRADB_LINKSoffserve, worker, all

Write a "Structam" entry into external_links and config_backup_url of linked InfraDB hosts.

VariableDefaultUsed by
STRUCTAM_METRICS_HOST_SERIES_MAX2000 (1 to 50000)serve, all

Per-host series served on GET /metrics/federate (labelled mc_host for InfraDB's Prometheus federation); InfraDB's default scrape cap is 2 000.

Discovery

VariableDefaultUsed by
STRUCTAM_DISCOVERY_SWEEPSonserve, worker, all

Agentless TCP sweeps of the ranges added as discovery targets (nothing else is ever swept), while no "discovery" setting is saved under Integrations -> Discovery. off stops all sweeps; neighbour tables from agents are still folded. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_DISCOVERY_CONNECT_TIMEOUT1500ms (100ms to 10s)serve, worker, all

TCP connect timeout per probe (100ms to 10s).

VariableDefaultUsed by
STRUCTAM_DISCOVERY_MAX_RATE500 (1 to 5000)serve, worker, all
STRUCTAM_DISCOVERY_CONCURRENCY256 (1 to 4096)serve, worker, all

Upper bound of every target's probe rate (probes per second) and probes in flight per sweep.

VariableDefaultUsed by
STRUCTAM_DISCOVERY_REVERSE_DNSonserve, worker, all
STRUCTAM_DISCOVERY_FINGERPRINTSonserve, worker, all

Reverse DNS for responsive addresses; banner, TLS certificate and SSH host key fingerprints of open ports (never credentials).

VariableDefaultUsed by
STRUCTAM_DISCOVERY_RETENTION_DAYS90 (1 to 3650)serve, worker, all

Endpoints not seen for this many days are deleted (ignored ones are kept).

Ask AI

VariableDefaultUsed by
STRUCTAM_LLM_PROVIDERunset (Ask AI off)serve, all; structam assistant

The model provider of Ask AI while no "llm" setting is saved under Integrations -> Ask AI (a saved setting replaces all of these). Unset STRUCTAM_LLM_PROVIDER and STRUCTAM_LLM_BASE_URL leave Ask AI off. Questions and the data the assistant looks up go to this API only. Sending raw configuration content can only be allowed in the saved setting (send_config_content), where every change is audited. Cluster-wide. anthropic (the Messages API) or openai (any OpenAI-compatible chat completions API, for example a model served on your own hardware).

VariableDefaultUsed by
STRUCTAM_LLM_BASE_URLunset (anthropic: https://api.anthropic.com)serve, all; structam assistant

API root. Anthropic default https://api.anthropic.com; OpenAI-compatible APIs include the version path.

VariableDefaultUsed by
STRUCTAM_LLM_API_KEY (file form)unsetserve, all; structam assistant

Required for anthropic, optional for local OpenAI-compatible servers.

VariableDefaultUsed by
STRUCTAM_LLM_MODELSunset (what the API lists)serve, all; structam assistant
STRUCTAM_LLM_DEFAULT_MODELunset (anthropic: a built-in default)serve, all; structam assistant

Models users may pick (comma-separated; empty: what the API lists) and the default (anthropic: a built-in default model).

VariableDefaultUsed by
STRUCTAM_LLM_TIMEOUT180s (10s to 15m)serve, all; structam assistant
STRUCTAM_LLM_MAX_STEPS8 (1 to 20)serve, all; structam assistant
STRUCTAM_LLM_MAX_OUTPUT_TOKENS16000 (256 to 128000)serve, all; structam assistant

One model call (10s-15m), tool rounds per answer (1-20) and max_tokens per call (256-128000).

VariableDefaultUsed by
STRUCTAM_LLM_NATIVE_TOOLSoffserve, all; structam assistant

on: the provider's native tool calling; off: the text protocol, which works with every server.

VariableDefaultUsed by
STRUCTAM_LLM_THINKINGadaptiveserve, all; structam assistant
STRUCTAM_LLM_EFFORTunset (the model's default)serve, all; structam assistant
STRUCTAM_LLM_REFUSAL_FALLBACKonserve, all; structam assistant

Anthropic only: adaptive (thinking shown as a summary) or off (for older models); effort low|medium|high|xhigh|max (empty: the model's default); refusal_fallback lets the API re-run a declined request on its fallback model.

VariableDefaultUsed by
STRUCTAM_LLM_DAILY_TOKEN_BUDGET2000000 (0 = unlimited)serve, all; structam assistant
STRUCTAM_LLM_CONVERSATION_TOKEN_BUDGET1000000 (0 = unlimited)serve, all; structam assistant
STRUCTAM_LLM_REQUESTS_PER_MINUTE6serve, all; structam assistant

Per user: tokens per UTC day and per conversation (0 = unlimited), and questions per minute (across nodes).

SIEM sinks and TAXII

VariableDefaultUsed by
STRUCTAM_SYSLOG_PENunset (no structured data)serve, worker, all

Sinks themselves are configured on Integrations > SIEM (stored in the database, cluster-wide).

Your organisation's IANA Private Enterprise Number: RFC 5424 sinks then carry structured data [structam@<PEN> event_id=... ...]. Empty: no structured data unless a sink sets its own sd_id. The documentation number 32473 is refused. Cluster-wide.

VariableDefaultUsed by
STRUCTAM_TAXII_INSTANCEunset (host name of the public URL)serve, worker, all

Names this installation in STIX ("Structam <instance>", the identity that creates every published object). Empty: the host name of STRUCTAM_PUBLIC_URL. Cluster-wide; set it once, a change publishes a new identity version. A node with neither setting (a worker without STRUCTAM_PUBLIC_URL) never names the identity itself: holding the taxii-publisher lease it keeps the published name, and on an installation where nothing is published yet it gives the lease up and logs that it has no instance name.

VariableDefaultUsed by
STRUCTAM_SIEM_ALLOW_PRIVATEoffserve, all

"Send test event" refuses sinks on loopback, link-local and private (RFC 1918, IPv6 unique local) addresses, so the button cannot be used to probe this server's own network. on: allow them (an internal SIEM). Cloud metadata addresses (169.254.169.254, fd00:ec2::254) are always refused. Delivery by the forwarder is not affected.

Host agent (structam-agent)

VariableDefaultUsed by
STRUCTAM_SERVERrequired (no default)structam-agent

These are read by structam-agent, not by the server, from its own env file (Linux /etc/structam-agent/agent.env, macOS /Library/Application Support/Structam Agent/agent.env, Windows %ProgramData%\Structam\Agent\agent.env). The agent also honours STRUCTAM_LOG_LEVEL and STRUCTAM_LOG_FORMAT above. Every variable has a matching flag (structam-agent run -h), except the join token, which never goes on a command line.

The server's https:// URL. There is no default. http:// is refused unless STRUCTAM_INSECURE=on.

VariableDefaultUsed by
STRUCTAM_JOINunset (needed only to enrol)structam-agent
STRUCTAM_JOIN_FILEunsetstructam-agent

The join token (stj1.<id>.<secret>.<pin>) from the Add hosts page; removed by the agent after enrolment. Set one of the two forms; the installer writes it here, never into the service environment.

VariableDefaultUsed by
STRUCTAM_SERVER_PINunset (server.pins only)structam-agent

Extra trusted server pins (SHA256:... or the 43-character token form), comma-separated, added to server.pins.

VariableDefaultUsed by
STRUCTAM_CA_FILEunset (system roots only)structam-agent

Extra CA bundle (PEM) for TLS to the server; system roots are always used too. TLS is not the trust anchor.

VariableDefaultUsed by
STRUCTAM_PROXYunset (HTTPS_PROXY applies)structam-agent

Outbound proxy for the agent (http://, https:// or socks5://); without it the standard HTTPS_PROXY applies.

VariableDefaultUsed by
STRUCTAM_INSECUREoffstructam-agent

on allows an http:// server (labs only); logged as a warning on every start.

VariableDefaultUsed by
STRUCTAM_STATE_DIRLinux /var/lib/structam-agent; macOS /Library/Application Support/Structam Agent; Windows %ProgramData%\Structam\Agentstructam-agent
STRUCTAM_ENV_FILELinux /etc/structam-agent/agent.env; macOS and Windows agent.env in the state directorystructam-agent
STRUCTAM_LOCAL_POLICYLinux and macOS /etc/structam-agent/local-policy.json; Windows local-policy.json in the state directorystructam-agent

Override the state directory, the env file and the local policy file (tests, non-standard layouts).

Questions the docs do not answer?

Ask the people who build Structam. Installation media and licences come from KazLabs.

Talk to us