Commit 993d088
Fix bugs found during code audit
Server fixes:
- Remove unwrap() on reqwest client builder in doctor handler (panic risk)
- Use saturating_mul for pagination to prevent integer overflow on large page values
- Cap page/per_page to sane maximums (10000/100)
- Validate branch names against allowed characters to prevent injection
- Return 404 for unmatched /api/ routes instead of SPA HTML fallback
- Use tokio::fs instead of blocking std::fs in async save task
- Log persistence errors to stderr instead of silently ignoring
Helm chart fixes:
- Fix GPU resources creating duplicate 'limits' key in ollama-deployment
(now properly merges nvidia.com/gpu into existing limits block)
- Move PVC YAML separator inside conditional to avoid dangling '---'
when first PVC is not rendered
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ed06fa4 commit 993d088
File tree
5 files changed
+51
-16
lines changed- charts/diffscope/templates
- src/server
5 files changed
+51
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | | - | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
| 60 | + | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
148 | 161 | | |
149 | 162 | | |
150 | 163 | | |
| |||
301 | 314 | | |
302 | 315 | | |
303 | 316 | | |
304 | | - | |
305 | | - | |
306 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
307 | 320 | | |
308 | | - | |
| 321 | + | |
| 322 | + | |
309 | 323 | | |
310 | 324 | | |
311 | 325 | | |
| |||
344 | 358 | | |
345 | 359 | | |
346 | 360 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | 361 | | |
353 | 362 | | |
354 | 363 | | |
| |||
363 | 372 | | |
364 | 373 | | |
365 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
366 | 383 | | |
367 | 384 | | |
368 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | | - | |
99 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
| |||
0 commit comments