Getting started
From a bundle to a running, activated platform with its first hosts reporting. Plan for about thirty minutes, most of it waiting for the first start.
Full procedure: 2. Installation.
Requirements
| You need | Details |
|---|---|
| A Linux server | Any current 64-bit distribution: Ubuntu, Debian, RHEL, Rocky or Alma. Intel/AMD or ARM; the bundle must match the server's CPU (uname -m: x86_64 or aarch64). |
| Size | 4 CPU cores, 8 GB RAM and 40 GB free disk for a small estate. Give it more as the number of hosts grows. |
| Docker | Docker Engine 24 or newer with the Compose plugin, installed and running before you start, and usable by the account you install with. The bundle does not contain Docker. |
| Tools | bash, curl, tar, and sha256sum or shasum. openssl only if the installer is to create a self-signed certificate. |
| Internet | Not required. The container images ship inside the bundle (about 830 MB per CPU architecture), so Lawliet installs, enrols its agents and upgrades them air-gapped. |
Network
| Port | Direction | Purpose |
|---|---|---|
443/tcp | Users and agents to the server | Console, API and agent heartbeats |
80/tcp | Optional | Redirects to HTTPS |
5514/udp, 5514/tcp | Devices to the server | Syslog from network devices and servers |
123/udp | Server to a time source (outbound) | Outbound NTP time sync. The server depends on it; nothing listens on this port. Signed commands are refused when clocks drift too far. |
Monitored hosts open no port at all. Every connection starts at the agent.
Full procedure: 9.2 Network ports.
Docker on a server without internet
The installer checks for Docker and Compose and stops if either is missing; it does not install them. On an air-gapped server, install Docker first from files brought in on media: Docker's .deb or .rpm packages for your distribution (containerd.io, docker-ce, docker-ce-cli, docker-buildx-plugin and docker-compose-plugin), or an internal mirror that carries them. Then check docker info and docker compose version before you run the installer.
Full procedure: 2.2 Install Docker on a server without internet.
Install
Copy the bundle to the server, check its SHA-256 against the one we sent, then:
tar xzf lawliet-docker-*.tar.gz
cd lawliet-*/
sudo ./lawliet install
The installer checks the machine and the images in the bundle, then asks a few questions: the address users and agents will reach, HTTPS or lab mode, and your own certificate or a self-signed one. It loads the images shipped inside the bundle (nothing is built or pulled), generates every secret, starts the stack and verifies the API, the console and the database schema. It writes nothing until you confirm its summary. It ends by printing the console address and the administrator password (shown once, and replaced at first sign-in), and, when the bundle carries no licence, the installation fingerprint.
Check the address the installer proposes. If it shows localhost or the wrong network interface, type the server's IP address or host name: it is what your browser and every agent will connect to. A self-signed certificate is issued for that address, IP addresses included.
Full procedure: 2.5 Run the installer.
Seal the keys and unlock on restart
Lawliet 1.6 and newer can seal the data-encryption key and the token-signing key under a passphrase, so they live only in a sealed keystore and not in a file that anyone reading the server can use to forge a token or decrypt data at rest. Sealing is optional, and recommended on a production server. On the server, once the stack is running:
sudo ./lawliet seal
It asks for a passphrase, then the same passphrase again, and wraps the keys. Nothing is re-encrypted and no session ends. Keep the passphrase with your break-glass secrets: lose it and the sealed keys are lost.
Once sealed, the server stays locked after every restart until you unlock it. While it is locked, every request returns HTTP 503 and /health reports locked. Sealing does not stop the running server; the lock takes effect from the next restart.
On a sealed server, after the first start and after every reboot or restart, load the keys back in before it will serve:
sudo ./lawliet unlock
It asks for the passphrase and, on success, reports Unlocked. The server is serving. A server you have not sealed needs no unlock and starts straight into service.
First sign-in
- Open the console address and sign in with the one-time password.
- Choose your own password: at least 12 characters, common passwords refused.
- Set up two-factor authentication with any TOTP app, and save the ten recovery codes.
- Activate the licence (below). Until then nothing else opens.
- Create a second approver under Settings, Users: a second Super administrator, or a Left and a Right Security Officer.
A fresh installation has one administrator, and nobody approves their own request. Until a second approver exists, critical actions run on the administrator's one signature, each recorded in the audit trail, and every console page shows that four-eyes is inactive. Once the second approver has signed in and enrolled two-factor, four-eyes applies in full. See dual control.
Full procedure: 2.9 First sign-in.
Activate
Until a licence is installed, the console opens on its activation screen. It shows the installation fingerprint, which is also printed by ./lawliet licence on the server.
- Send the fingerprint to us. It identifies this installation and nothing else: no host name, address or data.
- Paste the licence key you receive into the activation screen (later: Settings > Platform, panel License) and press Activate licence, or run
sudo ./lawliet licence <key-file>on the server.
The licence is checked on your server. Nothing is sent anywhere, and the key works on this installation only.
Full procedure: 2.10 Activate the licence.
Enrol your hosts
On the server, ./lawliet token prints a ready-to-run install command for Linux, Windows and macOS, with the server address, the enrolment token and, for a self-signed certificate, the certificate flags filled in. The same commands are under Environment > Hosts > Install agent in the console. Copy them from there rather than typing them.
With a self-signed certificate, first run ./lawliet tls --export on the server and copy lawliet-server.pem to each host. The Linux command then looks like this (one line):
d="$(mktemp -d)" && curl -fsSL --cacert /path/to/lawliet-server.pem -o "$d/install.sh" https://your-server/api/v1/agents/download/linux && head -c 2 "$d/install.sh" | grep -q '^#!' && sudo bash "$d/install.sh" --server https://your-server --token <enrolment-token> --ca-cert /path/to/lawliet-server.pem; rc=$?; rm -rf "$d"; [ "$rc" -eq 0 ]
Within a minute the host appears under Environment > Hosts. See Agents for Windows and macOS.
The install command is one of three ways to install an agent. Hosts this server can log in to over SSH or WinRM can be installed from the console with remote deployment, and a host with no route to download anything installs from an offline agent package.
Full procedure: 11. Install agents on Linux (and macOS), 12. Install agents on Windows.
Add your team
Create an account for each person under Settings, Users, and give each a role. Every new user sets their own password and enrols two-factor at first sign-in. If you use the security officer roles, see dual control.
People can also sign in with their Active Directory account, with roles taken from their groups: see directory sign-in. Keep the local super administrator as your way back in.
Full procedure: 15. Users, roles, two-factor, API keys, approvals and the audit trail.