A chunk loses its ACL during reindexing
Detect: Validation finds missing policy metadata.
Recover: Quarantine it and rebuild metadata before making it searchable.
Apply the requester’s current data entitlements throughout retrieval, reranking, generation, caching, and citation delivery.
Authorization-aware RAG retrieves evidence only within the caller's permitted data scope. It prevents a fluent answer from becoming an indirect read interface to documents the user cannot access. The entitlement boundary must cover chunks, parent documents, metadata, citations, caches, and any derived artifacts.
Filter before evidence reaches the model whenever the storage system supports reliable enforcement. Post-generation redaction is too late because unauthorized information may already influence the answer or enter logs. Preserve document-level and chunk-level policy metadata through ingestion, and define how revocation invalidates previously indexed or cached content.
A prototype can use one public corpus. Introducing private documents requires an explicit identity and entitlement design before expanding the demonstration.
Production propagates authenticated identity, enforces retrieval filters, and rechecks access when citations or attachments are opened. Missing policy metadata should deny access.
At scale, entitlement changes race with index updates and caches. Track policy freshness, use authorization-sensitive cache keys, and test cross-tenant and recently revoked access continuously.
Establishes the authenticated user, tenant, groups, and delegated access context.
Evaluates current document access and supplies enforceable retrieval constraints.
Searches only authorized partitions or applies mandatory access predicates before returning content.
Preserves source ACLs, classification, ownership, and policy versions on every chunk.
Reauthorizes source downloads and prevents leaked direct object-store links.
flowchart LR
U["Authenticated employee"] --> P["Current entitlement policy"]
P --> F["Mandatory retrieval filter"]
Q["Question"] --> F
D["Chunks with source ACLs"] --> F
F --> R["Authorized evidence"]
R --> M["Answer generation"]
M --> C["Citation access gateway"]
P --> C
C --> A["Scoped answer and sources"]sequenceDiagram
participant I as Identity directory
participant P as Policy service
participant C as Answer cache
participant R as Retrieval service
participant U as User
I->>P: Engagement membership revoked
U->>C: Request prior answer
C->>P: Check effective policy version
P-->>C: Prior authorization no longer valid
C->>R: Recompute within current access scope
R->>P: Resolve current permitted documents
P-->>R: Restricted evidence set
R-->>U: Newly scoped answer or no available evidenceObtain trusted identity and tenant context independently of the natural-language query.
Translate current entitlements into mandatory source and chunk constraints.
Apply access restrictions before similarity ranking or before content leaves the trusted retrieval boundary.
Confirm policy metadata and reject stale, missing, or conflicting access information.
Supply only authorized evidence and retain its policy and source versions.
Recheck citation access and store any cached answer under an entitlement-sensitive identity.
Professional services · Illustrative enterprise scenario, not a reported customer outcome.
A consulting firm stores reusable methods beside confidential client engagement documents.
A shared vector index can return a highly relevant confidential chunk to an employee assigned to another client.
The assistant must find useful evidence while preserving engagement membership and document restrictions.
The ingestion pipeline attaches source ACLs to chunks, and retrieval uses the caller's current engagement entitlements.
If a membership revocation has not reached the index, a current policy check rejects the stale candidate before generation.
Measure unauthorized-candidate rejection, revocation propagation delay, authorized recall, and citation access failures. Security tests must inspect model inputs as well as visible answers.
| Decision | Benefit | Cost |
|---|---|---|
| Pre-filtered retrieval | Unauthorized content never enters the model context. | Complex ACL predicates can reduce search efficiency. |
| Shared index | Operations and capacity utilization remain simpler. | Every query depends on correct mandatory filtering. |
| Separate indexes | Stronger isolation reduces accidental cross-scope retrieval. | Many small indexes increase cost and operational overhead. |
Detect: Validation finds missing policy metadata.
Recover: Quarantine it and rebuild metadata before making it searchable.
Detect: Policy version differs from the cache entry.
Recover: Invalidate or reauthorize the result before delivery.
Enforce authorization before evidence reaches generation.
Derive scope from authenticated context.
Apply consistent policy to chunks, parents, and attachments.