Skip to content

Commit 22ba7bc

Browse files
chrisguidryclaude
andauthored
Fix Dependabot security alerts for urllib3 and starlette (#286)
Pin urllib3 >=2.6.3 (fixes decompression bomb vulnerabilities) and starlette >=0.49.1 (fixes session middleware vulnerability) as explicit dependencies to ensure we pull patched versions regardless of what our transitive deps request. Clears all 4 alerts at https://github.com/chrisguidry/docket/security/dependabot 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8c0b5a1 commit 22ba7bc

File tree

3 files changed

+44
-16
lines changed

3 files changed

+44
-16
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,28 @@ jobs:
6969
name: "Redis 8.0 Cluster"
7070
redis-version: "8.0-cluster"
7171
redis-py-version: ">=5"
72-
pytest-args: "-v -s"
73-
# Cluster mode on Python 3.14 emits ResourceWarning about unclosed
74-
# sockets during test teardown. The warnings appear related to
75-
# redis-py's cluster pub/sub connection management, likely an
76-
# incompatibility between asyncio changes in 3.14 and redis-py.
77-
# Ignoring these warnings until upstream fixes land.
72+
pytest-args: "-v -s -W ignore::ResourceWarning"
73+
# Cluster mode emits ResourceWarning about unclosed sockets during
74+
# test teardown. The warnings appear related to redis-py's cluster
75+
# pub/sub connection management. Ignoring until upstream fixes land.
76+
- python-version: "3.10"
77+
backend:
78+
name: "Redis 8.0 Cluster"
79+
redis-version: "8.0-cluster"
80+
redis-py-version: ">=5"
81+
pytest-args: "-W ignore::ResourceWarning"
82+
- python-version: "3.11"
83+
backend:
84+
name: "Redis 8.0 Cluster"
85+
redis-version: "8.0-cluster"
86+
redis-py-version: ">=5"
87+
pytest-args: "-W ignore::ResourceWarning"
88+
- python-version: "3.13"
89+
backend:
90+
name: "Redis 8.0 Cluster"
91+
redis-version: "8.0-cluster"
92+
redis-py-version: ">=5"
93+
pytest-args: "-W ignore::ResourceWarning"
7894
- python-version: "3.14"
7995
backend:
8096
name: "Redis 8.0 Cluster"

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ dependencies = [
4242
dev = [
4343
"codespell>=2.4.1",
4444
"docker>=7.1.0",
45+
# Security: urllib3 >=2.6.3 fixes decompression bomb vulnerabilities
46+
"urllib3>=2.6.3",
4547
"ipython>=8.0.0",
4648
"loq>=0.1.0a3",
4749
"mypy>=1.14.1",
@@ -69,7 +71,13 @@ docs = [
6971
"mkdocstrings>=0.24.1",
7072
"mkdocstrings-python>=1.8.0",
7173
]
72-
examples = ["fastapi>=0.120.0", "pydantic>=2.11.10", "uvicorn>=0.38.0"]
74+
examples = [
75+
"fastapi>=0.120.0",
76+
"pydantic>=2.11.10",
77+
# Security: starlette >=0.49.1 fixes session middleware vulnerability
78+
"starlette>=0.49.1",
79+
"uvicorn>=0.38.0",
80+
]
7381

7482
[project.scripts]
7583
docket = "docket.__main__:app"

uv.lock

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)