69e3a9377d57b920fd183f77c206d742ce21df2e
A firewall sees an address and a port, never a hostname, so a road to photos.home.arpa compiled to home-server:443 and also opened git.home.arpa there. Rules are now per service: - devices.json services may carry their own mesh address (same rules as a device address, unique among all of them). A road to such a service compiles to that address only; the hosting device's plan lists it in the new field services[] so it answers on it, and DNS points there. - A road to a service that shares its address and a port with another service is refused (service.shared), naming the others, instead of opening both. Narrowing ports: to a port nobody else serves on that address is allowed. - A device: road reaches the whole device: its own address and its services' own addresses. No Ianitor identity check is needed for this. The home fixture gives photos its own address (100.96.1.2); tests that encoded the old host:port model are updated, three new snapshot fixtures cover the address rules, and the golden plans and pinned digest are regenerated. Mutation-checked: dropping the refusal, or ignoring the service address, each fails an F-01 test.
via-core
The pure core of Via Domi, Domi's people-first mesh VPN: the road model, its validator, and the compiler that turns roads into exactly the peers, allowed IPs and firewall rules each device needs. Nothing else grants access.
A road is one sentence: Jana — can reach — Photos — until Sunday. Roads live one file per road in a git-tracked folder; the compiler reads them with the people directory and the device list and writes one plan per device. Deny by default: a road that does not compile cleanly grants nothing, and says why.
| Crate | What |
|---|---|
roads |
road files, the people directory and device list snapshots, validation, the compiler, explain |
proto |
the control-plane messages, CBOR, versioned |
via-cli |
the via binary: via check, via compile --device <id>, via explain <device> <place> |
No I/O beyond reading the store, no network, no clock in the library: now is a parameter.
docs/02_via-core.md: why, what, how, risks and gaps for Day 2.docs/FORMATS.md: the road file format and the control protocol, field by field.
cargo test --workspace
Licence: CPAL-1.0 (see LICENSE). Its Exhibit B carries the attribution notice, the same as CustosPublic's.
Description
Languages
Rust
99.6%
C
0.2%
Nix
0.2%