Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/accessibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ jobs:
fuser -k 8888/tcp 2>/dev/null || true

- name: Upload pa11y screenshots
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: pa11y-screenshots
path: pa11y-screenshots/
retention-days: 7

- name: Upload Lighthouse report
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: lighthouse-report
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ jobs:
# Ignored vulnerabilities (review quarterly):
# - PYSEC-2024-87: Jinja2 sandbox escape - not exploitable in our use case (no user templates)
# - GHSA-34jh-p97f-mpxf: aiohttp CRLF injection - we don't use aiohttp client with untrusted URLs
# - GHSA-w853-jp5j-5j7f: filelock race condition - fix version 3.20.1 not yet released (latest: 3.19.1)
# Last reviewed: 2025-12-29
pip-audit --ignore-vuln PYSEC-2024-87 --ignore-vuln GHSA-34jh-p97f-mpxf --ignore-vuln GHSA-w853-jp5j-5j7f
# - GHSA-qmgc-5h2g-mvrw: filelock TOCTOU - fix requires Python 3.10+, container image is patched
# Last reviewed: 2026-01-17
pip-audit --ignore-vuln PYSEC-2024-87 --ignore-vuln GHSA-34jh-p97f-mpxf --ignore-vuln GHSA-qmgc-5h2g-mvrw

security-summary:
name: Security Scan Summary
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile.worker.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ WORKDIR /build
COPY pyproject.toml ./

# Install Python dependencies to a specific location for copying
# Note: filelock and jaraco-context are security patches for transitive dependencies
RUN pip3 install --no-cache-dir --prefix=/install \
fastapi>=0.100.0 \
uvicorn>=0.23.0 \
Expand All @@ -63,7 +64,9 @@ RUN pip3 install --no-cache-dir --prefix=/install \
httpx>=0.25.0 \
watchdog>=3.0.0 \
slowapi>=0.1.9 \
limits>=3.0.0
limits>=3.0.0 \
"filelock>=3.20.3" \
"jaraco-context>=6.1.0"

# Copy source code and install the package
COPY config.py ./
Expand Down Expand Up @@ -92,6 +95,7 @@ RUN dnf install -y \
ffmpeg \
ffmpeg-libs \
curl \
&& dnf update -y \
&& dnf clean all

# Install Intel VAAPI driver for Arc/Battlemage support
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ dependencies = [
"prometheus-client>=0.19.0", # Prometheus metrics
"psutil>=5.9.0", # System resource monitoring for sprite worker
"argon2-cffi>=23.1.0", # Secure API key hashing (Issue #445)
# Security patches for transitive dependencies
# Note: filelock>=3.20.3 fix requires Python 3.10+, pinned in Dockerfile only
"jaraco-context>=6.1.0", # GHSA-58pv-8j8x-9vj2 path traversal vulnerability
]

[project.optional-dependencies]
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ slowapi>=0.1.9

# System resource monitoring
psutil>=5.9.0

# Security patches for transitive dependencies
# Note: filelock>=3.20.3 fix requires Python 3.10+, pinned in Dockerfile only
jaraco-context>=6.1.0 # GHSA-58pv-8j8x-9vj2 path traversal vulnerability
Loading