Product
Platform overview Tomosu engine (open source) Tomosu Cloud Reliability rules
Solutions
Prevent outages before merge Reliability Radar Fix safety For developers For SRE and platform teams
Developers
Quickstart Documentation Contribute a rule
Resources
Blog Case studies Learn FAQ News
Company
Pricing About Contact Join the Waitlist
Theme

Rule bundles and air-gapped installs

Rules reach the engine as signed bundles. Every binary embeds a snapshot, so it works offline on day one. Newer bundles are pulled, verified and swapped in without a restart; on an air-gapped network they travel as files through an outbox and an inbox, with no manual step.

  • rules pull
  • rules import
  • rules rollback
  • Updated

What is a rule bundle?

A bundle is a set of rules in one file with a detached signature. The engine verifies the signature against keys it trusts before using a bundle, every time, and bundles cannot run code: conditions are sandboxed CEL with no I/O and a time budget.

Which rules the engine uses, first match wins:

  1. --rules or TOMOSU_RULES_DIR;
  2. the bundle installed in the data folder (rules import, rules watch, or the upload form);
  3. the signed snapshot embedded in the binary, which works offline with no setup.
$ tomosu rules status
active:   none (the embedded snapshot is used)

How are bundles updated?

A newer bundle is verified and swapped in without a restart. An older bundle never replaces a newer one, except by an explicit rollback:

tomosu rules import rules-community-2026.12.json   # verify and install a bundle (its .sig beside it)
tomosu rules status                               # the active bundle and recent attempts
tomosu rules rollback                             # make the previous bundle active again

Every finding records the rules version it came from, so results from CI and from production can be compared.

How does an air-gapped engine get updates?

Bundles cross the gap as files, in two steps that can both run unattended:

Connected side rules pull → outbox (cron or by hand) Your transfer diode, share, USB Air-gapped engine inbox → verify → install (watcher, import or UI)
Two steps, no browser, no manual copying of values.

1. Download on a machine that can reach the registry:

tomosu rules pull --channel community --out /srv/tomosu/outbox --trust /etc/tomosu/trusted-keys.json

It writes the bundle, its signature and a transfer manifest (sizes and SHA-256 of each file, written last), downloads nothing until a new release exists, and exits 0 when it wrote a new bundle and 10 when nothing was new. --json prints a result for logs.

2. Load on the engine, automatically or by hand:

tomosu rules watch --data-dir /var/lib/tomosu --interval 1m   # watch an inbox
tomosu rules watch --once --data-dir /var/lib/tomosu           # one pass, from cron
tomosu rules import /media/usb/outbox/                         # every set in a folder, by hand

A partial, tampered, duplicate or older set is moved aside with the reason, and the running rules do not change. tomosu ui also offers an Upload a bundle form, protected by the start-up key. All paths share one implementation, so a bundle accepted by one is accepted by the others.

Do Pro rules work offline too?

Yes. Pro rules are encrypted to the install and keep working without a network until the bundle expires. See Pro rules.