Commit 10518e1
committed
chore(sec): bump deps + drop Python 3.9 to clear all OSV findings (5.0.0)
Clears 25 OSV-Scanner findings (1 CRITICAL cryptography, 13 HIGH across
cryptography/urllib3/pyjwt/pyarrow/black, 10 MED, 1 UNKNOWN) by bumping
direct dependency floors and regenerating the lockfile. Forces a major
version bump because the new dependency constraints will conflict with
customers' transitive-dep pins on the older majors of urllib3 (1.x → 2.x),
pyarrow (14/18/22 → 23), pytest (7 → 9), and black (22 → 26).
Drops Python 3.8/3.9 from supported floors. Python 3.8 is 20 months past
upstream EOL (2024-10), Python 3.9 is 7 months past (2025-10). The patched
versions of urllib3 / pyarrow / requests / pytest / black all declare
requires_python>=3.10, so keeping 3.9 in the matrix would silently
downgrade these to CVE-vulnerable versions for 3.9 customers — defeating
the entire purpose of the PR.
Direct runtime bumps:
- urllib3: >=1.26 -> >=2.7.0,<3.0.0 (urllib3 1.x -> 2.x major)
- requests: ^2.18.1 -> ^2.33.0
- pyjwt: ^2.0.0 -> ^2.12.0
- pyarrow: 14/18/22+ -> >=23.0.1 (all three Python-version-gated blocks)
Direct dev bumps:
- pytest: ^7.1.2 -> ^9.0.3
- black: ^22.3.0 -> ^26.3.1 (reformats 13 src files in a follow-up commit)
Transitive cleanups via lockfile (no pyproject change):
- cryptography 43.0.3/45.0.6 -> 48.0.0 (clears CRITICAL PYSEC-2026-36 9.8)
- idna 3.10 -> 3.16
- python-dotenv 1.0.1 -> 1.2.2
Verification:
- OSV-Scanner v2.3.8 against new poetry.lock: 25 findings -> 0
- Unit tests (Python 3.10.18, default deps): 765 passed, 4 skipped
- Unit tests (Python 3.10.18, min deps): 765 passed, 4 skipped
- mypy: same 11 pre-existing errors on main; unchanged
- black: applied separately in next commit
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>1 parent 8a62208 commit 10518e1
4 files changed
Lines changed: 438 additions & 724 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
3 | 27 | | |
4 | 28 | | |
5 | 29 | | |
| |||
0 commit comments