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 provides | You provide |
|---|---|
| Container images and their cryptography | A FIPS-mode kernel with a validated module, where your baseline needs one |
| Application TLS and audit records | Encrypted volumes |
| Roles and access control | The trust chain for your smartcard issuers |
| The stack's topology and network isolation | Time synchronisation |
| The compliance profiles | A SIEM, and shipping the audit records to it |
| Generated secrets and an internal PKI | The host firewall |
| Requirement | Details |
|---|---|
| A container host | Linux 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 setup | Setup 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. |
| Memory | About 2.7 GB reserved across the services, up to about 10 GB, plus the host's own needs. The table below lists each service. |
| Disk | Room for 90 days of metrics and flow records, on encrypted storage. The amount grows with the fleet. |
| Encrypted volumes | Every 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 execution | The identity service runs its FIPS self-test from /tmp, so /tmp must allow execution. |
| Accurate time | Sign-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 port | 443/tcp, and nothing else. See Hosting and Exposure for the firewall rules. |
| Service | Reserved | Limit |
|---|---|---|
| State and audit store | 512 MB | 2 GB |
| Identity service | 768 MB | 2 GB |
| API server, with the signer and an admin node per realm (about 50 MB each) | 512 MB | 2 GB |
| Operator console | 256 MB | 1 GB |
| Telemetry intake | 128 MB | 1 GB |
| Metrics store | 512 MB | 2 GB |
| Front door | 64 MB | 256 MB |
| Tunnel, with tunnel ingress only | 64 MB | 256 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.


Preparing the Inputs
Run these steps in the guardian checkout on the host.
$ git switch main
The branch your checkout is on chooses conflux's release:
latestonmain, anddev-latestondev. 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.
| Option | When to use it |
|---|---|
--channel latest | Use it for a checkout on another branch, a detached checkout or a host without git. --channel dev-latest takes conflux's dev builds. |
--conflux FILE | Use 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 DIR | Works 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.
| Setting | Default | Meaning |
|---|---|---|
GUARDIAN_HOST | None | The address that operators and machines use: a DNS name or an IPv4 address, with no scheme, port or path. See Address and Certificate. |
GUARDIAN_PROFILE | us-dod | The compliance profile: us-dod, au-ism or uk-mod. See Compliance Profiles. |
GUARDIAN_MODE | standalone | Where operator accounts live: in the identity service, or in your own identity provider with brokered. |
GUARDIAN_HOST_IP | None | This 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_INGRESS | direct | How browsers and machines reach the front door: direct, on the published 443, or cloudflare, through a Cloudflare tunnel. See Ingress. |
GUARDIAN_TLS | internal | Where 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_KEY | None | With own: your certificate, PEM with its chain, and its private key. Setup checks them and copies them into the secrets directory. |
GUARDIAN_ACME_EMAIL | None | Required with acme: where the certificate authority sends expiry notices. |
GUARDIAN_BIND_ADDR | 0.0.0.0 | The host address that publishes port 443. |
GUARDIAN_CONSOLE_CONTROL | on | Whether operators act on running machines from the console, or only from conflux. See Console Control. |
GUARDIAN_NODE_CREDENTIAL_DAYS | 90 | How 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_DAYS | 180 | How long a sub-realm delegation lasts, from 1 to 3650 days, and at least as long as a machine credential. |
GUARDIAN_RENEWAL_LEAD_DAYS | 14 | How 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_UPDATES | on | Whether 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, _TEXT | The profile's | Your own system-use notice in place of the profile's. See System-Use Notice. |
NODE_BASE | node:26-trixie-slim | The Node.js base image. To use FIPS, name the FIPS base here. See FIPS. |
DEBIAN_BASE | The pinned base | The 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_PREFIX | None | Use 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.
| Setting | Default | Range | Meaning |
|---|---|---|---|
GUARDIAN_INBAND_INTERVAL_SECONDS | 30 | 5 to 300 | How often each realm's admin node asks every machine for its current readings. |
GUARDIAN_METRIC_INTERVAL_SECONDS | 60 | 5 to 3600 | How 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_CONTROL | Operators act from | How it works |
|---|---|---|
on | The console | For 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. |
off | conflux, on their own machine | No 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.


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.envand never prints it.
$ ./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-startwrites the secrets directory without starting the stack. You cannot combine it with--first-admin, which needs a running stack.
After the First Run
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.