Secure Distributed Mode
199 words1 min readFrom the README at ft 0.15.21
Secure distributed mode is compiled into default builds (distributed is in the default Cargo feature set of crates/frankenterm/Cargo.toml) and activated at runtime via [distributed].enabled = true. To build a trimmed binary explicitly enabling only distributed mode:
bash
cargo build -p frankenterm --profile release-interactive --no-default-features --features distributed
The distributed wire protocol provides:
- Versioned message envelopes with sender identity validation
- Per-agent sequence-number dedup (no duplicate processing)
- 1 MiB maximum message size enforcement
- Stale-session pruning with configurable idle thresholds
- Local receipt-clock decisions (untrusted remote clocks not used for liveness)
Operational topology:
- Run
ft watchon the aggregator host with[distributed].enabled = true; the watcher starts the distributed listener alongside normal local capture. - Run
ft distributed agent --connect <host:port> --agent-id <name>on remote hosts to stream pane metadata, deltas, gaps, and detections into the aggregator. - Persisted remote panes appear in
ft status,ft query/ft search,ft robot state, MCPwa.state, and thewa://panesresource.
Operator guidance:
- Keep
distributed.bind_addron loopback unless you explicitly need remote access. - For non-loopback binds, enable TLS and use file/env token sources (avoid inline tokens).
- Use
ft doctor(orft doctor --json) to verify effective distributed security status. - Follow
docs/distributed-security-spec.mdfor setup, rotation, and troubleshooting.
The wire protocol's safety review and diff-fuzz coverage are tracked in docs/security/distributed-threat-model.md4.