Repository navigation
Add docs pages for fixing CVE-2025-69872 and migrating from diskcache 5.6.3 - #27
Merged
Merged
Conversation
…rom diskcache 5.6.3.
Documentation build overview
|
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.
Two new documentation pages, placed first in the table of contents and linked from the README.
Fix CVE-2025-69872 in diskcache (
docs/fix-cve-2025-69872.rst)Cache(..., disk=SafeDisk).SafeDiskfor your caches and for caches libraries create (DISKCACHE_DISK=safeorconfigure, which reaches only caches created throughdiskcache_community), allow your own classes withwith_types, store numpy arrays as bytes, handle entries already in the cache (clear()oron_error='miss'), and check the result.Diskstill usespickle.load, and a clean scanner result says nothing about which disk a cache uses.SafeDiskhandles each item: keys as well as values, the filename column, exact classes rather than module prefixes, no numpy, no imports while reading, and refusal at write time.Migrating from diskcache 5.6.3 (
docs/migrating.rst)Disksubclasses included), the Django settings, and a test run against an existing cache.diskcachepackage, with thetry/exceptimport for libraries.0700directories, read-only opening, theSQLITE_DQS=0trigger rewrite, memoize keys for ignored positional parameters, connection and fork handling,FanoutCachefixes, and theNonedisk default.doc8passes and the Sphinx build is clean.