Repository navigation
2.35.2: drop unused requests/pyOpenSSL, cryptography 50.0.2, secure cookies - #1463
Merged
Merged
Conversation
…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>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1460. Supersedes #1462.
What changed
pyOpenSSLandrequests, which nothing in the project imports (left over from a 2016 integration), along with the four packages onlyrequestsneeded.pyOpenSSL26.0.0 requiredcryptography<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.cryptographymoves 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.SESSION_COOKIE_SECUREandCSRF_COOKIE_SECUREare on forDJANGO_ENVPROD and TEST. Local dev (plain http) is unchanged.manage.py check --deploystep publishes Django's deployment checklist to the run Summary. The workflow token is limited tocontents: read.SECURITY.md. Points reporters at GitHub private vulnerability reporting, now enabled on this repo.Verification
uv pip compileresolves the newrequirements.txtfor Python 3.13 with every resolved package pinned.pip-auditagainst OSV: no known vulnerabilities in the pinned set.After merge
On -test, confirm
/adminlogin 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