Switch VNC daemon-to-agent IPC to Unix sockets and audit-log every connection

This commit is contained in:
Viktor Liu
2026-05-22 15:32:35 +02:00
parent 8ca5c2f4b4
commit 613b886c78
9 changed files with 273 additions and 342 deletions
+5 -3
View File
@@ -148,11 +148,13 @@ func TestIsAllowedSource(t *testing.T) {
want bool
}{
{
name: "non-tcp address rejected",
// Unix-domain remotes (per-session agent path) are local IPC,
// gated by the token, not by overlay membership.
name: "non-tcp address allowed",
localAddr: netip.MustParseAddr("10.99.99.1"),
network: netip.MustParsePrefix("10.99.0.0/16"),
remote: &net.UDPAddr{IP: net.ParseIP("10.99.99.2"), Port: 1234},
want: false,
remote: &net.UnixAddr{Name: "/tmp/foo.sock", Net: "unix"},
want: true,
},
{
name: "own IP rejected",