← Back to the blog

Blog

RAG Permissions Require Real-Time Authorization

RAG permissions go stale faster than vectors. A recent AWS architecture article addresses this with a two-stage approach: the index filters candidates quickly using stored access metadata, and before content reaches the language model, the system verifies authorization again at the source.

An index is not an authorization system

ACLs, groups, and owners can be stored as metadata on documents or chunks during ingestion. That speeds up retrieval, but it captures only a point-in-time view. Between synchronization runs, an employee may switch teams, a project folder may become restricted, or a document may be deleted.

For Google Drive, AWS describes pre-filtering in the vector index, followed by a real-time check of the retrieved candidates through the source API. Only documents that the requesting user can still access are allowed into the model context.

Microsoft applies the same core principle to the Microsoft 365 Copilot APIs: requests run in the context of the signed-in identity and should return only content that this identity is authorized to access. The existing controls in the source system remain part of the response path.

What the architecture also needs

A real-time check alone does not solve the whole problem. Enterprises have to design the control path deliberately:

  • Identity: Every request must map to a real person or a tightly scoped process identity.
  • Failure behavior: If the source check is unavailable or inconclusive, the system must never fall back to stale permissions.
  • Latency: Candidate counts, batch checks, and short-lived caches must keep performance pressure from bypassing security.
  • Revocation: Permission changes and deletions must propagate to the index, caches, and stored responses.
  • Evidence: User, source, checked resource, and authorization decision need traceable logs.

OWASP recommends much the same: access control during retrieval, permission metadata for each chunk, audit logging, and cascading deletion of dependent vectors.

The operational consequence

A broadly privileged service account is particularly risky because it can bypass source-system protections and expose content that users could never open directly. Authorization and query logs can themselves contain personal or confidential data, so purpose, retention, and access must be clearly defined.

Treat the vector index as a search accelerator rather than the final authority. The control question that matters is: Would the source system still allow this access right now?

← Back to the blog