Encrypted mode: no content id of an uploaded file in cache or Redis names. Release 0.6.0. #6

Closed
oliver.maklott wants to merge 0 commits from oliver.maklott/keyed-names into main AGit

In encrypted mode (CONTENT_VERSION_MODE=encrypted) no name this pack writes carries the content id of an uploaded file any more. Plaintext mode keeps every name byte for byte (pinned by test vectors on both sides).

Cache file names

  • Prepared artifacts were named by a plain SHA-256 over JSON that holds the file's content id, so someone who could list the cache and held a candidate file could confirm it is stored. They are named by a keyed digest under the sidecar key now (limedoc:vectorsearch-lite:artifact-name:v1); the search directive and the promoted chunk use the same name.
  • The worker's chunk and vector file names are keyed digests too (…:chunk-name:v1).
  • The worker treats artifact names as opaque ids, as before; in encrypted mode the envelope's AAD binds the bytes to the name.

Redis outbox

  • Entries are named by a keyed token of the entity id and their values are sealed. Before, a restamp of an embedded file (e|sha256-…) and a description change (f|sha256-…|locale) put the content id into a key name, a set member and a clear value.
  • Unsealed entries left by 0.5.1 are deleted unread at the next drain and queued again by the stamp check.

Compatibility

  • Encrypted mode needs app 0.82.0 (sidecarKeyedDigestHex). On an older app the pack loads and refuses to prepare in encrypted mode rather than write a plain hash.
  • Ship the worker image with the pack. After updating, old-named cache files are replaced as documents are indexed again, or at once by "Purge cache".

Tests

  • App side, plaintext / encrypted: pack suite 189 / 192 passed; test:search-smoke 151 / 154.
  • Worker (Docker test image): 138 tests in each mode, 13 new.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2

In encrypted mode (`CONTENT_VERSION_MODE=encrypted`) no name this pack writes carries the content id of an uploaded file any more. Plaintext mode keeps every name byte for byte (pinned by test vectors on both sides). ## Cache file names - Prepared artifacts were named by a plain SHA-256 over JSON that holds the file's content id, so someone who could list the cache and held a candidate file could confirm it is stored. They are named by a keyed digest under the sidecar key now (`limedoc:vectorsearch-lite:artifact-name:v1`); the search directive and the promoted chunk use the same name. - The worker's chunk and vector file names are keyed digests too (`…:chunk-name:v1`). - The worker treats artifact names as opaque ids, as before; in encrypted mode the envelope's AAD binds the bytes to the name. ## Redis outbox - Entries are named by a keyed token of the entity id and their values are sealed. Before, a restamp of an embedded file (`e|sha256-…`) and a description change (`f|sha256-…|locale`) put the content id into a key name, a set member and a clear value. - Unsealed entries left by 0.5.1 are deleted unread at the next drain and queued again by the stamp check. ## Compatibility - Encrypted mode needs app 0.82.0 (`sidecarKeyedDigestHex`). On an older app the pack loads and refuses to prepare in encrypted mode rather than write a plain hash. - Ship the worker image with the pack. After updating, old-named cache files are replaced as documents are indexed again, or at once by "Purge cache". ## Tests - App side, plaintext / encrypted: pack suite 189 / 192 passed; `test:search-smoke` 151 / 154. - Worker (Docker test image): 138 tests in each mode, 13 new. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
Encrypted mode: no content id of an uploaded file in cache file names or Redis names. Prepared artifacts, chunk records and vectors are named by keyed digests under the sidecar key; outbox entries are named by a keyed token and their values sealed. Release 0.6.0.
All checks were successful
Publish / dev-image (pull_request) Successful in 0s
Publish / test (pull_request) Successful in 58s
Publish / worker-test (pull_request) Successful in 1m39s
Publish / pack-and-publish (pull_request) Has been skipped
Publish / build-sidecar (pull_request) Has been skipped
c389b400f9
Needs app 0.82.0 for encrypted mode (sidecarKeyedDigestHex); plaintext mode keeps its names and works on older apps.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
oliver.maklott closed this pull request 2026-11-15 21:19:13 +01:00
All checks were successful
Publish / dev-image (pull_request) Successful in 0s
Publish / test (pull_request) Successful in 58s
Publish / worker-test (pull_request) Successful in 1m39s
Publish / pack-and-publish (pull_request) Has been skipped
Publish / build-sidecar (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
limedoc-plugins/vectorsearch-lite!6
No description provided.