Sparewall — Design#

Oct 9, 2026 · @Steven Pritchard

Sparewall is an open-source, image-based Linux firewall: a single node or an HA pair, configured from one versioned document, built from systemd, nftables and a small Rust coordinator.

Overview#

Sparewall turns a Linux box or VM into a firewall appliance that is upgraded and rolled back as a whole image, configured from one document, and run either standalone or as an active/standby pair. It targets homelabs and small offices first, without anything in its defaults or schema that is specific to one site.

Goals#

Scope of the first releases#

In scope Later
Standalone node or HA pair (active/standby) More than two nodes, active-active
VLANs, LACP and active-backup bonds, VM or physical ports
One WAN Multiple WANs, WAN failover, load balancing
IPv4 routing, NAT and DHCP; IPv6 routing (0.6.0): DHCPv6, SLAAC or static on the WAN, delegated or static /64s with router advertisements inside DHCPv6 on inside networks (#217), tunnels for sites without native IPv6 (#218); NAT66 and IPv6 forwards are not planned
Zone-based firewall with raw nftables rules IPsec, captive portal, multi-tenancy
WireGuard remote-access VPN; site-to-site tunnels with static WireGuard peers; WireGuard clients for chosen networks' egress Site-to-site beyond static WireGuard peers (dynamic routing, many sites)
Optional recursive DNS (Unbound), NTP, logging, metrics, health endpoints DHCP-to-DNS updates (DDNS), IDS/IPS (Suricata), dynamic routing (BGP, OSPF)
sparewall CLI and the Varlink API; a first web UI and HTTP API (0.3.0) A web UI and HTTP API covering every CLI operation (milestone 7, which 1.0 waits for)

Design principles#

  1. The coordinator is the only writer of daemon configuration; people and tools change the document, never the files.
  2. Kernel-adjacent daemons on the host, applications in containers. nftables, keepalived, conntrackd and networkd run on the host; Kea, the resolver and other application services run as Podman Quadlet containers.
  3. Every change can be undone: configuration generations with confirm-or-revert, and image deployments with bootc rollback.
  4. Secure by default, debuggable with standard tools: one network namespace for the data plane, systemd sandboxing for management services, SELinux enforcing.
  5. Intent over implementation: the document says what a service must do; providers decide how a particular daemon does it.

Architecture#

Each node has four layers: a read-only bootc image, host services that touch kernel networking state, containers for application services, and one coordinator that is the only writer of their configuration.

[embedded content: node architecture · 4 layers, one coordinator]

Clients hand the coordinator a document; it renders, tests, applies and, if unconfirmed, reverts every layer together. In a pair, the second node is identical and is reached only through a WireGuard tunnel on the sync VLAN.

Platform: a bootc image#

Sparewall ships as a bootable container image built from a Containerfile on a Fedora bootc base. Nodes bootc upgrade to new images and bootc rollback to old ones; nothing is installed on a running node.

Base OS path#

Filesystem semantics#

Path Behaviour Holds
/usr Read-only, versioned with the image OS, daemons, coordinator, Quadlet units, pinned container image references
/etc Mutable with a 3-way merge on upgrade by default; Sparewall aims to make it transient once identity provisioning is proven Nothing site-specific long term
/var Persistent, shared across deployments Configuration generations, secrets, leases, container storage, logs
/run Volatile, rebuilt every boot Daemon configs rendered by the coordinator

Image contents#

systemd-networkd, nftables, keepalived, conntrack-tools, chrony, ulogd2, podman, wireguard-tools, restic, the coordinator (sparewalld) and CLI (sparewall), Quadlet units for the containerized services with their images pinned by digest, troubleshooting tools (tcpdump, conntrack, ethtool, nft, wg), and a built-in bootstrap configuration that keeps a management interface reachable before any config has been applied.

Deployment targets and the port model#

The same image and the same config document run on a VM fed a VLAN trunk, a single-NIC mini PC, or a multi-NIC box with bonds, including a mixed pair of one VM and one physical node. The document makes this possible by separating ports (physical, per node) from networks (logical, shared); zones, gateway addresses, DHCP and policy only ever reference networks.

ports:
  fw1:
    uplink: { nic: "52:54:00:aa:00:01" }
  fw2:
    uplink: { bond: { members: ["9c:6b:00:00:00:01", "9c:6b:00:00:00:02"], mode: 802.3ad } }
networks:
  wan:   { port: uplink, vlan: 10, role: wan,
           addresses: { fw1: 10.0.10.2/24, fw2: 10.0.10.3/24 },
           vip: 203.0.113.1/29, vrid: 10, gateway: 203.0.113.6 }
  users: { port: uplink, vlan: 20,
           addresses: { fw1: 192.0.2.2/24, fw2: 192.0.2.3/24 }, vip: 192.0.2.1/24, vrid: 20 }
  sync:  { port: uplink, vlan: 4000, role: sync,
           addresses: { fw1: 10.255.0.1/30, fw2: 10.255.0.2/30 } }

Port shapes#

Shape Rendered as Notes
Single NIC, untagged .link (stable name) + .network One network per NIC
Single NIC, VLAN trunk NIC .network with VLAN=, one VLAN .netdev and .network per network Typical for VMs and one-port mini PCs
Bond, LACP Bond .netdev with Mode=802.3ad, LACPTransmitRate=, TransmitHashPolicy=, MIIMonitorSec=; members join with Bond= Switch needs a matching LAG; VLANs stack on the bond
Bond, active-backup Same with Mode=active-backup, optional PrimarySlave= No switch configuration
Several independent NICs One .link/.network per NIC, each its own port role For example wan on its own NIC

MTU (parent and VLAN) and NIC offload overrides are per port.

On libvirt with Open vSwitch#

Mixed pairs#

Give the larger node the higher VRRP priority and keep nopreempt, so the pair does not bounce when that node flaps. Size connection tracking, Kea and nft sets for the smaller node, since it must carry the full load after a failover.

The configuration document#

One versioned document describes a whole deployment, one node or a pair, and the coordinator is the only thing that turns it into daemon configuration. It is JSON on the wire and accepted or emitted as JSON or YAML; a JSON Schema shipped in the image validates it.

Conventions#

Schema reference (top level)#

Key Holds Per node?
schema The oldest schema revision that reads the document, set by the coordinator No
cluster Node names (one or two), VRRP timing, which network carries sync No
management Which network is management; anti-lockout switch and who it admits (sources) No
ports Per node: port role → NIC (MAC or PCI path) or bond (members, mode, LACP options); MTU; offload overrides Yes
networks Name → port role, VLAN, role (wan, management, sync, service), addresses, vip, extra_vips, vrid, MTU, WAN DHCP client Addresses per node
zones Name → member networks; self is built in No
objects Named address and port sets; dynamic sets filled by networkd No
policy "from->to" → default action, NAT mode, rules (named, ordered) No
forwards Named inbound port forwards (DNAT) No
raw Named raw nft statements with a hook point and order No
dhcp Per network: pools, reservations, options, lease time; provider; HA mode No
dns Enabled flag, provider, listening networks, forwarders or recursion, local records No
ntp Upstream servers; networks to serve time on No
vpn Remote-access WireGuard instances and their peers No
tls Certificates: names, ACME settings, DNS-01 provider No
logging Rule-log defaults; remote forwarding target No
metrics Mode: external scrape, local Prometheus, or off; retention No
backup Enabled flag, restic repository, schedule, credentials reference No
updates Channel, mode (manual or windowed), maintenance window and its length, background check No
provider_options Per-provider passthrough settings No

Users, API tokens and secrets are coordinator state, not document content.

A minimal document#

schema: 1
cluster: { nodes: [fw1, fw2], sync_network: sync }
management: { network: mgmt }
zones:
  wan:   { networks: [wan] }
  users: { networks: [users] }
policy:
  users->wan: { action: accept, nat: masquerade }
  wan->self:
    action: drop
    rules:
      ssh-admin: { order: 100, proto: tcp, dport: 22, src: "@admin_nets", action: accept }
dhcp:
  users: { pool: 192.0.2.100-192.0.2.199, reservations: {} }
dns: { enabled: true, provider: unbound }

(ports and networks as in the previous section.)

Configuration lifecycle#

Every change, whether a full document or a one-line set, becomes a numbered generation that is validated, rendered and applied, and automatically reverted unless confirmed. In a pair, the coordinator then pushes it to the peer and tracks whether both nodes hold and run the same configuration.

Apply, confirm, roll back#

  1. Validate: the JSON Schema, then semantic checks (overlapping subnets, reused VRIDs, rules naming missing zones, pools outside their subnet, capabilities the chosen providers lack).
  2. Render generation N: networkd files, the nft script, keepalived and conntrackd configs, provider configs, WireGuard configs.
  3. Dry-run every artifact with its own checker: nft -c -f, the DHCP provider's config test, keepalived --config-test. A change that fails steps 1–3 changes nothing on the node.
  4. Store N under /var/lib/sparewall/generations/N/, then activate it: reload only what changed, in the order given in What is atomic.
  5. Record N as the active generation in state.json. Only now is N the node's configuration: see Durable intent and restarts.
  6. Confirm window: unless Confirm(N) arrives within the requested time, the coordinator re-activates the last confirmed generation. A change that cuts off management access therefore reverts itself.
  7. Peer: once confirmed, the generation is pushed to the peer; see Pair ordering.

Generations are kept on disk with their author, timestamp and diff summary; sparewall history lists them and sparewall rollback N returns to one. A rollback is itself a new generation carrying generation N's document, so the generation it replaces stays in history and, in a pair, the rollback is pushed to the peer like any other change (a change still in its confirm window is simply discarded, since it was never pushed).

What is atomic#

Two guarantees differ in strength.

Between steps, the node runs a mixture: for example, the new firewall with the old addresses. The firewall goes first so that interfaces a change adds are filtered from the moment they appear. Steps take from milliseconds (nft) to a few seconds (a provider restart).

If a step fails, the coordinator compensates: it activates the previous generation again, against what the failed attempt may have changed, and reports the failure (ApplyFailed, the applied health check). If that also fails, the node is left running a mixture it reports as apply failed. Health is then failed, so in a pair keepalived moves the gateway addresses to the peer. The outcome is therefore not binary: the old configuration, the new one, or a reported mixture.

What happens next depends on what failed:

Recording the change (step 5) can fail too, after activation succeeded, if state.json cannot be written. The node must then run whatever the readable record names:

Durable intent and restarts#

state.json is the only record of what a node should run. It holds the active generation, the last confirmed one and any pending change with its revert target and deadline, and it is replaced atomically (written aside, then renamed). The order of steps 4 and 5 gives the rules below.

The rules hold across a power loss as well as a coordinator crash. Every file is written to a temporary name, fsynced and renamed, and then the directory is fsynced. A generation's directory and its entry in generations/ are fsynced before any state record may name it. That happens on every attempt, including a retried push of a generation already stored, because a file that exists may not have reached the disk. So the on-disk order is the order of the steps.

A generation stored but never active must never block later changes, from this node or the peer (#24).

Pair ordering#

A change is applied first on the node it was submitted to, whether that is the MASTER or the BACKUP. It is pushed to the peer only once it is confirmed there. So the confirm window, which protects the admin's own access, always covers the node the admin is talking to, and the peer never runs a change the admin has not confirmed.

On the peer, a pushed generation goes through the same validation, dry-run and activation. If activation fails partway, the peer compensates as above, then rejects the generation. A rejected generation is not pushed into the same failure again; a newer generation or sparewall sync retries. Otherwise the peer runs it pending:

  1. The pushing node confirms it over a new connection through the tunnel, proving the change left the tunnel working.
  2. The peer accepts the confirmation only if the change made no further health check fail.
  3. Unconfirmed within two minutes, or across a restart of the peer's coordinator, it reverts.

Until it is confirmed the peer does not report it as applied, so the pair shows applying and an upgrade waits. Changes are serialized: neither node pushes while either has a change pending, and the peer refuses a push that does not extend its active generation.

Changes to the sync link reverse the order, because they alter the tunnel the push travels through. That covers the cluster's nodes and sync settings (sync_network, sync_port, sync_keys), the sync network, and each node's port carrying it, and a rollback across such a change too. Such a change must change nothing else, and it cannot be made while another change is pending. The accepting node decides; the peer only follows:

  1. The accepting node stores the change without running it.
  2. It pushes the change, gated, through the current tunnel, and the peer runs it pending.
  3. Only then does the accepting node run it, pending.
  4. Prepare: it confirms the change to the peer over the new tunnel. The peer checks that nothing new fails, as for any gated push. Instead of keeping the change, it holds it in doubt.
  5. Decide: the accepting node keeps the change once the peer has prepared it and, if a confirm window was asked for, the admin has confirmed it, in either order. Otherwise it reverts: at its deadline, which is 30 seconds after the peer's, at a restart, or on a rollback. The decision is recorded in its state, and that record stays until the peer is seen to have followed it.
  6. No other change is accepted while the decision is pending, on either node. On the peer, sparewall sync --from is the explicit way out.
  7. A kept decision is shown to the peer only once it is on disk. If writing it fails, the node shows the change as still pending until the write is durable. That includes after a restart: the node syncs its state record at boot first.
  8. Follow: the in-doubt peer reads the decision record from the accepting node's status and does the same. History may have been pruned since, so the peer never takes a missing generation as a revert.
  9. In doubt, the peer never reverts on its own deadline or at a restart.
  10. While the accepting node cannot be reached, the peer switches between the old and the new link every 30 seconds to find it. Only the sync link differs between the two, and health stays degraded, not failed, so the gateway addresses do not move.

A peer that never prepared the change cannot have been counted on, so it reverts at its own deadline as usual.

If the peer cannot take the change first (it is unreachable or an older release), nothing changes on either node. With the peer unreachable, --allow-diverge applies the change locally as before, and the other node needs the same change.

OS upgrades are a separate order: the BACKUP is upgraded first, then the MASTER after it fails over (see Releases, upgrades and versioning).

What a generation carries#

Pair sync states#

Each node reports a desired hash (the confirmed generation it holds) and an applied hash (what its daemons are verified to be running).

State Condition Meaning
In sync All four hashes equal, and neither node's history is missing the other's generations Both nodes hold and run the same config
Applying Desired equal, an applied hash differs, apply in progress Normal for seconds after a change
Apply failed Desired ≠ applied on a node after the apply finished That node runs older config; alert
Behind The peer's generation is an ancestor of the local one (even with equal content: after a change and its rollback, the peer still lacks both) Push pending; retried automatically. Generations before the last are stored without being run
Diverged Desired hashes differ and neither descends from the other Changes were made on both sides; needs a decision

Divergence policy#

Lease replication, connection-state sync and the OS image version are reported separately and never count toward config sync; differing images are expected midway through a rolling upgrade.

sparewalld is a Rust daemon that owns the configuration document, renders and applies it, coordinates with the peer, and exposes everything over Varlink. It talks Varlink to systemd where systemd offers it, and uses small adapters for daemons that do not.

Interface Used for Since
io.systemd.Network Describe links; reconfigure, renew or force-renew one link Describe 257; link methods 261
io.systemd.Unit, io.systemd.Manager Unit status, transient units, reboot and soft-reboot 261
io.systemd.Job List and cancel queued jobs 261
io.systemd.Resolve, io.systemd.Resolve.Monitor Host-side lookups, DNS configuration events Earlier releases

Adapters for everything else#

Component Native control surface The adapter
nftables nft -f scripts, nft -j JSON Loads generated scripts; reads counters and set contents
keepalived notify_fifo, D-Bus, signals Turns FIFO lines into events; triggers reloads
conntrackd Its control socket via the conntrackd CLI Runs the failover sequence; reads statistics
Providers (Kea, Unbound, …) Each daemon's own control interface Implemented per provider (see Service providers)
WireGuard Netlink Reads per-peer handshake and traffic

Adapters shell out to nft and conntrackd rather than reimplementing their netlink protocols, keeping low-level code in well-tested tools.

Implementation#

Interface sketch#

interface org.sparewall.Firewall

type Generation (id: int, hash: string, base: ?int, schema: int, author: string, applied: string, confirmed: bool)

method Validate(config: object) -> (warnings: []string)
method Apply(config: object, base: int, confirm_seconds: ?int) -> (generation: Generation, changed: []string)
method Merge(patch: object, base: int, confirm_seconds: ?int) -> (generation: Generation, changed: []string)
method Patch(ops: []object, base: int, confirm_seconds: ?int) -> (generation: Generation, changed: []string)
method Confirm(id: int) -> ()
method Rollback(id: ?int, allow_diverge: ?bool) -> (generation: Generation)
method GetConfig(id: ?int) -> (config: object, generation: Generation)
method Export(id: ?int) -> (config: object)
method History(limit: ?int) -> (generations: []Generation)
method Sync(from_node: string) -> (generation: Generation)
method Health(verbose: ?bool) -> (level: string, role: string, checks: ?[]object)
method AckHealth(name: string) -> ()  # a check that stays degraded until acknowledged
method Status() -> (role: string, sync: object, links: object, vrrp: object, conntrack: object, services: object)
method Backup() -> (path: string, digest: string)
method Subscribe() -> (event: object)  # called with "more": streams events

error ValidationFailed (errors: []string)
error Conflict (current: int)
error ConfirmTimeout (rolled_back_to: int)
error PeerUnreachable (peer: string)
error PermissionDenied (role: string)

Related interfaces follow the same pattern: org.sparewall.Auth (users, tokens, roles), org.sparewall.Secrets (write-only secret store), org.sparewall.Upgrade (rolling upgrades and channels).

The sparewall CLI#

sparewall is a thin Varlink client with kubectl-style ergonomics: whole documents or small fragments in JSON or YAML, individual values by path, and the same validate, diff and confirm-or-revert safety on every change.

Design goals#

  1. Thin client. All validation, rendering and state live in the coordinator, so any future front end can do everything the CLI can.
  2. JSON and YAML, in and out. Input format detected from extension or content (-f site.yaml, -f -); output chosen with -o json|yaml|table. YAML is converted in the client; Varlink carries JSON.
  3. Small pieces merge in without restating the whole document.
  4. Get and set by path from the command line, no file needed.
  5. Every change is safe: validated, diffable, and applied with a confirm window.
  6. Scriptable: stable -o json, meaningful exit codes, --quiet, generated shell completion.

Commands#

Command What it does kubectl analogue
sparewall get [path] [-o yaml] Print the document or a subtree get -o yaml
sparewall set path=value … Set values in one transaction set, patch
sparewall unset path … Remove keys or map entries patch with null
sparewall merge -f fragment.yaml Merge a partial document apply
sparewall apply -f site.yaml Apply a whole document, replacing the current one replace
sparewall patch --type json -f ops.json Apply RFC 6902 operations patch --type json
sparewall diff -f fragment.yaml Show what a merge or replace would change diff
sparewall edit [path] Edit in $EDITOR, validate and apply on save edit
sparewall explain path Describe a field from the schema explain
sparewall status, history, confirm, rollback N Operational state and generations rollout
sparewall sync --from <node> Resolve a diverged pair none
sparewall backup, export Backup bundle; canonical document export none
sparewall upgrade [--channel stable] Rolling, health-gated OS upgrade none
sparewall schema upgrade / downgrade Migrate the document between schema versions none
sparewall token …, secret …, vpn client-config <peer> Tokens, write-only secrets, VPN client configs none
sparewall get networks.users -o yaml
sparewall set networks.users.vip=192.0.2.1/24 dhcp.users.pool=192.0.2.100-192.0.2.199
sparewall unset vpn.roadwarrior.peers.old-laptop
sparewall merge -f add-guest-vlan.yaml --confirm 120
sparewall get policy.'wan->self'.rules -o json | jq .

Semantics#

Implementation notes#

Networking with systemd-networkd#

systemd-networkd owns every link and address except the VRRP gateway addresses. The coordinator renders its files into /run/systemd/network/, so the document, not hand-edited files, is the source of truth; /etc/systemd/network/ stays empty and is reserved for emergency overrides, which take precedence over /run.

Need networkd mechanism Note
Stable names .link files, Name= matched on PermanentMACAddress= or Path= Interfaces are named after port roles and networks
VLANs, bonds, WireGuard .netdev plus VLAN= and Bond= in .network Remote-access VPN and the sync tunnel are WireGuard netdevs
WAN addressing DHCP= or static Address=/Gateway= [DHCPv4] NFTSet= puts the leased address into an nft set
Forwarding IPv4Forwarding= in networkd.conf Global
Addresses in firewall sets NFTSet=source:family:table:set with sources address, prefix, ifindex networkd only adds and removes elements; the sets must already exist
Reverse-path filtering IPv4ReversePathFilter= per network Strict on single-homed LANs
LLDP LLDP=, EmitLLDP= Shows which switch port each NIC is on
WAN queue management [CAKE] qdisc Bandwidth set per WAN in the document
DHCP relay DHCPRelay= (261+) For segments served by another DHCP server
NAT Not IPMasquerade= nft owns NAT, so there is one rule source

networkd's built-in DHCP server is available as a provider for a simple standalone node, but it has no failover protocol, so pairs use Kea.

Coexisting with keepalived#

networkd treats addresses it did not configure as foreign and drops foreign configuration when it starts, which can remove VRRP gateway addresses. The design guards against this:

IPv6#

IPv6 is in the schema from revision 5 (#211), and rendered by 0.6.0 (#212 to #216). A network without ipv6 has link-local IPv6 addresses only, as before.

networks:
  wan:
    role: wan
    dhcp_client: true
    ipv6: { mode: dhcpv6, prefix_length: 56 }   # an address, and a /56 for the inside
  users:
    ipv6: { mode: delegated, subnet_id: 1 }     # the /56's second /64
  servers:
    ipv6: { mode: static, prefix: "2001:db8:0:10::/64" }
objects:
  nas:
    type: ipv6
    suffixes: { users: ["::20"] }               # 2001:db8:…:1::20, whatever the /56 is
policy:
  wan->users:
    action: drop
    rules:
      nas-https: { order: 100, proto: tcp, dport: 443, dst: "@nas", action: accept }

Firewall: zones plus raw rules#

The coordinator renders the nftables ruleset from the document: a zone-based policy for the common case, with raw nft statements allowed at defined hook points for anything the zone model cannot express.

Zone model#

Raw rules#

Raw entries are literal nft statements placed at named hook points, so the zone model never has to grow a feature for every edge case.

Hook point Typical use
Before or after one zone pair's generated rules An exception the policy language lacks, a catch-all log
Prerouting at raw priority notrack for VRRP or sync traffic, early drops
Forward, before zone dispatch Global blocks, MSS clamping
Postrouting Custom SNAT, marks for policy routing

The coordinator does not parse raw rules: it places them, tags each with a comment naming its entry, and validates the whole script with nft -c. They ride in the same atomic transaction and the same confirm-or-revert window as everything else, and their counters are reported by name.

policy:
  users->wan: { action: accept, nat: masquerade }
  wan->self:
    action: drop
    rules:
      ssh-admin: { order: 100, proto: tcp, dport: 22, src: "@admin_nets", action: accept }
raw:
  block-scanner:
    at: { pair: wan->users, position: before }
    order: 100
    nft: ip saddr 198.51.100.0/24 counter drop
  notrack-vrrp:
    at: { hook: prerouting-raw }
    order: 100
    nft: ip protocol vrrp notrack

Rendering#

Sharing nftables with other software#

The coordinator owns one table (inet sparewall) and loads each generation as one nft -f transaction. It never runs flush ruleset, because others write nft too:

Every script is validated with nft -c -f before loading, and the previous generation's script is kept for rollback. Flowtables (a fast path for established flows) stay off until they are proven compatible with conntrackd failover.

High availability and standalone mode#

A pair is active/standby: keepalived moves the gateway addresses, conntrackd moves connection state with them, and the DHCP provider runs its own HA protocol. All replication runs inside a WireGuard tunnel between the nodes, over the sync network: by default the LAN itself, on two-NIC nodes behind a plain switch (#177), or a dedicated sync VLAN on a trunk. No dedicated sync cable is required.

Sync over the LAN#

On the usual hardware, two-NIC nodes behind plain switches, cluster.sync_network names the LAN, which is also the management network: the tunnel's endpoints are the nodes' LAN addresses, and nft accepts the tunnel's UDP port on the LAN link only from the peer's address.

Sync over a shared trunk#

keepalived#

The WAN of a pair#

A pair does not need a public address per node. With a static block, each node has a private address on the WAN link (VRRP and node-to-node traffic), and the public addresses (vip, extra_vips) and the ISP's gateway lie in a subnet of their own:

With a single DHCP lease (one public address, leased to one MAC), the WAN has dhcp_client: true, private addresses and a vrid, and no vip:

Standalone nodes keep their own public address, static or leased.

conntrackd#

FTFW mode, active/backup, bound to the tunnel addresses. Connection tracking is shared by iptables and nftables, so it works unchanged with an nft ruleset. On becoming master the coordinator runs the standard sequence: commit the external cache (-c), flush the internal cache (-f), resync (-R), request a bulk send (-B).

DHCP HA#

With the Kea provider: hot-standby mode, with the HA hook and lease_cmds, both open source since Kea 3.0. Each Kea binds to its node's own addresses, not the gateway address; clients receive the gateway address as their router, so it does not matter if the VRRP master and the active Kea briefly differ. HA traffic uses the peer's tunnel address.

Failover sequence#

  1. The standby's keepalived stops seeing adverts and becomes MASTER, adding every gateway address and announcing it with gratuitous ARP.
  2. The coordinator receives the FIFO event and runs the conntrackd sequence, so established flows keep passing the new master's stateful rules.
  3. Independently, the DHCP provider detects its partner down after its own timeouts and starts answering.
  4. The old master returns as BACKUP, bulk-syncs connection state and leases, and stays standby until the next failure.

Standalone mode#

A document listing one node in cluster.nodes runs the same image as a single firewall; the mode comes from the document alone.

Concern Pair Standalone
Gateway addresses (vip) Moved by keepalived Plain static addresses
keepalived, conntrackd Running Not started
sync network and tunnel Required Rejected by validation
DHCP provider HA mode No HA
Config apply On the node it was submitted to, then pushed to the peer once confirmed Local, same confirm and rollback
OS upgrade Rolling, no outage One reboot of downtime
Status role MASTER / BACKUP standalone

The gateway address stays separate from the node's own address even when standalone. Growing to a pair is therefore additive: install the second node, add it and a sync network to the document, and apply; clients notice nothing.

Service providers#

The document says what a service must do; a provider turns that intent into one implementation's configuration and controls it. Every application-level service is a provider, so any of them can be replaced, or moved to a new major version, without changing the schema.

Roles and providers#

Role Neutral config Default provider Alternatives
DHCPv4 Pools, reservations (MAC, address, name), options (router, DNS, NTP, domain), lease time, HA Kea networkd's built-in server (standalone only), dnsmasq: not built yet
DNS resolver Enabled flag, listening networks, forwarders or full recursion, local records from reservations Unbound Disabled; Knot Resolver, dnsmasq: not built yet
ACME DNS-01 Names, CA directory, provider name, secret reference Built-in RFC 2136 lego (Google Cloud DNS, Cloudflare, Route 53 and many more)
Log forwarding Destination, protocol, TLS systemd-journal-upload Off; rsyslog remote (syslog over UDP, TCP or RELP, with TLS)
Metrics storage Mode, retention (time and size) External scrape Local Prometheus container, queried through the API; off
Backup Repository, schedule, credentials restic Any restic backend; off

What a provider is#

Rules that keep providers swappable#

In the first releases#

Each role has one built provider, so the contract is narrower than the full interface above:

Container conventions#

Defaults in detail#

Remote-access VPN (WireGuard)#

Remote-access WireGuard is built in: networkd runs the tunnel, the VPN is a zone in the policy, and peers are entries in the document. Nothing extra is installed.

vpn:
  roadwarrior:
    listen_port: 51820
    endpoint: vpn.example.org
    addresses: [10.99.0.1/24]
    zone: vpn
    dns: [10.99.0.1]
    peers:
      alice-laptop: { public_key: "<base64>", addresses: [10.99.0.10/32] }

The coordinator renders a WireGuard .netdev (ListenPort=, PrivateKeyFile=, one [WireGuardPeer] per peer with PublicKey= and AllowedIPs=) and a .network with the tunnel addresses. It adds the WAN-to-self rule for the listen port and MSS clamping for the tunnel's smaller MTU; policy from vpn to other zones is written like any other zone pair.

Keys#

With HA#

Standalone nodes run the same configuration. Static-endpoint peers are site-to-site tunnels with the same mechanism: their networks are routed through the tunnel, and in a pair the master starts the tunnel from the gateway address.

Observability and health#

Logs land in the journal and can be forwarded off the box; metrics are exposed in Prometheus format; one health model answers every "is this node OK?" question. Dashboards, long-term storage and alert delivery live elsewhere, so a firewall never depends on its own monitoring.

Logging#

Source Captured by
Host services (networkd, keepalived, conntrackd, coordinator) journald
Containers (Kea, resolver) Podman's journald log driver, tagged with the unit name
Firewall rule hits nft log group N → ulogd2 → structured JSON entries in the journal, avoiding kernel-log rate limits
Connection and NAT records (optional, off by default) ulogd2's conntrack plugin: flow start and end with NAT mappings
Configuration changes The coordinator: generation, hash, author and diff summary as structured journal fields

Forwarding is configured in logging.remote: systemd-journal-upload to a systemd-journal-remote collector, an rsyslog remote (plain syslog or RELP), or off. Journal size caps on /var keep a log flood from filling the disk.

Metrics#

Health endpoints#

One health model lives in the coordinator as Health(); HTTP endpoints, sparewall status and the keepalived check are all views of it.

Endpoint Means
/livez The coordinator responds; no dependency checks. Locally, systemd's WatchdogSec= restarts a hung coordinator
/readyz This node could carry traffic now: required links up, nft holds the current generation, providers and conntrackd running, applied hash equals desired hash
/readyz?verbose, /readyz/<check> Each named check and its result, or one check
/healthz Alias of /readyz for tools that expect it

Results have three levels: ok (HTTP 200), degraded (HTTP 200 with the reason: sync tunnel down, pair diverged, backup stale), and failed (HTTP 503). A check that records an event rather than a state, such as an SELinux denial for the coordinator, stays degraded, across restarts and reboots, until an admin acknowledges it (AckHealth); its /metrics counter only ever rises, for alerting. Only failed lowers VRRP priority; degraded never triggers failover, because a sync fault affects both nodes equally. The node's VRRP role appears only in the response body, never as a status code. Endpoints share the /metrics listener on the management network; unauthenticated requests get only the level, and verbose detail requires authentication.

Security#

The coordinator is the single authority: it holds users and tokens, checks every call against a role, stores secrets, and manages certificates. Management services are confined to the management network by systemd, nftables backs that up, and SELinux stays enforcing.

Authentication#

Who How
Admin at a shell SSH keys; sparewall talks to the root-only local socket. An optional console password for admin (sparewall passwd, or seeded with the identity) is the break-glass path; over SSH only if the document opts in (management.ssh.password); root stays locked
Scripts and CI API tokens, over HTTPS or the restricted socket
A browser (the web UI) A password login, then a session cookie (see Web UI and HTTP API)
Prometheus and health checks A monitor-role token or a TLS client certificate
Peer node WireGuard keys on the sync tunnel

Roles#

Role May
admin Everything, including users, tokens, secrets and certificates
operator Change, confirm, roll back and sync configuration; read status
viewer Read configuration and status
monitor Verbose health and metrics only

Every authenticated mutation is logged with its principal. Because every setting has a path, path-scoped grants (a token that may only edit vpn.roadwarrior.peers) are a natural later extension.

TLS and ACME#

tls:
  certificates:
    mgmt:
      names: [fw.example.org]
      acme:
        directory: https://acme-v02.api.letsencrypt.org/directory
        challenge: dns-01
        dns: { provider: gcloud, credentials: secret:gcloud-dns }

Secret storage#

Secrets never appear in the document or in git; the document refers to them by name.

Class Examples Leaves the node?
Node secrets SSH host keys, sync-tunnel WireGuard key, self-signed TLS key Never
Cluster secrets VPN server key, admin password hash, issued TLS keys, ACME account key, DNS and log-forwarding credentials Synced to the peer through the sync tunnel; included in the encrypted backup

Management-plane isolation#

The data plane (networkd, nft, keepalived, conntrackd, WireGuard) stays in the root network namespace. Management services are confined per service rather than by separate namespaces, which would require a second networkd, ruleset and resolver and make every debugging command harder. A management VRF is available for sites whose management network has its own upstream gateway.

Service Listens on Restriction
sshd All addresses nft: the anti-lockout rule admits it from the management network only (narrowed by management.sources), or a zone's ->self policy; keys only; no root login over SSH
Coordinator HTTPS (health, metrics, web UI) All addresses nft, as sshd; the web UI and API need a login or token
DHCP provider Service networks Host network; minimal capabilities; nft limits it to DHCP
DNS resolver Gateway addresses of served networks Host network; may only query out through the WAN
chrony Served networks (NTP) Host network
Remote-access WireGuard WAN, one UDP port Kernel; silent to packets without a valid key

Nothing else listens on the WAN. ICMP is rate-limited and invalid packets are dropped. The anti-lockout rule keeps SSH and HTTPS reachable from the management network unless an admin disables it.

The management network may be a network of its own, in no zone, which no client reaches, or, on two-NIC hardware with no VLANs, the LAN itself (#177): in a zone like any other, served DHCP and DNS, with its zone policy applying to everything but SSH and HTTPS to the node. Those the anti-lockout rule admits first, so lan->self: drop cannot lock the admin out; management.sources narrows it to the admin's addresses, and without it validation warns that every host on the LAN reaches them. The shared LAN is the default layout; a separate management VLAN is the stronger one, for sites with a VLAN-aware switch.

The design once planned RestrictNetworkInterfaces= and IPAddressAllow= on sshd and the coordinator as well; they are not rendered, so nftables is the one gate, and the rows above say so.

Host hardening#

Bootstrap#

A fresh node boots into a safe built-in default that is reachable only on its management port, and receives its real configuration through the same sparewall apply path as every later change. Install time carries only a tiny identity, and optionally a first configuration that the node applies itself through that same path, confirming it once healthy (no secrets, no pairing).

1. Install with a minimal identity#

Installer ISOs and raw disk images are built from the bootc image with bootc-image-builder. Three values are supplied at install:

Value Why it is needed before any config exists
Node name (fw1, fw2) Selects this node's values in the shared document
Admin SSH public key Lets an operator or CI reach the node
Management port, matched by MAC The only interface bootstrap mode brings up

On VMs they arrive as systemd credentials (SMBIOS or kernel command line), read by the coordinator with ImportCredential=. On physical machines they come from a kickstart for the ISO install, or a small seed file on a USB stick read once at first boot and recorded under /var/lib/sparewall.

2. First boot: bootstrap mode#

With no applied generation, the coordinator renders the default shipped in the image: only the management port up (static address or DHCP client, per the identity), SSH accepted on that port only, all forwarding dropped, and keepalived, conntrackd and providers stopped. It also generates the SSH host keys and the sync-tunnel WireGuard key under /var/lib, so private keys never leave the node. A serial console with a local sparewall is the fallback.

3. First configuration#

An operator or CI runs sparewall apply -f site.yaml --confirm 120 over SSH to the management port and confirms once a post-apply check passes. If the configuration cuts off management access, the confirm timer returns the node to bootstrap mode (generation 0). The coordinator also runs the bootstrap configuration when it cannot read the active generation's document at boot (a newer release's, after an image rollback, or a damaged file), and reports health failed until a rollback or a new apply: a node that cannot read its configuration stays reachable.

4. Pairing#

  1. Install and bootstrap both nodes.
  2. Read each node's sync-tunnel WireGuard public key with sparewall status.
  3. Add both keys to the document's cluster section and apply on each node.
  4. The tunnel comes up and the nodes authenticate each other; from then on, an apply on one node is pushed to the other.

Only public keys appear in the document.

Backup and restore#

Little on a node needs backing up: the OS is an image in a registry, the document lives in git, and in a pair the peer holds a live copy of everything else. The backup exists for losing both nodes, losing git, or running standalone, and it is one small encrypted bundle per node.

State and where it is protected#

State Lives in Protected by If every copy is lost
OS, daemons, coordinator Registry Retention of every deployed digest; sparewall status records the running digest Rebuild from the Containerfile at that commit
Configuration document Git (source of truth); generations in /var/lib/sparewall Git, plus the bundle Export from either node
Node identity (SSH host keys, sync key) /var/lib on each node Not backed up by design Regenerate on reinstall and re-pair
Cluster secrets Secret store on both nodes The peer, plus the encrypted bundle Re-enter or regenerate; a new VPN key means new client configs
DHCP leases Provider state (Kea's memfile) Provider HA, plus the bundle Clients re-request; Kea's open-source ping_check hook avoids handing out addresses still in use
Connection tracking Kernel, synced to the peer Never backed up Connections reconnect
Logs and metrics Journal and exporters Forwarded off-box when configured Not a backup concern

Regenerating node identity instead of backing it up keeps node private keys from ever existing outside their node, at the cost of one pairing step after a rebuild.

The bundle#

sparewall backup writes one archive with the active document, the last N generations, the encrypted cluster secrets, a lease export, the running image digest and the node's public keys. A systemd timer runs it on a configurable schedule (hourly by default) and sends it with restic, which encrypts the repository itself, to a configurable repository: a local path, SFTP, S3-compatible storage or a restic REST server. Backups can be turned off. Standalone nodes have no peer copy, so a shorter schedule is recommended where lease continuity matters.

Restore by scenario#

Failure Restore
Bad configuration change Confirm timeout reverts it; otherwise sparewall rollback
Bad OS or container update bootc rollback and reboot that node
One node destroyed Reinstall with the same node name, add its new sync key to the document and apply; the peer pushes configuration and secrets, DHCP HA resyncs leases, conntrackd bulk-syncs
Both nodes destroyed Reinstall both, restore the bundle (document, secrets, leases) before services first start
Git lost sparewall export from either node, or the latest bundle
Registry lost Rebuild images from the Containerfile; re-pin container digests if upstream images moved

CI runs a restore drill on every release candidate: destroy one node, then both, and restore from the latest bundle.

Releases, upgrades and versioning#

Every image a node runs is built in CI, signed, and verified on the node; upgrades are orchestrated by the coordinator, never by a timer; and three independently versioned interfaces have rules that keep a rolling upgrade or a rollback from stranding a node.

Build, sign, publish#

Verify on the node#

The image ships a containers signature policy requiring the project's signature; bootc enforces it on switch and upgrade, and Podman enforces it for Quadlet images. Unsigned or wrongly signed images are refused.

Upgrade policy#

Versioning and compatibility#

Version Changes when Rule
Release (image, semver) Every release The image carries the coordinator with the daemons and providers it renders for, so they never skew within a node
Config schema (integer revision) A field is added, or the format changes Each field names the revision that added it, and a document records the newest revision among the fields it uses, so a release reads every document that needs nothing newer. A format change that is not just an added field needs a migration, which is an explicit step
Peer protocol (Varlink interface) Node-to-node calls change Only additive changes within an interface; breaking changes get a new interface name; nodes negotiate the highest common version

An added field needs no migration: a document that does not use it keeps its revision, and every release that reads that revision still reads it. New fields are gated on the oldest release in the pair: each node reports the newest revision it reads in its hello (a node that does not say reads revision 1), and the coordinator refuses a change, rollback included, that needs a newer one. A format change that is more than an added field goes: upgrade the BACKUP node, fail over, upgrade the other node, then run sparewall schema upgrade, which migrates the document as an ordinary generation.

Rollback rules:

Performance and sizing#

Small-office loads (a 1 to 2.5 Gb/s WAN with NAT and a few thousand connections) are expected to fit software forwarding on a modern mini PC or a virtio VM; this is measured, not promised. In a pair the standby must carry the full load, so everything is sized for the smaller node.

Connection tracking#

Kernel and NIC settings#

Benchmarks#

Testing and CI#

Each layer is tested where it is cheapest, and promotion to the stable channel is gated on a two-node VM suite that exercises failure, upgrade and restore end to end. Everything except performance benchmarks runs on GitHub Actions' hosted runners.

Layer Tests When
Schema and CLI Valid and invalid document fixtures; property tests for merge, patch and set (set-then-get round-trips, idempotent merges, canonical hash stable across key order and JSON vs YAML); fuzzing of the parsers Every commit
Renderers Snapshot tests from document to networkd, nft, keepalived, conntrackd, provider and WireGuard files; every rendered file also passes its own checker Every commit
Coordinator logic Unit tests with fake adapters: apply, confirm, rollback, divergence, health levels, role checks Every commit
Providers The role's conformance suite against every provider and version Every merge
Single-node VM Boot the image, bootstrap, first apply, standalone mode, backup and restore Every merge
Two-node VM suite Failover (kill the master, cut one VLAN, cut only the sync VLAN, flap a bond member); flow survival; lease continuity; VPN client reconnect; rolling upgrade from the previous release; schema upgrade and downgrade; divergence and sync --from; full restore drill Before promotion to stable
Policy conformance Generate the expected reachability matrix (zone pairs by service) from the document and probe it from test clients in each zone In the two-node suite
Performance Benchmarks compared with the previous release Each release, on real hardware

On GitHub Actions#

Standard Linux runners for public repositories (4 vCPUs, 16 GB RAM, 14 GB SSD, with /dev/kvm) run everything above except benchmarks.

Self-hosted runners, if added for benchmarks or capacity, never run workflows triggered by pull requests from forks; they are limited to protected-branch pushes, releases and manual runs.

Web UI and HTTP API#

The web UI and the HTTP API are milestone 7. Work on them began while milestone 6's 0.x releases were still proving themselves at real sites, and 1.0 waits for both. A first version shipped in 0.3.0: status, history and rollback, the configuration editor, the zone policy matrix, and users and tokens. The UI is the Varlink API's first client not built alongside it, and the gaps it finds (live events for status pages, errors that name the field at fault, schema metadata for forms, concurrent edits) should be closed before 1.0 freezes the schema, the Varlink API and the HTTP API together.

Off until enabled#

A node serves no web UI and no HTTP API until the document enables them (management.web). Enabling it is an ordinary change, validated, applied, confirmed and recorded in the history, and so is turning it off again. It listens only on the management network, enforced by systemd and nftables like the health and metrics listener, with the mgmt certificate from tls.certificates or the node's self-signed one. SSH, the console and the anti-lockout rule never depend on it, so a broken UI cannot lock anyone out.

Three pieces#

Piece Where Role
The coordinator This repository Serves a restricted socket next to the root-only one. A client binds its connection to a principal with a token before anything else, and the coordinator checks every call against that principal's role and logs every mutation with it (#11). The root-only socket is unchanged
sparewall-httpd This repository An unprivileged, sandboxed Rust service with its own SELinux domain and no network: it serves plain HTTP on a Unix socket. It authenticates browsers and API clients, calls the restricted socket on their behalf, and serves the UI's files. The coordinator keeps the HTTPS port and its certificate, answers the health endpoints itself, and passes every other request to this socket, so the UI, the API and health checks share one port and one certificate, and the service never holds a private key
The UI This repository (ui/) Angular with Angular Material, built into a static bundle that the image includes. No container, since sparewall-httpd serves the files. CI runs the Rust jobs and the UI's jobs only for changes that touch them

The HTTP API follows the conventions of systemd's varlink-http-bridge: POST /call/<interface.Method> with the parameters as JSON, and streamed replies (more) as application/json-seq. Generic Varlink-over-HTTP clients then work with a token, and an OpenAPI description generated from the same interfaces serves the UI and scripts. The bridge itself is not used: it authenticates callers but does not authorize them, runs as root, and connects to each socket as itself, so the coordinator could not tell an admin from a viewer, and it has no login or session model for browsers.

Browser authentication#

The UI#

Much of the configuration editor is generated from the document's JSON Schema (sparewall schema show), with JSON Forms' Angular Material renderers, so a schema change reaches the UI without a hand-built form. Hand-built screens cover what needs real design: the zone policy matrix, status and health, apply with its confirm countdown, history and rollback, and the pair's sync state. In a pair the UI is reached through either node or the management gateway address; changes go through the coordinator, which pushes them to the peer as it does for the CLI.

Project#

Sparewall lives at github.com/sparewall; sparewall.org is the project domain and the source of the org.sparewall interface namespace. Everything the project builds is open source, and every artifact is published on GitHub.

Repositories#

Repository Contents
sparewall/sparewall Cargo workspace (sparewalld, sparewall, sparewall-httpd, schema, renderers, providers), the web UI (ui/), Containerfile and Quadlet units, VM test suites, example documents, and the documentation under docs/
sparewall/.github Organization profile, shared workflows, security policy, contributing guide

The schema, coordinator, providers, web UI and image live in one repository because they change in lockstep (the UI is a client of the HTTP API that the same release freezes): the image pins the daemon versions the providers render for, and one release tag means one tested image. Documentation lives beside the code so it changes in the same pull request. Rust crates stay unpublished on crates.io until there is a reason to publish them, since crate names cannot be reclaimed.

Licensing#

Component License
Coordinator, CLI, sparewall-httpd, providers, schema (built here) GPL-3.0
Web UI (built here, milestone 7) AGPL-3.0, as a network service
Kea MPL-2.0. All hooks are open source since 3.0 except RBAC and the Configuration Backend, which Sparewall does not use
systemd LGPL-2.1+ (some tools GPL-2.0)
nftables, conntrack-tools, keepalived, chrony, ulogd2 GPL-2.0 family
Podman, bootc, cosign, syft, node_exporter, Prometheus Apache-2.0 (bootc also MIT)
zlink MIT
Unbound BSD-3-Clause
lego MIT
restic BSD-2-Clause
Fedora base image Free licences, except redistributable binary NIC firmware in linux-firmware

MIT and Apache-2.0 dependencies are compatible with GPL-3.0 and AGPL-3.0. CI enforces license allow-lists for RPMs (License: tags) and crates (cargo-deny), so a non-free or incompatible dependency fails the build. Licenses in this table should be confirmed by that check rather than taken from this document.

Development milestones#

Build bottom-up: a bootable image, then a standalone firewall, then services, then HA, then everything around it. Each milestone ends with tests that run in CI.

# Milestone Delivers Exit criteria
0 Foundations Repositories, CI skeleton, Fedora bootc Containerfile with networkd, nftables and Podman; signed image published to ghcr.io/sparewall/sparewall:testing; license gates The image boots in a CI VM; its signature verifies; the license checks pass
1 Standalone core sparewalld and sparewall; schema v1 for ports, networks, zones, objects, policy, raw, forwards; networkd and nft renderers; generations with confirm and rollback; bootstrap mode; anti-lockout; /livez and /readyz Single-node VM suite: bootstrap, first apply, rollback on missed confirm, policy conformance across VLANs
2 Services Provider interface; Kea 3.0 and Unbound providers with conformance suites; chrony; log forwarding; /metrics; backup bundle and restore DHCP leases and reservations on every VLAN; local DNS; standalone backup-and-restore drill
3 High availability Sync VLAN and WireGuard tunnel; keepalived and conntrackd; Kea HA; peer push, hashes and divergence handling; health-driven VRRP priority Two-node suite: failover scenarios, flow survival, lease continuity, sync --from
4 Access and secrets Secret store; users, tokens and roles; ACME (RFC 2136 and lego) with self-signed fallback; remote-access WireGuard Token and role tests; certificate issuance against a test CA; VPN client survives failover
5 Releases and upgrades sparewall upgrade with channels and health gates; signature enforcement on nodes; schema versioning and migrations; installer images on GitHub Releases Rolling upgrade from the previous release; schema upgrade and downgrade; unsigned image refused
6 First production deployments 0.x releases: hardening pass (SELinux module, sandboxing score), benchmarks on real hardware, documentation Runs in production at two sites; restore drill passes on real hardware
7 Web UI and HTTP API Role checks on a restricted socket (#11); sparewall-httpd; the UI; opt-in through the document The UI and the HTTP API drive every operation the CLI does, under each role's limits; 1.0 released, freezing the schema, the Varlink API and the HTTP API

Later features (multiple WANs and WAN failover, DDNS, IDS/IPS, dynamic routing) follow 1.0 and slot in as providers or schema additions.

To prove in the lab#

Every component here is mature, but some combinations are unproven. Each item below has a concrete test and a fallback; the milestone column says when it must be settled.

Unknown Test Fallback By milestone
networkd drops keepalived gateway addresses on reload or restart Hold MASTER; run a link reconfigure, networkctl reload, then a networkd restart; watch for address loss and ARP gaps KeepConfiguration=, ManageForeign*=no, never restart networkd in production paths 3
conntrackd failover loses flows Long-lived TCP and UDP flows through the pair while the master is killed Tune FTFW timers; test nf_conntrack_tcp_be_liberal 3
Flowtables hide state from conntrackd The same test with a flowtable enabled Leave flowtables off 6
networkd's NFTSet= elements vanish on ruleset reload Reload the nft script; check the sets still hold WAN and LAN addresses Never recreate tables; trigger a link reconfigure after reloads 1
Kea 3.0 misses VLANs that appear late Boot with a VLAN whose parent comes up slowly Kea 3.2 with interface-redetect; or start Kea after systemd-networkd-wait-online 2
Kea 3.2 container images are not published Check ISC's registry Kea 3.0, or build images from distribution RPMs 2
Container images are absent after an offline install Install from the ISO with no network; check bound images Embed images in the installer 5
machine-id persistence with a transient /etc Reboot and upgrade with transient /etc enabled Keep the 3-way-merged /etc 6
bootc's signature-enforcement option and flag name Switch to an unsigned image Enforce through the containers policy alone 5
OVS with an LACP bond on GitHub's hosted runners Run the two-node suite there VLAN-filtering Linux bridge with a bond in a namespace 3
No TPM on a node Give libvirt VMs a virtual TPM; check physical hardware Host-key encryption of secrets, documented as weaker 4
A leaked DNS-01 credential can issue certificates for the zone Scope the TSIG key or cloud role to _acme-challenge records only Delegate a dedicated challenge subdomain 4
Remote-access reconnect time after failover VPN client VM during failover Tune the recommended client keepalive 4
The smaller node cannot carry full load after failover Benchmarks Flowtables, lighter logging, or larger hardware 6
Mixed coordinator versions during an upgrade Rolling upgrade across a schema change The versioning rules: schema bump only after both nodes upgrade 5

Version baseline and sources#

Versions current in October 2026; recheck when the Containerfile is written.

Component Version Note
systemd 262, released 22 September 2026 261 added networkd link Varlink methods and DHCP relay
Fedora 45 being prepared with systemd 262 Fedora CoreOS and bootc are being unified for Fedora 46
CentOS Stream 10 Hyperscale SIG systemd 261.3 rebuilds Stock Stream 10 ships 257
Podman 6.0 Netavark with nftables only; Quadlet improvements
Kea 3.0 LTS; 3.2 stable since 24 June 2026 Control Agent removed in 3.2
keepalived 2.3.x
zlink Releases through 2026 MIT

Other components (chrony, ulogd2, restic, lego, step-ca, node_exporter, cosign, syft) are used at their current distribution or upstream releases.

Sources#

This page on GitHub, at v0.7.0