Repository navigation
docs: note that SqliteCacheStore stores data unencrypted - #6199
Merged
Merged
Conversation
Refs: #4122 Signed-off-by: Mradul Singh <msingh@dealmeridian.com>
metcoder95
approved these changes
Nov 12, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6199 +/- ##
==========================================
- Coverage 91.68% 91.67% -0.01%
==========================================
Files 113 113
Lines 44449 44449
==========================================
- Hits 40751 40748 -3
- Misses 3698 3701 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merged
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.
This relates to...
Refs #4122
Rationale
In #4122 the reporter found that a bearer token ended up in plain text in the SQLite cache file, because the response had
Vary: Authorization. The discussion landed on not hashing keys, and on @metcoder95's idea of documenting this so users know what gets written to disk.Changes
Adds a short paragraph to the
SqliteCacheStoredocs saying:Vary(e.g.Authorization,Cookie) are stored as plain text atlocation;Authorizationare only stored when the response allows it (public,s-maxage,must-revalidate, per RFC 9111 §3.5), andno-storekeeps a response out entirely.I checked the plain-text claim locally: writing an entry with
Vary: authorizationand a query-string token, both strings show up in the.dbfile.Features
N/A
Bug Fixes
N/A
Breaking Changes and Deprecations
N/A
Status