Requirements
What 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.
On this page
Status. Taken from the product's installation guide and code for 0.1.0. The single-node and HA compose files were brought up with Docker Compose on Docker Desktop (arm64); the server installer was run in an Ubuntu 24.04 systemd container against an external PostgreSQL 18. Not yet run: an install on a real server or a RHEL-family host with systemd, and the Kubernetes manifests against a cluster.
Server
| Item | Requirement |
|---|---|
| Operating system | Linux on amd64 or arm64 |
| Binary | one static binary, structam, with the web UI built in; also shipped as a container image (distroless, non-root user 65532) |
| Disk on the server | none for Structam itself: everything is kept in PostgreSQL |
| Roles | structam all on one node; structam serve and structam worker nodes for a cluster (high availability) |
There are no published sizing figures for 0.1.0. Watch the queue metrics described in scaling and add worker nodes or database capacity when they say so.
Database
- PostgreSQL 16 or newer. The compose files use PostgreSQL 18.
structam doctorfails on an older server. - Plain PostgreSQL: no extensions, no TimescaleDB.
- PgBouncer only in session mode. Transaction mode is not supported: Structam uses session advisory locks and
LISTEN. - For a cluster, a primary with a standby managed by Patroni, CloudNativePG or a managed service. Structam finds the primary through a multi-host connection string; it needs no virtual IP or HAProxy in front of the database.
- Enough
max_connectionsfor every node's pools (scaling).
Front end
- A TLS reverse proxy or load balancer for the public URL. The server refuses an
http://public URL unlessSTRUCTAM_INSECURE_DEV=on, which is for development only. - It must pass WebSocket upgrades on
/agent/v1/connectand must not buffer event streams (/api/v1/streamand the Ask AI answers). - It should health-check
GET /readyz. - The Caddy configuration shipped with Structam does all of this; any proxy that meets these rules works.
Secrets
You generate two secrets. There are no default secrets anywhere.
STRUCTAM_SECRET_KEY: 32 random bytes, base64 (openssl rand -base64 32). It seals every stored credential, every configuration file content and the server identity key that agents pin. Keep a copy outside the database backups (backup and restore).- The database password.
Hosts with agents
| Platform | Architectures | Service |
|---|---|---|
| Linux | amd64, arm64 | systemd unit structam-agent; hosts without systemd are refused by the install script |
| macOS | amd64, arm64 | launchd daemon com.kazlabs.structam-agent |
| Windows | amd64, arm64 | Windows service structam-agent |
- Outbound HTTPS from each host to the server's public URL. Nothing connects to the agents.
- Hosts never need internet access: the server serves the agent builds it carries.
- Root (Administrator on Windows) to install the agent.
Status. The Windows agent has not been run on a real Windows host: its collectors are built and vetted for Windows, and their parsers are tested against recorded output, but no live Windows run is recorded, and install.ps1 has only been run in PowerShell 7 on Linux.
Network flows
| From | To | Port | What |
|---|---|---|---|
| agents | public URL (the reverse proxy) | 443 | one WebSocket per agent; install scripts and agent downloads |
| browsers, API clients | public URL | 443 | web UI and API |
| NetBox | public URL | 443 | webhooks (optional) |
| InfraDB | public URL | 443 | audit sink and Prometheus federation (optional) |
| reverse proxy | Structam nodes | 8080 (STRUCTAM_HTTP_ADDR) | HTTP |
| Structam nodes | PostgreSQL | 5432 | the database |
| Structam nodes | NetBox, InfraDB, LDAP, identity providers, model API, SIEM | as configured | integrations you turn on |
| one Structam node | https://license.kazlabs.co | 443 | licence activation and a daily heartbeat (licensing) |
| a Structam node | ranges you add as discovery targets | 22, 80, 443, 445, 3389, 5985, 5986, 8443 | TCP connect sweeps, only if you add targets (discovery) |
Outbound HTTPS from the server honours HTTPS_PROXY and NO_PROXY (security model).
Browsers
The web UI is built for current evergreen browsers (an ES2022 build target). There is no tested browser list for 0.1.0.
Questions the docs do not answer?
Ask the people who build Structam. Installation media and licences come from KazLabs.