Overview
What Structam records, how it is built, how it divides the work with NetBox and InfraDB, what it does not do, and the names you will type.
On this page
Structam is a self-hosted configuration management database (CMDB) and IT asset management (ITAM) platform. For every host in the estate it records what is installed and running, how it is configured, and what changed. It is one Go binary (structam), one PostgreSQL database and a web UI, with an agent (structam-agent) for Linux, macOS and Windows.
What it records
- Hosts from NetBox. NetBox is the source of truth for host identity. Structam reads devices and virtual machines, matches agents to them, reports drift, and writes back only into its own custom fields when you allow it (NetBox).
- Current state of each host. Applications with version, install path, executable hashes and running state; executables, processes, services, listening ports, local accounts, hardware components, patches and system facts (inventory and changes).
- A change record. Every difference between two observations of a host is a change event, written in the same transaction as the new state, hash-chained per host, and waiting for review.
- Configuration history. Every observed version of every watched configuration file, redacted on the host before upload, encrypted at rest, with diffs, baselines, variants across hosts and point-in-time export (configuration history).
- Estate views. Every application across the estate with host counts, versions and executable hashes; hash search; software entitlements and asset details NetBox does not hold (estate and ITAM).
- An audit log. Every change to settings, access and integrations, every sign-in and every review is an audit event, hash-chained, with signed checkpoints, and can be forwarded to a SIEM (SIEM and TAXII).
How it is built
agents (outbound WSS :443) browsers, API clients, NetBox webhooks, InfraDB
\ /
+-------- Caddy / load balancer ---+
| | |
structam serve structam serve structam worker ... (stateless; any number)
\ | /
+------------ PostgreSQL 16+ (primary + standby) ----+- The server runs on Linux, amd64 or arm64. The role is the first argument:
structam serve(API, web UI, agent gateway),structam worker(background worker pools),structam all(both, for one node) andstructam migrate. - Everything Structam keeps is in PostgreSQL. The server writes nothing to disk, so nodes are interchangeable and coordinate only through the database (high availability).
- Agents connect outbound to the server's public URL over one WebSocket. Nothing connects to the agents (the agent).
Who owns what
NetBox owns host identity, InfraDB owns monitoring, and Structam owns what is installed and configured on each host and how it changed. Structam never invents a host: an agent on a host NetBox does not know waits as unmatched until NetBox has it. With InfraDB, KazLabs' monitoring platform, it links the two records of the same host and passes a few things across.
What it does not do
- It does not run commands on hosts, push configuration, remediate, or deploy or patch software. The commands the server can send an agent are a closed set: collect now, resync, fetch one allowed configuration file, update.
- It does not match software against CVE or vulnerability feeds.
- It does not derive service or dependency maps. Listening ports and network neighbours are recorded, but no application-to-service graph is built.
- It does not inventory software without an agent. Discovery finds addresses (NetBox, agents' neighbour tables, TCP connect sweeps of ranges you add); it does no SNMP, ICMP or credentialed scans.
- It does not replace NetBox, and it never edits NetBox fields other than its own custom fields and optional journal entries.
- It is not multi-tenant: one organisation per installation, with access scoped by NetBox site, tenant and tag.
- It has no SAML sign-in and no SCIM provisioning. Sign-in is local accounts, LDAP or Active Directory, and OpenID Connect.
- It keeps no history of inventory rows: history is the change record. Point-in-time export exists for configuration files only.
Names you will type
Names you will type. The server and its admin commands are one binary, structam; the host agent is structam-agent; settings are STRUCTAM_* environment variables (every secret also takes STRUCTAM_<NAME>_FILE); every HTTP response carries X-Structam-Version; Structam's NetBox custom fields are structam_*.
| Name | What it is |
|---|---|
structam serve, worker, all, migrate | server roles; the role is the first argument |
structam doctor, healthcheck, version, user, token, netbox, licence, audit verify, agent-release, server-key, rotate-secret-key, assistant | one-shot admin commands of the same binary; there is no separate admin tool |
structam-agent run, enrol, install, uninstall, status, guard, reset-identity, version | agent commands (the agent) |
STRUCTAM_* | environment variables of the server and the agent (configuration reference) |
X-Structam-Version | response header on every HTTP response |
structam_agent_id, structam_agent, structam_last_seen, structam_url, structam_os, structam_pending_changes | NetBox custom fields, group Structam, choice set structam-agent-state |
structam- | default prefix of NetBox tags that may be used in access scopes (STRUCTAM_RBAC_TAG_PREFIX) |
structam-discover | NetBox prefix tag that proposes a discovery target |
stj1.<id>.<secret>.<pin> | a join token |
stt_... | an API token |
structam-all, structam-serve, structam-worker, structam-migrate | systemd units of the server |
structam-agent, com.kazlabs.structam-agent | the agent's service (systemd and Windows; launchd on macOS) |
/taxii2/structam/ | the TAXII 2.1 API root |
__Host-structam_session | the session cookie |
Version
These pages describe Structam 0.1.0, the first version. No release has been published yet: installation media and licences come from KazLabs (talk to us). The KazLabs licence server does not issue Structam licences yet, so every installation today runs in evaluation mode with every feature and up to 25 enrolled agents (licensing).
Questions the docs do not answer?
Ask the people who build Structam. Installation media and licences come from KazLabs.