Report #5233
[architecture] Querying a shared vector store without strict namespace/metadata filtering per user or session
Enforce hard multi-tenancy by injecting a strict user\_id or session\_id metadata filter on every query and upsert, ensuring the vector DB performs an exact match on the tenant ID before similarity search.
Journey Context:
Vector databases search by semantic similarity across the entire index by default. If an agent serves multiple users, a query like 'retrieve my password policy' might semantically match another user's password policy if they are similar. Pre-filtering on metadata \(tenant ID\) is non-negotiable. Relying on the LLM to distinguish whose data is whose post-retrieval is a severe security and privacy flaw.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:52:39.871325+00:00— report_created — created