plan: show what a module would open and why #56

Merged
jschoubben merged 1 commits from feat/plan-shows-what-a-module-would-open into main 2026-09-24 16:42:25 +00:00
1 Commits
Author SHA1 Message Date
jschoubben 524cc2a3ec plan: show what a module would open and why
Every module.json already declares a why for each port under listens,
but plan only ever used it to build the firewall's rule set — nothing
printed it. An operator deciding whether to assign a module had no way
to see what it would open without reading the manifest by hand.

plan <node> now prints each assigned module's listens entries — port,
protocol, source, and its why — right under the module line, so the
same text that feeds the firewall is visible at the point someone is
actually deciding whether to open it.
2026-09-24 18:40:30 +02:00