Air-gapped sites and support bundles

Release status: 3.0.0 and develop
Nothing leaves the machine by default. There is no update check, usage beacon or crash reporter. RELATA_DISCONNECTED, the diagnostics snapshot and the support bundle are in released 3.0.0. The diagnostic history, including its place in the bundle, is on develop. "On develop" means merged in the product repository but not in a release yet.

Enforce the boundary

RELATA_DISCONNECTED=true \
RELATA_DISCONNECTED_ALLOW_HOSTS=models.corp.lan \
relata serve

At startup the node checks every configured outbound dependency: embedding and rerank endpoints, object-store endpoints, the OTLP trace endpoint, the audit archive and audit OTLP endpoints, webhooks and others. It refuses to start if one points outside the boundary, and names the variable and host. Inside the boundary are loopback, private (RFC 1918) and unique-local addresses, localhost, and the hosts you list in RELATA_DISCONNECTED_ALLOW_HOSTS. Host names are never resolved to decide, because the lookup would be an outbound request.

relata doctor runs the same check without starting the server. With the variable set, a blocked dependency is a [FAIL] line and a non-zero exit; without it the findings print as [info].

Your own collectors, such as RELATA_OTLP_ENDPOINT for traces or RELATA_AUDIT_OTLP_ENDPOINT for security events, are allowed when they are inside the boundary. Every source file that can open a connection is listed in docs/operations/outbound-inventory.json and checked by CI in the product repository.

Verify a release offline with its .sha256, .sig and .pem files, as described in Installation.

Local diagnostics snapshot

Every RELATA_DIAGNOSTICS_SNAPSHOT_INTERVAL_SECS seconds (default 60, 0 turns it off) the node writes to {data_dir}/diagnostics/:

FileContent
metrics.promThe same text as /metrics, capped at 4 MiB
recent-logs.jsonlThe last 500 log events from the in-memory ring, useful when logs go only to stdout
snapshot.jsonVersion, build, uptime, the readiness verdict, free and total disk for the data and audit directories, container limits and RSS when present, a restart counter and the slow-query list

Files are replaced atomically, so a reader never sees a half-written one. Set RELATA_IMAGE_DIGEST to record the image in the snapshot.

Diagnostic history

The snapshot holds only the latest state. On develop the node also appends a sample of key series every RELATA_DIAG_CAPTURE_INTERVAL_SECS seconds (default 10) to {data_dir}/diagnostics/history/, so a leak or a stall can be read after the fact. It is on by default; RELATA_DIAG_CAPTURE=false or an interval of 0 turns it off.

  • Format. One JSON line per sample, {"ts_ns": <unix ns>, "m": {"<series>": <number>}}. Files are named by UTC hour (diag-YYYYMMDDTHH.jsonl); a finished hour is compressed to .jsonl.zst.
  • Series. Memory breakdown and RSS, lock waits, query in-flight and cancelled counts, errors by code, cache hits and misses, WAL failures and fsync, the ingest queue and the detection-job counters. No per-tenant or per-type series.
  • Limits. RELATA_DIAG_CAPTURE_DAYS (default 7) and RELATA_DIAG_CAPTURE_MAX_MB (default 200). The oldest files go first; the current hour is never deleted.
  • Cost. It reuses the /metrics render, takes no store write lock and opens no socket.
H=/var/lib/relata/diagnostics/history
# RSS over a day, one line per sample (MiB)
for f in $H/diag-20261205T*; do
  case $f in *.zst) zstdcat "$f" ;; *) cat "$f" ;; esac
done | jq -r '[(.ts_ns/1e9|todate), (.m["relata_memory_rss_bytes"]/1048576|floor)] | @tsv'

Counters only grow, so subtract the first sample from the last to get a rate. A restart resets counters; a drop in relata_uptime_seconds marks it.

The support bundle

relata support-bundle --out /tmp/relata-support.tar.gz

The command builds a local .tar.gz and opens no socket. It contains:

EntryContent
manifest.jsonEvery entry with its SHA-256 digest
system.txtVersion, OS, architecture, CPU count
env.txtEvery RELATA_* variable; secret-looking values replaced by <redacted>
config.tomlThe active config file, redacted line by line
data-dir-listing.txtRelative paths and sizes only, capped at 5,000 entries; file contents are never read
disconnected.txtThe RELATA_DISCONNECTED verdict for the configured endpoints
logs/The tail of the newest server log. Secrets are removed, and SQL literals and payload fields become ‹redacted:<class>:<8 hex>› markers
diagnostics/The snapshot files above, line-redacted; a note says so when the node never wrote them

Never included: row data, WAL or segment bytes, audit log content, token registry content, key material and request bodies. On develop the bundle also holds the newest diagnostic history under diagnostics/history/, up to 168 files and 32 MiB, and manifest.json records what the cap left out.

--profile <secs> also captures a CPU profile. It makes one request to the node's own loopback admin listener, needs profiling enabled (RELATA_PPROF_ENABLE=true in 3.0.0, RELATA_PPROF_ENABLED=true on develop) and the admin token, and the manifest records network_calls: 1.

Check the archive before you hand it over, then move it by whatever channel your site allows:

tar tzf /tmp/relata-support.tar.gz

To share log lines outside the bundle, use relata logs --redact.

What is coming

Statistics views, traces, a heap profile and a redacted effective configuration in the bundle are tracked in #7849.