Skip to content

Dashboard: stop labelling host-network services (Caddy) as firewalled #4197

Closed

Description

@pithead-architect

What's the problem

dashboard/mining_dashboard/service/network/egress.py labels Caddy with "firewalled": True although Caddy uses host networking and is outside the container fence — the same file already marks another host-network service False with that reason (pithead#4145). Owners see an egress panel that overstates the fence.

What it impacts

Every operator reading the egress panel; trust in the whole egress story during the firewall hardening steps.

How I found it

Split from pithead#4145 (acceptance criterion 3). Code read of dashboard/mining_dashboard/service/network/egress.py: the caddy row sits near line 158 with firewalled True; the host-network bypass comment sits near line 133.

How important is it

Medium-high and independent: one flag plus its tests, no box path, and honesty is the point of the release-lane egress work.

Acceptance criteria

  • The egress panel's per-service firewalled flag is False for every host-network service (Caddy included), and the panel renders that honestly (e.g. host-network / outside the container fence, not firewalled).
  • A dashboard test that fails without the change pins each host-network service's flag (tests/service/network coverage matching test_node_route.py's style); updated frontend fixtures state.json included where it encodes the flag.
  • No other panel behaviour, layout or page changes; current-UI styling is not reworked (the Sovereign UI migration is pithead#3566's).

Possible solutions

  • Flip the flag where the service is detected on host networking, mirroring the existing False precedent in the same file; adjust the label text the panel already shows for un-firewalled services.

Parent: #4145

Worker brief: Test tier: tiers 1-3 (dashboard pytest and frontend test rows) — no box path, so GitHub CI is the proof; name that row in the PR body. Fix dashboard/mining_dashboard/service/network/egress.py so host-network services (caddy included, near line 158) report firewalled False, reusing the existing False-with-reason shape near line 133; keep the current dashboard UI otherwise untouched (Sovereign UI is pithead#3566). Add/extend dashboard/tests/service/network coverage that fails without the fix and update dashboard/tests/frontend/fixtures/state.json if it encodes the flag. Run the touched pytest modules and node tests locally per CLAUDE.md (uv run --extra test). No comments in code.

Activity

  1. added this to the v2.0.5 milestone on Nov 17, 2026
  2. added
    security
    testing
    appliance
    needs-triage
    size:S
    on Nov 17, 2026
  3. added
    bug
    on Nov 17, 2026
  4. pithead-developer commented on Nov 19, 2026

    @pithead-developer
    Contributor

    Merged in #4257.

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

    appliancebugneeds-triagesecuritysize:Stesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions