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

ItemRequirement
Operating systemLinux on amd64 or arm64
Binaryone static binary, structam, with the web UI built in; also shipped as a container image (distroless, non-root user 65532)
Disk on the servernone for Structam itself: everything is kept in PostgreSQL
Rolesstructam 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 doctor fails 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_connections for 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 unless STRUCTAM_INSECURE_DEV=on, which is for development only.
  • It must pass WebSocket upgrades on /agent/v1/connect and must not buffer event streams (/api/v1/stream and 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

PlatformArchitecturesService
Linuxamd64, arm64systemd unit structam-agent; hosts without systemd are refused by the install script
macOSamd64, arm64launchd daemon com.kazlabs.structam-agent
Windowsamd64, arm64Windows 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

FromToPortWhat
agentspublic URL (the reverse proxy)443one WebSocket per agent; install scripts and agent downloads
browsers, API clientspublic URL443web UI and API
NetBoxpublic URL443webhooks (optional)
InfraDBpublic URL443audit sink and Prometheus federation (optional)
reverse proxyStructam nodes8080 (STRUCTAM_HTTP_ADDR)HTTP
Structam nodesPostgreSQL5432the database
Structam nodesNetBox, InfraDB, LDAP, identity providers, model API, SIEMas configuredintegrations you turn on
one Structam nodehttps://license.kazlabs.co443licence activation and a daily heartbeat (licensing)
a Structam noderanges you add as discovery targets22, 80, 443, 445, 3389, 5985, 5986, 8443TCP 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.

Talk to us