Skip to content

Truth first: log-only egress firewall, netwatch in a KVM leg, honest dashboard labels, egress map as data #4145

Open
4 of 4 issues completed

Description

@pithead-developer

What's the problem

Nothing today shows what leaves a box, and several claims are wrong or unchecked.

  • No caller of the netwatch classifier (tests/netwatch/netwatch-classify.sh) was found in the current batteries, so it proves nothing.
  • The outbound firewall fences containers only. There is no log-only mode to watch what a host-wide default drop would have blocked.
  • The dashboard labels Caddy as firewalled although it uses host networking and is outside the container fence.
  • Whether a stray htpdate unit is enabled in the built image is unchecked.
  • There is no machine-readable list of the outbound paths, so docs and tests are written by hand and drift.

What it impacts

Every later step. Without log-only counters and a netwatch leg, #4155 (benchmark) Run 0 has no unexpected-flow source, and #4154 (step 9: enforce the firewall) would be enforced blind. Owners see an egress panel that overstates the fence.

How I found it

The 2026-11-15 and 2026-11-16 egress inventory (49 paths). Code read of origin/develop: the firstboot and setup-again units call htpdate -s www.debian.org, and the dashboard egress service labels host-network services. Not yet booted or captured for this issue.

How important is it

High for 2.0.5 and first in order. It changes no behaviour, so it is cheap and safe, and every other step is judged against it.

Acceptance criteria

Possible solutions

  • Generate the log-only ruleset from the egress map data so later enforcement is a flag, not a rewrite.
  • Reuse the netwatch selftest harness and add only the wiring.
  • Start from the inventory's 49 rows and trim to what the code confirms.
  • Unknown: how the output table coexists with netavark, the LAN guard and RigForge's input table; test it here in log-only mode first.

Sibling work: #4144 (tracker).

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. added this to the v2.0.5 milestone on Nov 16, 2026
  2. added
    security
    testing
    appliance
    operator-action
    on Nov 16, 2026
  3. removed
    operator-action
    on Nov 16, 2026
  4. added
    tracker
    on Nov 17, 2026
  5. pithead-architect commented on Nov 17, 2026

    @pithead-architect

    A local session judged this too big for one local session (Too big for one local session: issue #4145 carries four independent objectives (egress map as data, log-only host inet output table with counters in egress-status/doctor, netwatch wired into the KVM battery on both roles plus the htpdate image check, honest dashboard labels for host-network services). The runner filed 4 chunks as sub-issues and marked this issue a tracker, so it is not picked again:

  6. pithead-developer commented on Nov 20, 2026

    @pithead-developer
    ContributorAuthor

    htpdate on the built image (#4196 AC 3): systemctl is-enabled htpdate reads enabled on the booted appliance image, from tier4-kvm job 4284@a6f9a93f3b324fd8f9af2a76de5b696f137662ad (boot phase, row htpdate unit on the booted image reads enabled).

    The same job's netwatch windows recorded plaintext HTTP egress from the guest: first boot had 1 CLEARNET-PLAINTEXT-HTTP-egress flow (x6 packets) and reboot had 3. The update window (job 4285, same commit) recorded 6 unexpected flows in total. My guess is that the HTTP flows are htpdate's -s www.debian.org Date read, but the KVM vantage cannot attribute them to a unit, so that is unproven. Removing that fallback is #4149. The first-boot window's other two unexpected rows are ingress from the virbr0 gateway (ICMP, and UDP to port 68).

  7. pithead-developer commented on Nov 22, 2026

    @pithead-developer
    ContributorAuthor

    htpdate re-check on the current #4196 head: the boot job's htpdate unit on the booted image reads enabled row also passed at f8df5ed (job 4461, bench-local 796). Result unchanged: enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appliancesecuritytestingtracker

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions