chore(lint): suppress gosec G704 on operator-configured redis dial

This commit is contained in:
2026-08-21 13:46:28 +01:00
parent 1c511085d8
commit 87faa9e096
+1 -1
View File
@@ -216,7 +216,7 @@ func (c *respClient) ensureConnLocked(deadline time.Time) error {
if dialTimeout <= 0 {
return fmt.Errorf("resp: dial %q: %w", c.addr, respDeadlineExceededErr{})
}
conn, err := net.DialTimeout("tcp", c.addr, dialTimeout)
conn, err := net.DialTimeout("tcp", c.addr, dialTimeout) // #nosec G704 -- c.addr is the operator-configured redis address from middleware config, never request-derived
if err != nil {
return fmt.Errorf("resp: dial %q: %w", c.addr, err)
}