[roads] QA F-03: a kill-switch road with an error fails closed, through no exit
Any check() error used to make a road grant nothing, and for never-online-without nothing meant no kill switch: an exit that stopped being one (or left devices.json) silently turned off every kill switch through it. The road is still reported as an error, but its subject's kill switch stays on through no exit (only the mesh), and going direct to the internet is still dropped. An expired kill switch ends as written. The road_file fuzz target's deny-by-default check now allows exactly that narrowing and nothing else.
This commit is contained in:
+1
-1
@@ -199,7 +199,7 @@ entry.
|
||||
| `firewall.rules[]` | `direction` (`in`: to this device's address; `forward`: to a subnet it routes, or to the internet as an exit), `src` (CIDR), `dst` (CIDR or `"internet"`), `proto` (`any`, `tcp`, `udp`, `icmp`), `ports` (`[lo, hi]` or `null`), `roads` |
|
||||
| `dns[]` | `host`, `address`, `roads`: names this device may resolve to a mesh address |
|
||||
| `exit` | `{through, roads}` or `null` |
|
||||
| `kill_switch` | `{through, roads}` (`through` is `null` when two kill-switch roads disagree: only the mesh) or `null` |
|
||||
| `kill_switch` | `{through, roads}` or `null`. `through` is `null` (only the mesh) when two kill-switch roads disagree, or when a kill-switch road has an error: a restriction fails closed, it is never dropped (QA F-03). `roads` lists the erroneous road too |
|
||||
| `direct[]` | `{app, subnet, roads}`: traffic to `subnet` bypasses the tunnel (split tunnelling); `app` is `null` for all traffic, or the one app whose traffic goes direct |
|
||||
| `custom[]` | `{road, classic, raw}`: the raw block verbatim, **never checked by the compiler** |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user