ragleap-vectorstores 0.7.1
Behaviour changes (read first)
RedisBackendcreates thetenant_idanddocument_idTAG fields case-sensitive (CASESENSITIVE). A search for tenantACMEno longer returns chunks of tenantacme.search_dense()now also checks, in Python, that every returned chunk has exactly the requestedtenant_id(anddocument_id).delete_document()deletes only chunks whosedocument_idis exactly the one given.- An index created by 0.7.0 or older keeps its case-insensitive field (RediSearch cannot change it). The backend logs a warning for it. Results are now checked exactly, so no other tenant's chunk is returned, but a search can return fewer than
top_khits when another tenant's id differs only in case. Use a newindex_nameand re-ingest to get the case-sensitive field.
Fixed
- REAL BUG in 0.7.0, reproduced with the published 0.7.0 wheel on Redis Stack: two tenants whose ids differ only in case (
acmeandACME; both are valid tenant ids in ragleap-rag) saw each other's chunks insearch_dense(), because RediSearch TAG fields ignore case unless told otherwise.
Not verified
- Only Redis Stack was run (the image
redis/redis-stack-server:latest, 2026-11-25). The other four backends were read, not attacked with case-different tenant ids.
What this does not defend
- The tenant tag is whatever the caller (for example
rag.for_tenant) passes; this package does not authenticate anyone. - On an index made by 0.7.0 or older, chunk counts in
list_documents()still match document ids without regard to case.
Added after the release (2026-11-25)
- Chroma and LanceDB were run for real in a sandbox with tenants
acme,ACME,Acmeandacme: each search returned only the exact tenant. OpenSearch and Upstash were not run with case-different tenant ids (UNVERIFIED).
Verified (after publishing)
- Both file hashes match the PyPI JSON.
- The wheel's
.pyfiles are identical to the source at the tag. - The 46 tenant-filter tests pass against the installed wheel (clean install, Python 3.12, sandbox).
- The attack that leaked on 0.7.0 was run again on the published 0.7.1 on Redis Stack (VPS): searching as
ACMEreturned onlyACME.txt. - Before release, on the VPS (Python 3.10.12): 80 passed and 32 skipped without servers, 22 live Redis Stack tests passed, 18 of 18 deliberate breaks of the new protections were caught.
- Provenance of both files decoded and matched.
Provenance
- PyPI upload: 2026-11-25 06:38 UTC. Tag
ragleap-vectorstores-v0.7.1on commiteb404dfc943058557b03632e0d365303b3c10a5f. - Wheel sha256
a4f8100729e67f43cc926d863146012655ac7b564a34f2ec0b36b1892d3594cd - Source archive sha256
b3b188c21653f31950885ece4b57d954d6e06d68a81180c371ff2fde8acf5638 - Both files carry a PyPI provenance record: publisher GitHub
ragleap/ragleap-core, workflowrelease.yml, environmentpypi; the digests match. - No independent security review has been done.