Licensing

Evaluation mode with up to 25 agents, licence states (valid, grace, restricted), activation online and offline, the daily heartbeat, and what a licence never does.

On this page

Status. Tested against an in-process fake of the licence server in the product's package tests on PostgreSQL: envelope verification, the product and installation checks, online activation, heartbeats, offline import, every state transition and the tamper cases. Not yet run: against the KazLabs licence server, which does not issue Structam licences yet.

Structam checks its licence against the KazLabs licence server (STRUCTAM_LICENCE_SERVER, default https://license.kazlabs.co). A licence never stops Structam: in every state the inventory stays readable and enrolled agents keep reporting.

Evaluation mode

The KazLabs licence server does not issue Structam licences yet, so every installation today runs in evaluation mode: every feature, and up to 25 enrolled agents. Talk to KazLabs about installations that need more.

States

StateWhenEffect
unlicensed (evaluation)no licence activatedall features, up to 25 enrolled agents
valida verified licence, not expired, checked recentlythe licence's limits
graceexpired, or not checked for 72 h, and within the grace periodas valid; the System page warns
restrictedgrace is over, or the licence was revoked by a signed replynew enrolments are refused; existing agents keep reporting, and all data stays readable

The only limit enforced is the number of enrolled, non-revoked agents, checked when an agent enrols; an enrolled agent always connects. Features named in a licence are recorded and shown; this release gates nothing else on them.

Activating

System → Licence (system.manage), or on a server:

structam licence show                     # state, licence, this installation's node fingerprint
structam licence activate -id LIC-XXXXXXXX -key-file /root/activation-key     # online; key from a file or stdin

The activation key is read from a file or standard input, never from the command line. Every node of a cluster shares one activation: the node fingerprint is derived from an installation id stored in the database. The activation answer is sealed in the database.

Offline: run structam licence node-id, have the activation made elsewhere for that fingerprint, then:

structam licence import activation.json

Licences carrying the offline feature are not expected to check in and do not go stale.

The heartbeat

One node at a time re-activates (which brings renewals) and sends a heartbeat when it takes the task and every 24 h, through the outbound proxy settings. It reports the number of enrolled agents and enabled users, the binary's SHA-256 and its version. This is the only connection Structam makes to KazLabs. A reply counts only when its signed part verifies under a key compiled into the binary and names this licence, this installation and the nonce sent.

Verification

  • Licences are Ed25519-signed documents verified only with keys compiled into the binary, and checked for the product structam and this installation's fingerprint. Nobody can make or edit a licence, trust a key of their own, or use another product's or another installation's licence.
  • Setting the clock back gains nothing: time never goes below a time the licence server signed, nor below the build date. Editing the stored licence state gains nothing either: the state is judged from the signed evidence.
  • Blocking the licence server delays the outcome by the grace period at most: an online licence counts as unchecked 72 h after its last verified contact, and becomes restricted when its grace days are over.

State transitions are audited as licence.state, activations as licence.activate.

Questions the docs do not answer?

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

Talk to us