From f84756f8d4b9ad2b298eea9010716975a7a28e85 Mon Sep 17 00:00:00 2001 From: maziggy Date: Sun, 14 Jun 2026 10:22:21 +0200 Subject: [PATCH] chore(support): silence bandit B104 on net.info ip redaction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "0.0.0.0" written into the support bundle is a JSON sentinel that scrubs the printer's local IP plus the gateway/peers it sees — not a socket bind address. Annotate inline so bandit stops flagging it. --- backend/app/api/routes/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/api/routes/support.py b/backend/app/api/routes/support.py index 10b64b4bd..5c85ce833 100644 --- a/backend/app/api/routes/support.py +++ b/backend/app/api/routes/support.py @@ -1190,7 +1190,7 @@ def _redact_raw_push_status(raw: dict) -> dict: info_list = net.get("info") if isinstance(info_list, list): net["info"] = [ - ({**entry, "ip": "0.0.0.0"} if isinstance(entry, dict) and "ip" in entry else entry) + ({**entry, "ip": "0.0.0.0"} if isinstance(entry, dict) and "ip" in entry else entry) # nosec B104 - redaction sentinel, not a bind address for entry in info_list ]