From c9833eb810d9a4308766451afde78ab91f1e95f2 Mon Sep 17 00:00:00 2001 From: derekc Date: Sat, 17 Oct 2026 00:06:28 -0700 Subject: [PATCH] Upgrade dependencies and patch known vulnerabilities Bump fastapi (starlette 1.8.0), uvicorn, python-multipart, pydantic-settings, pytz, email-validator, and slowapi. Move nginx and mysql image pins to current digests. Rename deprecated HTTP_422 status constant. Co-Authored-By: Claude Opus 5.5 --- backend/app/routers/entries.py | 2 +- backend/requirements.txt | 14 +++++++------- docker-compose.yml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/backend/app/routers/entries.py b/backend/app/routers/entries.py index 108a5e7..4d8fad8 100644 --- a/backend/app/routers/entries.py +++ b/backend/app/routers/entries.py @@ -55,7 +55,7 @@ async def create_entry( current_user: User = Depends(get_current_user), ): if body.entry_type == EntryType.add and not body.bourbon_name: - raise HTTPException(status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, detail="bourbon_name is required for add entries") + raise HTTPException(status_code=status.HTTP_422_UNPROCESSABLE_CONTENT, detail="bourbon_name is required for add entries") entry = Entry( user_id=current_user.id, diff --git a/backend/requirements.txt b/backend/requirements.txt index f9fb2d2..0c3081e 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,13 +1,13 @@ -fastapi==0.115.6 -uvicorn[standard]==0.32.1 +fastapi==0.143.3 +uvicorn[standard]==0.54.0 sqlalchemy[asyncio]==2.0.50 aiomysql==0.3.2 -pydantic-settings==2.7.0 +pydantic-settings==2.16.0 python-jose[cryptography]==3.5.0 passlib[bcrypt]==1.7.4 bcrypt==4.0.1 -python-multipart==0.0.29 -pytz==2024.2 -email-validator==2.2.0 -slowapi==0.1.9 +python-multipart==0.0.32 +pytz==2026.5 +email-validator==2.3.0 +slowapi==0.1.10 httpx==0.28.1 diff --git a/docker-compose.yml b/docker-compose.yml index 95bcda0..3bc4354 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: nginx: - image: nginx:alpine@sha256:4001b8091adb507866f42c251759b40290995629415d46684a32d3ede850c976 + image: nginx:alpine@sha256:892bb2152464f0c5d8972593a5f5afaf8054552580b699d95f8ff4af08c2d33d ports: - "8057:80" volumes: @@ -37,7 +37,7 @@ services: start_period: 30s db: - image: mysql:8@sha256:c36050afdca850f23cef85703f84c7531a5ae155a11b5ee1c60acb09937c4084 + image: mysql:8@sha256:24989179f58856db763f418010c1169fecc944e3ec1ea7e921572d83eb070f70 environment: - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} - MYSQL_DATABASE=${MYSQL_DATABASE}