Skip to content

chore: dependency updates, Python 3.14 and LocalStack migration - #2

Merged
driedel merged 5 commits into
mainfrom
chore/dependency-updates
Nov 23, 2026
Merged

driedel merged 5 commits into
mainfrom
chore/dependency-updates

Conversation

@driedel

@driedel driedel commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Python 3.14 in both images and CI (3.15 evaluated but blocked: minify-html and httptools have no cp315 wheels yet)
  • All dependencies bumped: fastapi 0.165.0, uvicorn 0.54.0, redis-py 8.2.0 + rq 3.0, boto3 1.44.9, beautifulsoup4 4.15.0, Pillow 13.0.0 (security release), fonttools 4.68.0, rcssmin/rjsmin 1.3.0, pytest 9.x / pytest-cov 7.x / httpx2 (floor pin added)
  • CI: GitHub Actions bumped to current majors (codeql-action v3 → v4 before its Dec/2026 deprecation), pylint 3.3 → 4.1, removed obsolete FORCE_JAVASCRIPT_ACTIONS_TO_NODE24
  • Dev stack: MinIO images were deleted from Docker Hub (Sept 2026), breaking fresh pulls — replaced with pinned localstack/localstack:4.6.0; bucket + anonymous-read policy auto-created via localstack/init-s3.sh; nginx preview proxies to it
  • Fix: SSRF validation now rejects non-public IP literals (CGNAT 100.64.0.0/10 slipped through since Python 3.12.4)

Verification

  • 107 tests passing inside Docker (Python 3.14.10), coverage 73%
  • pylint 4.1 at 10.00/10 (CI gate), bandit clean, pip-audit clean
  • End-to-end: signed POST /publish → worker pipeline → upload → nginx preview serving the minified site (anonymous GET 200)

Deploy notes

  • Drain in-flight RQ jobs before deploying (1.16 payloads may not deserialize under RQ 3.0; re-publishing resolves)
  • Pillow 13 now produces AVIF where it previously fell back to WebP

MinIO deleted its minio/minio and minio/mc images from Docker Hub in September 2026, breaking fresh pulls of the dev stack. LocalStack 4.6.0 is pinned (recent releases require a LOCALSTACK_AUTH_TOKEN account). The bucket and its anonymous-read policy are created by localstack/init-s3.sh via the container init-hooks directory; the nginx preview now proxies to localstack:4566.
ipaddress in Python 3.12.4+ classifies the CGNAT range 100.64.0.0/10 as neither private nor reserved, so the old flag-based check accepted those URLs. Reject anything that is not globally routable (not addr.is_global) instead, and add tests for the CGNAT rejection and for public IPs staying allowed.
@driedel
driedel merged commit 1657dd0 into main Nov 23, 2026
1 check passed
@driedel
driedel deleted the chore/dependency-updates branch November 23, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant