Documentation · Guide

Updating agents

Updates are a two-step, verified process. The hub signs and hosts a release; each agent verifies before staging; a root-only local helper is the only thing that activates a binary.

← All documentation

Build and publish a release

Build a Linux release on a trusted build host (normally the hub host) with a non-dev version, then publish it locally on the hub. The hub calculates the SHA-256 hash, stores the artifact under its data_dir, and signs its manifest with a dedicated Ed25519 release key.

VERSION="2026.10.18.1"
go test ./...
go build -mod=vendor -ldflags "-X main.version=$VERSION" \
  -o "obsidianwaf-$VERSION" ./cmd/obsidianwaf

/usr/local/bin/obsidianwaf-hub -config /etc/obsidianwaf/hub.yaml \
  -publish-release "/path/to/obsidianwaf-$VERSION" \
  -release-version "$VERSION" -release-channel testing

The command prints the hub release public key — pin it in each agent's updates.public_key; do not obtain it from an untrusted network response. Restart the hub once so it reloads the release index.

Enrol an agent in a channel

Updates are opt-in; manual never polls or stages binaries. Use testing first.

updates:
  enabled: true
  channel: "testing"  # manual | testing | stable
  check_interval: 6h
  state_dir: "/var/lib/obsidianwaf/updates"
  public_key: "HUB_RELEASE_PUBLIC_KEY"

The agent retrieves its channel manifest using its signed hub identity, verifies the pinned Ed25519 signature and SHA-256 checksum, and writes a non-executable artifact plus manifest into updates/staged/. Confirm it before activation:

sudo journalctl -u obsidianwaf -n 50 --no-pager
sudo ls -l /var/lib/obsidianwaf/updates/staged/

Activate, promote, roll back

Activation is intentionally local and operator-triggered. The root-only activator independently verifies the manifest and artifact as root immediately before installation, starts the WAF, checks its local health endpoint, and restores the prior binary if any check fails.

sudo systemctl start obsidianwaf-activate-update@"$VERSION"
sudo systemctl is-active obsidianwaf

The previous executable is retained at /usr/local/bin/obsidianwaf.previous and restored automatically if the new service fails to start or its health check fails. Once a testing release has succeeded on representative hosts, publish the same artifact to stable and move approved agents to channel: stable. Return agents to channel: manual to stop automatic staging.

Next: Fleet management · Host onboarding

Prefer a guided setup?

We'll help you roll out in detect mode and tune for your traffic before you enforce.