Appearance
Configuration
Every change to Spalto's configuration is stored as a numbered version. These commands list and compare versions, apply a file as a new version, roll back, copy from another node, and recover versions diverged during a split pair.
waap config versions
Lists configuration versions: number, time, author, source, comment, and which one is active.
sh
waap config versions [-limit N]-limit defaults to 20.
waap config show
Prints a version's document. Without a number it prints the active version.
sh
waap config show [N]waap config diff
Shows what changed from version A to version B.
sh
waap config diff [A [B]]- With no argument: from the active version's parent to the active version.
- With one argument: from A to the active version.
waap config apply
Imports a file as a new version and rolls it out: inspection services first, then Envoy.
sh
waap config apply -f FILE -m WHYOn a standby node of a pair, changes are refused. Apply them on the active node.
The command accepts format 1 (per-application upstream) and format 2 (server_pools and application server_pool).
- Format 1 is upgraded without merging identical pools.
- New writes are stored in format 2 once the peer supports it, or on a standalone node.
- While a paired peer reports
config_format < 2, or has not reported a capability, format 1 input stays format 1 and format 2 input is refused withha.format_behind. This also applies to YAML editor and settings writes, and toconfig pull -apps, whose selected-application copy produces format 2. - Startup creates one audited
systemmigration version if the active document is format 1. A standby never creates it. Deferred migration resumes after the peer is upgraded or promoted. - Envoy cluster names become
pool/NAME, replacingapp/NAME. Health checks restart on the new cluster. - The health-check Host keeps the application hostname default when no pool TLS server name is set.
- Shared pools use the first application's hostname in configuration order.
waap config diverged
Lists the configuration versions made on one node while a pair was split and replaced by the other node's version with the same number. Without N it shows the list. With N it shows that version's document.
sh
waap config diverged [-hash H] [N]-hash (or its first characters) picks one version when several share a number.
waap config diverged -apply
Applies a diverged version again, with its own files, as a new version.
sh
waap config diverged -apply -m WHY [-hash H] Nwaap config pull
Copies another node's configuration to this node. This node fetches the other node's active configuration, with its certificate, key and CA files, over the other node's management API. It accepts only the certificate with the given SHA-256 fingerprint.
sh
waap config pull -from https://HOST:PORT -fingerprint SHA256 [-token SECRET] [-apps A,B] [-apply -m WHY]| Flag | What it does | Default |
|---|---|---|
-from URL | The other node's management address, https://HOST:PORT. | |
-fingerprint SHA256 | SHA-256 fingerprint of the certificate to accept. | |
-token SECRET | API token of an administrator with access to every application on the other node. Set the WAAP_PULL_TOKEN environment variable instead to keep the token out of the process list. | |
-apps A,B | Copies only these applications. Each replaces the one with the same name here, or is added. Without it, the whole document is copied, listeners, management and ha settings included. | |
-apply | Applies the copy. Without it, the command shows the changes and applies nothing. | |
-m WHY | Reason recorded with the change. Needed with -apply. |
The result is a new local version, so audit and rollback work as usual. The copy is one-way and manual.
waap config rollback
Makes version N's configuration active again, as a new version, with N's own stored certificate and key files.
sh
waap config rollback -m WHY NA format 1 version is upgraded before activation when the peer supports format 2. Earlier history stays as stored. config diff compares the upgraded meaning, so a format conversion alone produces no changes.