Appearance
Server commands
The server commands start the product: the control plane, the inspection service and Envoy, plus first-run setup, configuration checks, development certificates and GeoIP databases.
waap run
Runs the control plane and the inspection service in one process and starts Envoy (under the guard process, see waap envoy-guard).
sh
waap run -config /etc/waap/waap.yaml -data-dir /var/lib/waap -runtime-dir /run/waap| Flag | What it does | Default |
|---|---|---|
-validation-workers | Applications a validation scans at once, up to 4. Lower it if the host runs out of memory. | 2 |
-config FILE | Configuration file. Imported as version 1 when the policy store is empty, ignored afterwards (use config apply or SIGHUP to import changes). | |
-data-dir DIR | Databases (waap.db), management certificate, stored files, pair settings (ha/). Created with mode 0700. | data |
-runtime-dir DIR | Unix sockets and the generated Envoy bootstrap. Mode 0700. Keep it short on macOS: socket paths are limited to 104 bytes. | $TMPDIR/waap |
-node-id ID | This node's identity: Envoy node, events, audit chain, pair membership. Must stay the same across restarts. In a pair, letters, digits, ., _, - (at most 63). | host name |
-envoy PATH | Envoy binary. "" starts Envoy yourself with the printed command. | envoy |
-mgmt-addr HOST:PORT | Management API and web UI (HTTPS). "" disables it. | 127.0.0.1:9443 |
-mgmt-cert FILE, -mgmt-key FILE | Management certificate and key (PEM). Without them, a self-signed pair is created in -data-dir and renewed 30 days before expiry. | |
-metrics-addr HOST:PORT | Prometheus metrics. "" disables it. | 127.0.0.1:9464 |
-listener-address NAME=HOST:PORT | Binds the configured listener NAME to this address on this node only (repeatable). Per node, never replicated: for example, to bind each node of a pair to its own interface address. | |
-log-level LEVEL | debug, info, warn, error. | info |
Signals: SIGHUP imports the -config file as a new version. SIGINT and SIGTERM stop Spalto gracefully (Envoy is stopped too).
waap setup
First-run setup of a running node. It creates the first administrator (role admin, all applications) over the local admin socket and prints the console address.
sh
waap setup [-user admin] [-password-stdin] [-wait 30s] [-runtime-dir DIR]| Flag | What it does | Default |
|---|---|---|
-user | Name of the first administrator. | admin |
-password-stdin | Reads the password from standard input instead of generating one. | off |
-wait | How long to wait for the service to answer. | 30s |
-runtime-dir | Runtime directory of the running node. | $WAAP_RUNTIME_DIR, else /run/waap when a packaged node runs there, else the temporary directory |
Without -password-stdin a 24-character password is generated and printed once on standard output. It is never logged. The command refuses with exit 1 when an administrator already exists. The -runtime-dir default applies to every admin command. Needs the privileges of the waap user or root.
waap control
The control plane alone: the policy store, the Envoy configuration server, the management API, SIEM export and the pair service. It takes the same flags as waap run, except that metrics default to 127.0.0.1:9465.
It does not start an inspection service. Run waap inspect next to it.
waap inspect
The inspection service alone.
- Without
-configit follows the control plane overnode.sockin-runtime-dirand waits for it. - With
-configit runs standalone from the file.
| Flag | What it does | Default |
|---|---|---|
-config | Configuration file, for standalone operation. | |
-data-dir | Data directory. | |
-runtime-dir | Runtime directory. | |
-node-id | This node's identity. | |
-metrics-addr | Prometheus metrics address. | 127.0.0.1:9464 |
-log-level | Log level. |
waap validate
Checks a configuration file without running it, and prints a summary.
sh
waap validate -config FILEThe check covers syntax, references, certificates, block pages and rules. The summary lists, per application, its mode, signatures, API protection (api=off, or its effective mode) and failure policy. Both configuration formats 1 and 2 are accepted.
For format 1 it prints format 1 upgraded: N pools created. Each application gets its own pool, including when servers are identical. The file is unchanged. The command exits with 1 on any error.
waap devcert
Writes a self-signed certificate NAME.crt and key NAME.key for local testing.
sh
waap devcert -name NAME [-dir DIR] [-days N] HOSTNAME...| Flag | What it does | Default |
|---|---|---|
-name | File base name for the certificate and key. | |
-dir | Output directory. | configs/dev-certs |
-days | Validity in days. | 30 |
waap geoip update
Downloads this month's DB-IP Lite database (CC BY 4.0) to -out and replaces the file atomically after checking it.
sh
waap geoip update [--city | --asn] [-out FILE] [-url URL]| Flag | What it does | Default |
|---|---|---|
--city | Downloads "IP to City Lite". Give -out a file of your own, such as /var/lib/waap/city.mmdb, and use it in enrichment.city_database. | |
--asn | Downloads "IP to ASN Lite". Give -out a file of your own, and use it in enrichment.asn_database. | |
-out | Output file. | data/country.mmdb (country database) |
-url | Downloads from a mirror instead. Accepts .gz or plain MMDB. |
By default the country database is written; point geoip.database at it (absolute path). The running Spalto reloads a changed file.
The data requires the attribution "IP data by DB-IP.com" with a link to https://db-ip.com wherever results are shown.
waap geoip status
Shows the databases the running configuration names (geoip.database, enrichment.city_database, enrichment.asn_database): path, whether it loads, its build date and size, whether enrichment is on, and the attribution line.
sh
waap geoip status [-json] [-runtime-dir DIR]See the admin guide, section 33.6.
waap envoy-guard
Internal. waap run starts it, never an operator by hand. It runs Envoy and stops it when Spalto exits, even when Spalto is killed, so Envoy never serves without inspection or keeps the ports.