Commit 7764dd5
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 13987de commit 7764dd5
4 files changed
Lines changed: 453 additions & 705 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| 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 | + | |
3 | 26 | | |
4 | 27 | | |
5 | 28 | | |
| |||
0 commit comments