Structam documentation

How to install, connect and run Structam 0.1.0: requirements, installation, agents, NetBox, InfraDB, SIEM and TAXII, access control and operations.

v0.1.0Linux server · amd64, arm64PostgreSQL 16+Agents: Linux, macOS, Windows
On this page

Structam is a self-hosted CMDB and IT asset management platform by KazLabs. For every host in the estate it records what is installed and running, how it is configured, and what changed. These pages are written for the operators who install and run it: what to type, what each setting does, and what has and has not been tested.

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_*.

Where to start

  1. Read the overview for what Structam does and does not do, and the requirements.
  2. Pick a way to install: Docker Compose on one host, the server installer on a Linux host with systemd, or Kubernetes. Installation media come from KazLabs: there is no public download.
  3. Sign in, change the first administrator's password and set up a second factor (first sign-in and access control).
  4. Connect NetBox, the source of truth for host identity.
  5. Onboard hosts: a join token and a one-line command served by your own Structam server.
  6. Review what changed on Changes, and read configuration history and the estate views.

How these pages treat testing

Pages about a feature open with a Status note taken from the product's own documentation: what was tested, how, and what has not been run yet. Structam 0.1.0 is the first version. Where a note says "not yet run", the mechanism is built and covered by the product's package tests, but it has not been exercised against the real third-party system named. Read those notes before you rely on a feature in production.

Note. Numbers on these pages are defaults and limits from the code and its configuration, not measurements. There are no published performance or sizing figures for 0.1.0.

All documentation

Start here

  • OverviewWhat 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.
  • RequirementsWhat a Structam installation needs: a Linux server, PostgreSQL 16 or newer, a TLS front end, two secrets, and outbound HTTPS from each host with an agent.

Install and run

  • Installing StructamThe ways to install Structam (Docker Compose, the server installer with systemd, Kubernetes), what KazLabs provides, and the first steps after installing.
  • Installing with Docker ComposeRun Structam on one host with Docker Compose (PostgreSQL 18, structam all and Caddy), its settings, TLS modes, and the HA topology for drills.
  • Installing with the server installerInstall Structam as a systemd service on Debian, Ubuntu or the RHEL family with install.sh: steps, options, secrets, re-runs, Caddy and the hardened units.
  • Installing on KubernetesDeploy Structam with the kustomization: two serve replicas, an autoscaled worker Deployment, a migration Job, probes, ingress and the first administrator.
  • Configuration referenceEvery 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.
  • First sign-in and access controlThe first administrator, local accounts with TOTP, LDAP and Active Directory, OpenID Connect, API tokens, roles, and grants scoped by NetBox site, tenant and tag.

Hosts and agents

  • Onboarding agentsAdd hosts with join tokens and the install scripts your Structam server serves: options, golden images, configuration management, matching, revoking.
  • The agentstructam-agent on Linux, macOS and Windows: files, commands, policies, what it collects per OS, redaction, the deny list, store and forward, hardening and updates.
  • DiscoveryHow Structam finds addresses that are not known hosts: NetBox, agents' neighbour tables and TCP connect sweeps of ranges you add. Discovery never creates a host.

Using Structam

  • Inventory and changesThe current state Structam keeps for each host, every change event kind with its category and severity, review, change rules and the per-host hash chain.
  • Configuration historyEvery observed version of every watched configuration file: redacted on the host, encrypted at rest, with diffs, baselines, drift, variants across hosts and export.
  • Estate views and ITAMApplications across the estate, versions and executable hashes, hash search, configuration variants, CSV export, entitlements, asset details and the ITAM reports.
  • Ask AIQuestions about the estate answered by a language model you configure, through 14 fixed read-only tools with the asking user's permissions and scope.

Integrations

  • NetBoxNetBox as the source of truth for hosts: connecting, sync and prune, matching agents to hosts, drift, webhooks, optional write-back and access through NetBox attributes.
  • InfraDBLinking Structam hosts to InfraDB, KazLabs' monitoring platform: hardware enrichment, the monitoring panel, alarms, links, InfraDB audit events and Prometheus federation.
  • Audit log, SIEM and TAXIIThe hash-chained audit log with signed checkpoints, forwarding to syslog, HTTP and TAXII sinks in SIEM formats, and the read-only TAXII 2.1 server.

Operations

  • High availabilityStateless active-active nodes over one PostgreSQL primary: finding the primary, leases with fencing, drains, commit stalls, health endpoints, topologies and drills.
  • ScalingWorker pools that grow and shrink with the queue inside each process, more worker nodes across processes, database connections, backpressure, metrics and autoscaling.
  • UpgradingHow the schema moves between releases, upgrading a single node and a cluster with a rolling upgrade, going back, and upgrading agents.
  • Backup and restoreWhat to back up (the PostgreSQL database and, apart from it, the secret key), how to restore, what happens after restoring an older point in time, and moving servers.
  • TroubleshootingFirst steps with structam doctor, and what to do when the server does not start, readiness fails, agents are refused, the install script stops or the UI misbehaves.
  • LicensingEvaluation mode with up to 25 agents, licence states (valid, grace, restricted), activation online and offline, the daily heartbeat, and what a licence never does.

Reference

  • Security modelTrust boundaries, secrets at rest and key rotation, the pinned and sealed agent channel, access control, outbound connections, audit and deployment hardening.
  • Audit eventsEvery audit action Structam records, with its category, the default severity SIEM sinks receive, whether code or a database trigger writes it, and when.
  • HTTP APIConventions of Structam's JSON API (authentication, errors, lists, limits) and every route the server mounts, with the permission and host scope each needs.

Questions the docs do not answer?

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

Talk to us