From fed8c75c6c71105330f4b031ecd38ddb42c4d850 Mon Sep 17 00:00:00 2001 From: Ilker Manap Date: Sun, 4 Oct 2026 11:58:18 +0200 Subject: [PATCH] Do not warn of a missing firewall during the node add that writes it Co-Authored-By: Claude Opus 5.5 (1M context) --- internal/onboard/onboard.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/onboard/onboard.go b/internal/onboard/onboard.go index 1948918..3ef7a04 100644 --- a/internal/onboard/onboard.go +++ b/internal/onboard/onboard.go @@ -457,6 +457,10 @@ func (r *Runner) check(ctx context.Context, res *Result) error { } return fmt.Errorf("llmgw doctor did not run on the node: %v: %s", err, lastLine(out)) } + if !r.Opts.NoFirewall && len(r.Opts.FirewallPorts) > 0 { + // A missing firewall is what this run is about to write. + rep.Findings = slices.DeleteFunc(rep.Findings, func(f doctor.Finding) bool { return f.Area == "firewall" }) + } res.Facts, res.Findings = rep.Facts, rep.Findings fails := 0