VeilNet

Deploying a Guardian

Install the guardian stack on one host from your realm credential and a settings file. Setup brings in conflux's release for you.

Host Requirements

The guardian provides the software stack. You provide the host and keep it secure. Check that the host meets each of these requirements.

The guardian providesYou provide
Container images and their cryptographyA FIPS-mode kernel with a validated module, where your baseline needs one
Application TLS and audit recordsEncrypted volumes
Roles and access controlThe trust chain for your smartcard issuers
The stack's topology and network isolationTime synchronisation
The compliance profilesA SIEM, and shipping the audit records to it
Generated secrets and an internal PKIThe host firewall
RequirementDetails
A container hostLinux on x86_64, with Docker and its Compose plugin, openssl, python3 and git. Setup checks for these before it does anything else.
A route to GitHub at setupSetup reads conflux's release from GitHub, and the API server's image is built on it. A host with no route there builds from a release you carry in. See Air-Gapped Installation.
MemoryAbout 2.7 GB reserved across the services, up to about 10 GB, plus the host's own needs. The table below lists each service.
DiskRoom for 90 days of metrics and flow records, on encrypted storage. The amount grows with the fleet.
Encrypted volumesEvery named volume needs encryption at rest: the state store's databases, the audit records, the identity service's data, the signer's and admin nodes' anchor state, the conflux release the guardian keeps current, the collector's credentials, the metrics and flow records, the front door's certificates and the internal PKI's keys. Use your own volume encryption.
/tmp that allows executionThe identity service runs its FIPS self-test from /tmp, so /tmp must allow execution.
Accurate timeSign-in tokens and certificates depend on it, and clock drift causes intermittent sign-in failures. Machines read the guardian's time when they renew, and start an anchor only if their own clock is within ten minutes of it. Run NTP.
One inbound port443/tcp, and nothing else. See Hosting and Exposure for the firewall rules.
Memory, by service
ServiceReservedLimit
State and audit store512 MB2 GB
Identity service768 MB2 GB
API server, with the signer and an admin node per realm (about 50 MB each)512 MB2 GB
Operator console256 MB1 GB
Telemetry intake128 MB1 GB
Metrics store512 MB2 GB
Front door64 MB256 MB
Tunnel, with tunnel ingress only64 MB256 MB

Each limit sits well above its service's normal use. The limits are there only to stop a fault in one service from affecting the others.

The console's Stack & compliance page, at the foot of the rail, shows the same split. It lists what the stack checks itself, what you must confirm, the conflux release it serves and the one published port.

Stack & complianceGuardian console
Stack & compliance: service health, the post-install checklist, platform services, the compliance profile and the conflux release this guardian serves.

Preparing the Inputs

Run these steps in the guardian checkout on the host.

0 of 3 done
  1. $ git switch main

    The branch your checkout is on chooses conflux's release: latest on main, and dev-latest on dev. Setup builds the API server on that release. The signer, each realm's admin node and the conflux your machines install all come from it. You copy nothing anchor-related in by hand.

    The image build checks every file of the release against its digests, and refuses a privileged anchor build or a control tool that is not the locked-down one. The API server checks at start that its signer is pinned to the tree your realm credential descends from.

Choosing the conflux release yourself
OptionWhen to use it
--channel latestUse it for a checkout on another branch, a detached checkout or a host without git. --channel dev-latest takes conflux's dev builds.
--conflux FILEUse it on a host with no route to GitHub. Setup builds from the one linux/amd64 conflux build you give it, checks it as it checks a fetched one, and never replaces it.
--conflux DIRWorks like --conflux FILE, but takes a whole release directory: its SHA256SUMS and every build it lists. The console then serves every platform's build.

Settings

On the first run, setup copies the values from .env.example into secrets/.env. From then on, secrets/.env is the configuration. To change a setting, edit secrets/.env and run ./setup.sh again.

SettingDefaultMeaning
GUARDIAN_HOSTNoneThe address that operators and machines use: a DNS name or an IPv4 address, with no scheme, port or path. See Address and Certificate.
GUARDIAN_PROFILEus-dodThe compliance profile: us-dod, au-ism or uk-mod. See Compliance Profiles.
GUARDIAN_MODEstandaloneWhere operator accounts live: in the identity service, or in your own identity provider with brokered.
GUARDIAN_HOST_IPNoneThis host's IPv4 address as machines reach it, with no port. The front door answers on it, and its certificate names it as well as GUARDIAN_HOST. With tunnel ingress, machines export telemetry to it. See Ingress.
GUARDIAN_INGRESSdirectHow browsers and machines reach the front door: direct, on the published 443, or cloudflare, through a Cloudflare tunnel. See Ingress.
GUARDIAN_TLSinternalWhere the certificate comes from: internal, own or acme. With acme, the certificate names only GUARDIAN_HOST, and ingress must be direct.
GUARDIAN_TLS_CERT, GUARDIAN_TLS_KEYNoneWith own: your certificate, PEM with its chain, and its private key. Setup checks them and copies them into the secrets directory.
GUARDIAN_ACME_EMAILNoneRequired with acme: where the certificate authority sends expiry notices.
GUARDIAN_BIND_ADDR0.0.0.0The host address that publishes port 443.
GUARDIAN_CONSOLE_CONTROLonWhether operators act on running machines from the console, or only from conflux. See Console Control.
GUARDIAN_NODE_CREDENTIAL_DAYS90How long a machine credential lasts, from 1 to 90 days. This lifetime also sets the revocation latency, and no other setting changes it.
GUARDIAN_DELEGATION_DAYS180How long a sub-realm delegation lasts, from 1 to 3650 days, and at least as long as a machine credential.
GUARDIAN_RENEWAL_LEAD_DAYS14How many days before expiry the guardian renews a sub-realm delegation and, when online, the realm credential. It ranges from 1 to 365, and must be shorter than a delegation.
GUARDIAN_CONFLUX_UPDATESonWhether the API server asks GitHub every hour for a newer conflux release of its channel, and moves onto it once its signer has signed beneath your realm. Set it to off on a host with no route out. A conflux you gave setup is never replaced.
GUARDIAN_LOGIN_BANNER_ENABLED, _TITLE, _TEXTThe profile'sYour own system-use notice in place of the profile's. See System-Use Notice.
NODE_BASEnode:26-trixie-slimThe Node.js base image. To use FIPS, name the FIPS base here. See FIPS.
DEBIAN_BASEThe pinned baseThe Debian base for the identity service's image. To build behind a proxy that inspects TLS, set it and NODE_BASE in the shell that runs setup, and name bases that trust the proxy's certificate authority.
COMPOSE_PROJECT_NAME, GUARDIAN_IMAGE_NAMESPACE, GUARDIAN_VOLUME_PREFIXNoneUse these only for a second stack on the same host. Set all three in that checkout's secrets/.env, so each stack has its own project, images and certificate volumes. Otherwise, image and volume names start with guardian.

Brokered sign-in needs eleven more values from your identity provider. See Sign-in Modes.

Telemetry has no setting, because every machine reports.

Telemetry intervals

Two settings control how often telemetry is collected. The defaults suit most fleets. A shorter interval means more telemetry traffic and more stored data.

SettingDefaultRangeMeaning
GUARDIAN_INBAND_INTERVAL_SECONDS305 to 300How often each realm's admin node asks every machine for its current readings.
GUARDIAN_METRIC_INTERVAL_SECONDS605 to 3600How often each machine exports its metrics. The value is written into each manifest, so a change reaches only machines commissioned after it.

Console Control

GUARDIAN_CONSOLE_CONTROL decides where operators act on running machines: from the console, or from conflux. These actions are blocking and unblocking machines, moving them between compartments and setting the networks a gateway serves.

GUARDIAN_CONSOLE_CONTROLOperators act fromHow it works
onThe consoleFor each action, the realm's admin node is lent the one power that the action needs, for ten minutes. Then it returns to its standing credential.
offconflux, on their own machineNo admin node ever holds a power that acts on machines. Instead, an operator issues a control credential from the realm's page or Protect › Access. It is a conflux manifest that lasts 1, 4, 8 or 24 hours. The console shows it once, keeps no copy and never renews it. The console shows what is in force but takes no action.

In both modes, the realm's Control activity records every action and every control credential issued, including refusals.

To change the setting, edit secrets/.env and run setup:

$ $EDITOR secrets/.env         # GUARDIAN_CONSOLE_CONTROL=off
$ ./setup.sh

Setup recreates the API server with the new value. Its summary does not show this setting, so check it on Settings › Realm control.

Settings › Realm controlGuardian console
Settings › Realm control, with console control off, so control orders come from the conflux CLI.

With console control off, control orders come from the conflux CLI.

Running Setup

To set up the stack and create the first administrator, run:

$ ./setup.sh --first-admin a.morgan

Setup works through these stages in order:

  • It reads the conflux channel from your checkout's branch, or from --channel or --conflux, and which release that channel names. It checks every setting and the credential, and lists every problem before it changes anything.
  • It writes the deployment's secrets, its internal certificate authority and its settings into the secrets directory. It reissues any service certificate with 30 days or fewer left, and the service that holds it loads the new one.
  • It builds and starts the stack, then waits up to 15 minutes for every service to become healthy. With direct ingress, it removes a tunnel that an earlier run started.
  • It applies the settings to the identity service: the console's address, the account-management client's secret and roles, and the sign-in notice in both of its realms. It holds both realms, the administration realm and the guardian's own, to the profile's lockout, password rules, session lifetimes and audit events. It also sets up the client that reads the identity service's sign-in records into the guardian, and the role for outside auditors.
  • On a standalone deployment, it creates the first administrator, unless an account with that name exists. It writes the temporary password to secrets/first-admin.env and never prints it.
A first run, abridged
$ ./setup.sh --first-admin a.morgan
==> Preflight
    docker 28.3.2, compose 2.39.1
    openssl 3.0.17
    conflux      latest, for the main branch
    conflux      latest is the release whose SHA256SUMS is 4f0c…e91a
==> Settings, from .env.example
    credential   Northern Command -- tier2, realm named by its chain, delegated until 2026-10-31T00:00:00Z, renewal online
    profile      au-ism
    accounts     standalone
    address      https://guardian.example.gov -- the app, sign-in at /auth, node renewal
    certificate  internal
    ingress      direct, 443 published on 0.0.0.0
    telemetry    every manifest exports to guardian.example.gov:443, carrying the stack CA to verify it with
==> Node base image
    …
==> Settings file
    wrote secrets/.env from .env.example
    derived the URLs, OTLP endpoint, compose profile, conflux channel, node uid and use-notice flag into secrets/.env
    linked ./.env to secrets/.env, for docker compose
==> Internal PKI
    generated internal CA (P-384, 3650d)
    …
==> Realm credential
    secrets/guardian_credential is read-only (0444), as every secret here is
==> Starting the stack
    building the images and starting every service -- the first run takes several minutes
    every service is up
    created a.morgan, a guardian admin; its temporary password is in ./secrets/first-admin.env

Guardian is running.

The preflight names the conflux channel, the branch it comes from and the release, by the SHA-256 of its SHA256SUMS. The run ends with Guardian is running. when the stack is up, and its summary's conflux line says that the channel is kept current hourly.

  • The secrets directory holds the deployment. Everything the containers take from the host is written there, including the settings. To back up the configuration, back up this directory. See Backup and Restore.
  • You can run setup again at any time. It fills in what is missing and updates anything that depends on the settings, such as a certificate that no longer names the host, or that has 30 days or fewer left. It leaves existing secrets unchanged.
  • --no-start writes the secrets directory without starting the stack. You cannot combine it with --first-admin, which needs a running stack.

After the First Run

0 of 4 done
  1. On a standalone deployment, sign in to the console with the temporary password from secrets/first-admin.env. Set up a one-time code and choose a new password, then delete the file.

    Create every other account in Manage › People. In brokered mode, your identity provider holds the accounts, and its groups set the roles.