Commit b0ece22
fix(litellm): silence bandit B310 on the preflight urlopen
The litellm preflight opens LITELLM_BASE_URL/health/liveliness to fail fast when
the proxy is down. bandit flags urlopen (B310, permitted-schemes) at medium — but
the URL is built from the operator-configured LITELLM_BASE_URL, not untrusted
input, so scope a nosec B310 with justification. Unblocks the Quality Gate.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8510002 commit b0ece22
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
0 commit comments