banger/internal/daemon
Thales Maciel c298ed2fc1
Add vsock-backed VM port inspection
Let the host ask the guest vsock agent to run ss so open ports can be surfaced without SSHing in manually.

Add a narrow /ports agent endpoint, a daemon vm.ports RPC that enriches listeners with <hostname>.vm endpoints and best-effort HTTP links, and a concurrent 'banger vm ports' CLI table for one or more VMs.

Update the guest package contract to include ss for rebuilt Debian images, allow the guest agent package in the shell-out policy, and cover the new parsing/RPC/CLI flow in tests.

Verified with GOCACHE=/tmp/banger-gocache go test ./... outside the sandbox, make build, bash -n customize.sh make-rootfs-void.sh verify.sh, and ./banger vm ports --help.
2026-03-19 15:52:11 -03:00
..
capabilities.go Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
capabilities_test.go Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
daemon.go Add vsock-backed VM port inspection 2026-03-19 15:52:11 -03:00
daemon_test.go Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
doctor.go Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
fastpath_test.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
imagebuild.go Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
imagebuild_test.go Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
images.go Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
logger.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
logger_test.go Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
nat.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
nat_test.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
ports.go Add vsock-backed VM port inspection 2026-03-19 15:52:11 -03:00
preflight.go Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
snapshot.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
snapshot_test.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
tap_pool.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
vm.go Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
vm_test.go Add vsock-backed VM port inspection 2026-03-19 15:52:11 -03:00