Commit Graph

4 Commits

Author SHA1 Message Date
mnovak b482e264d2 [roads] QA B-3: an app road names whose devices it is for, and reaches only those
subject: app:<id> applied to every device in the mesh, so whoever could write
one road (app:steam goes-direct 0.0.0.0/0) changed the tunnel of other
people's devices, an exit and a classic router. An app road now needs the new
header key on: (a person, group or device), and reaches only those devices;
on: is forbidden on any other subject. The home fixture's steam road is on
Mark's devices, so it leaves Jana's, Petr's and the router's plans. Four
fixtures, a B-3 test (fails if app roads reach every device again), the
property generator scopes app roads to a person, and the R-55 renaming
rewrites on: like subject:.
2026-11-25 09:04:50 +01:00
mnovak 31a46d0367 [roads] rename.rs: a new id never spells a word the output already holds
The R-55 property mapped renamed strings back anywhere in the output, so a
group renamed to `in` turned every firewall "direction": "in" into the
group's old name and failed about once in four runs (seed
8124609985917702487). The renaming now reserves every string the plans and
problems hold; the seed is kept as a fixed test, which fails without the
reservation. No change to the compiler.
2026-11-25 08:50:23 +01:00
mnovak 7087b06e24 [roads] rustfmt the QA tests and the fuzz targets (no change in behaviour) 2026-11-25 08:16:24 +01:00
mnovak d02bbff41c [roads] QA R-55: renaming every id gives an isomorphic plan, problems and explain
A proptest (300 seeds) renames every road id, person id, group id, device key,
device name and service hostname of the home store plus five roads that hit the
order-sensitive paths (an exit conflict each way round, two kill switches through
different exits, two path hints to one peer), compiles both, maps the output back
and compares plans, problems and explain.

Mutation-checked and reverted: 'first exit by key wins' on an exit conflict, and
'smallest road id wins' on disagreeing kill switches, each fail the property.
2026-11-25 08:07:15 +01:00