ACL-Aware Retrieval
In this article
- Say why the user's groups must come from the signed-in session and never from the question or a request header.
- Explain why a permission filter inside the query is not enough once a document's permissions change after indexing, and what the live check adds.
- Predict what the assistant returns, cites and logs when a chunk is denied or when the permission check times out.
- Write a permission-change test that proves a narrowed document leaves no text, citation, title or log line.
- Terms defined here: ACL-aware retrieval.
Overview
A support assistant that searches your company's documents will quote any document its search returns. Everyone agrees it should respect who may read what; the hard questions are whose permissions it uses and how current they are. In an invented example, Brightline, a home-internet provider, runs such an assistant. Its staff handbook may be read only by support staff, and the "Fee waivers" chapter is closed to contractors. One morning that chapter's permissions change.
By the end you can say where the user's groups come from, why a permission filter in the search goes stale, and how a second, live check catches the change. You can predict what the reply, its citations and the logs show when a chunk is denied or the check fails, and write the test that proves it.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Whose groups count
- The first check: inside the query
- When the stored list is wrong
- The second check: ask the drive
- When the drive does not answer
- Leaving no trace
- Proving it with a permission change
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions