Skip to content

2.35.2: drop unused requests/pyOpenSSL, cryptography 50.0.2, secure cookies - #1463

Merged
jonfroehlich merged 1 commit into
masterfrom
1460-drop-unused-deps-secure-cookies
Nov 21, 2026
Merged

jonfroehlich merged 1 commit into
masterfrom
1460-drop-unused-deps-secure-cookies

Conversation

@jonfroehlich

Copy link
Copy Markdown
Member

Part of #1460. Supersedes #1462.

What changed

  • Dependencies. Removes pyOpenSSL and requests, which nothing in the project imports (left over from a 2016 integration), along with the four packages only requests needed. pyOpenSSL 26.0.0 required cryptography<47, which is why Dependabot's own bump in chore(deps): Bump cryptography from 46.0.7 to 50.0.0 #1462 could not pass. cryptography moves 46.0.7 → 50.0.2 and stays pinned because pypdf uses it to open AES-encrypted PDFs. This clears the 8 open Dependabot alerts.
  • Cookies. SESSION_COOKIE_SECURE and CSRF_COOKIE_SECURE are on for DJANGO_ENV PROD and TEST. Local dev (plain http) is unchanged.
  • CI. A report-only manage.py check --deploy step publishes Django's deployment checklist to the run Summary. The workflow token is limited to contents: read.
  • SECURITY.md. Points reporters at GitHub private vulnerability reporting, now enabled on this repo.

Verification

  • uv pip compile resolves the new requirements.txt for Python 3.13 with every resolved package pinned.
  • pip-audit against OSV: no known vulnerabilities in the pinned set.
  • Not run locally: the Django test suite (no local stack was up). CI on this PR is the check.

After merge

On -test, confirm /admin login still works (the cookie change) and that a publication PDF upload still gets its thumbnail and page count.

🤖 Generated with Claude Code — Fable 5.2, claude-fable-5-2

…secure cookies

- requirements: remove pyOpenSSL and requests (nothing imports them) and
  requests' transitive pins (certifi, charset_normalizer, idna, urllib3).
  pyOpenSSL 26.0.0 capped cryptography below 47, blocking its security
  updates; with it gone, cryptography moves 46.0.7 -> 50.0.2 (kept pinned
  for pypdf's AES-encrypted PDF support). Clears 8 Dependabot alerts.
- settings: SESSION_COOKIE_SECURE / CSRF_COOKIE_SECURE on PROD and TEST.
- CI: report-only `manage.py check --deploy` step; workflow token limited
  to contents: read.
- Add SECURITY.md pointing at GitHub private vulnerability reporting.

Part of #1460.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@jonfroehlich jonfroehlich added Dependencies Pull requests that update a dependency file Maintenance Security Security: XSS, auth, dependency CVEs, hardening labels Nov 21, 2026
@jonfroehlich
jonfroehlich merged commit ba61c82 into master Nov 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file Maintenance Security Security: XSS, auth, dependency CVEs, hardening

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant