Skip to content

This page may contain unreviewed machine generated text. Use with care.

Pages

Trust document residual tradeoffs

Security and availability limits of signed membership, recovery and the store.

A verified trust snapshot selects membership, but does not settle availability, deployment authorization or the memory of every possible input. These are the remaining tradeoffs. The historical input probe and the inferred sizing figures below are not measurements of the signed daemon at its maximum input. The named source files describe the implementation. A source assertion is not evidence of a running node or of a durable machine-crash result.

R1.1: memory before and after verification

A file up to 64 MiB can be read before its signature is known. A historical probe of a different record layout measured 127.9 MiB in outer payload copies. Its roughly 256 MiB pre-signature copying figure was inferred from the file, outer copies and signature structure. Roughly 128 MiB for the file plus the signature structure with slice-based outer decoding is another inference, not a measured current-process peak. The probe also measured 473.6 MiB of decoded records and 720.5 MiB taken from the system after verification on its own 8,384,000-endpoint input. Its 0.9 to 1.1 GiB two-snapshot sizing figure is an estimate before index and runtime headroom, not a resident-memory bound. The file cap and signature-before-payload order bound what an unauthenticated writer can make the loader decode, but do not promise that a host or phone fits a particular memory budget. A worst-file trust.Index measure and isolated start-with-store and two-snapshot-reload peak RSS and heap measurements remain due. Sources: pkgs/ranet3/trust/verify.go, pkgs/ranet3/internal/client/truststate.go, limits. Evidence: historical probe measurements and design arithmetic only. No current Trust peak measurement.

Contract: TD:101,361-367.

R1.2: older or missing stored trust

The stored image records the accepted snapshot, its verifying signer, the mesh pin and the list of compromised keys. Restoring an older image can lose later entries of that list and a higher height. Losing the image altogether also loses the pin, height and list, exposing a later start to a different first verified mesh or older trust. Keeping each declared compromise in independently authorized configuration across reinstall and rollback narrows that risk only at loads that reach the list-update step. It cannot make an older image retain lost history. Sources: pkgs/ranet3/internal/client/truststate.go, trust order. Evidence: ordered store rules and isolated local store tests. Restoration in a deployment remains unverified.

Contract: TD:276,288-290,329,471-473,610-612.

R1.3: recovery height selection

A compromised signer's recovery height set below the intended good snapshot can admit an older snapshot a remaining key once signed, temporarily readmitting nodes it removed. A height above available files can leave a node at D24 on its stored snapshot. A recorded floor can rise but not fall. Later correct files do not undo an earlier period with the wrong membership. Recovery needs a nonzero recorded floor. The bound is the larger of the recorded floor and current entry height, and recovery remains in the original mesh. Sources: pkgs/ranet3/trust/order.go, trust order. Evidence: order rules and local synthetic decisions. No fleet convergence result.

Contract: TD:200-201,319-329.

R1.4: first mesh pin

Before authenticated enrollment tickets exist, the first snapshot verified by an admitted authority pins the mesh. A first start on a valid but unintended mesh therefore keeps that mesh for later loads. Another ordinary signed file does not move it. Reset is not a general correction for an uncompromised stored signer. The ticket that would supply the expected mesh belongs to later enrollment work. Sources: pkgs/ranet3/internal/client/truststate.go, trust order. Evidence: specified first-pin rule and isolated source assertions, not deployed enrollment.

Contract: TD:333-340,448,618.

R1.5: the 65th compromise

The list accepts a 64th distinct compromised authority key, but a 65th is refused before its key is recorded. An entry refused at this early step is not retained. A real 65th compromise cannot be admitted while preserving the first 64. The cap bounds store state rather than resolving that availability and security conflict. Sources: pkgs/ranet3/trust/order.go, pkgs/ranet3/internal/client/truststate.go, trust order. Evidence: local cap and order assertions, not a deployed compromise response.

Contract: TD:144-153,194,604.

R1.6: a stored image not serving

A failure at directory sync after a rename can leave the replacement image at the path without a durability guarantee. Separately, a successful durable snapshot write can precede failed retable or reborder before publication, leaving a durable image not applied to the running membership. A later start can read the path image under its own order checks, rather than assume the prior serving snapshot is still on disk. Write, file-sync and rename failures before replacement leave the previous path image. The daemon keeps the old serving membership on the prepublication failure, which is not a promise that the store's path is unchanged. Sources: pkgs/ranet3/internal/client/truststate.go, pkgs/ranet3/internal/client/reload.go, trust order. Evidence: isolated writer-stage assertions and source ordering, not crash durability or a complete running consumer sequence.

Contract: TD:167-172,454,608-609.

R1.7: a foreign-mesh file

A valid signed file naming another mesh fails a pinned node's reload whole. The running node keeps its former membership and sessions. A start with that file refuses to run, although its prior stored snapshot stays on disk. This avoids silently applying a different mesh's policy but makes an incorrect file an availability failure. Sources: pkgs/ranet3/trust/order.go, pkgs/ranet3/internal/client/reload.go, trust order. Evidence: specified refusal semantics and local signed-input assertions. No live activation result.

Contract: TD:471,616.

R1.8: unreadable store and layout changes

An unreadable or unsupported-layout store refuses start and remains byte for byte unchanged. There is no compatibility reader, version discriminator or stored-format migration. The refusal preserves existing trust facts instead of silently starting fresh, but a binary unable to read the stored layout cannot start from it. Losing the store separately loses its pin, accepted height and compromised-key list. Sources: pkgs/ranet3/internal/client/truststate.go, trust order. Evidence: D14 source contract and isolated byte-preservation checks, not an upgrade or rollback procedure.

Contract: TD:473,610-611.

R1.9: no expiry or prefix admission

A signed snapshot has no expiry: elapsed time alone does not stop its membership from serving. A compromised-key declaration does not expire after a month either, even if an offline node was expected back by then. The signed membership does not itself grant an address or prefix. Prefix admission is separate work. These choices preserve an offline node's chance to recover only when the declaration still reaches it, and leave stale-but-valid membership and prefix control as separate risks. Sources: pkgs/ranet3/trust/order.go, trust order, limits. Evidence: protocol and source rules, not a signed Nix, host-network or platform result.

Contract: TD:47,126,323-324,575,384.

These nine risks are not nine completed qualification rows. Four isolated membership/reset consumer tests passed on the signed Trust D source. Complete public start/reload/reset, status/debug/events and command consumers, concurrent publication and adoption, signed Nix inputs, native and platform confinement, and peak-memory measurement remain separate. None of the historical probe figures establishes a current peak or a small-device budget.