What Unity Catalog governs in a RAG pipeline, and what it does not
An AI Search index is a Unity Catalog object, so teams assume it inherits the row filters protecting the table underneath it. It does not. Here is where governance actually stops in a retrieval pipeline, and which controls you end up writing yourself.
By Andriy Markiv, Goatechs LLC
The question that exposes this usually comes from an auditor rather than an engineer. An adjuster searches a policy corpus through your assistant and gets back a passage from a file they have no right to read. The Delta table underneath that index has a row filter on it, and the filter is correct. So what happened?
What happened is that the row filter was never in the path. Unity Catalog decides whether your retrieval service may query an index at all. It does not decide which rows come back.
This matters more in claims and underwriting than almost anywhere else, because the corpus is full of exactly the material that row filters exist to separate: other people's medical notes, other adjusters' reserves, other carriers' terms. The governance looks present on the diagram and is absent at the point of retrieval.
What actually inherits, and what does not
Vector Search is now called Databricks AI Search, and an index is a first class Unity Catalog object. That is real and it is worth having. It is also narrower than it sounds.
| Source Delta table | AI Search index | Prompt and output | |
|---|---|---|---|
| Who may read it at all | inherited | inherited | inherited |
| Which rows come back | inherited | yours | yours |
| Which columns are masked | inherited | yours | yours |
| Lineage back to the source | inherited | shared | yours |
| An audit record of the query | inherited | inherited | yours |
Read the middle two rows again. Everything a compliance reviewer means by fine grained access control moves from the platform to your application the moment retrieval enters the picture, and it moves without anyone deciding that it should.
Filtering an index is an argument, not a policy. You pass filters on the search call: a dictionary on a standard endpoint, where the key carries both the column and the operator, and a SQL like string on a storage optimized one.
Either way the value is produced by your code. The correctness of your access control is now a property of that code, which means it is tested the way code is tested, or it is not tested at all.
The identity problem underneath it
There is a second gap below the first one, and it is the reason a correct filter still returns wrong results.
Under app authorization Unity Catalog evaluates policies against the service principal the application runs as, not against the person typing. One principal reads for everyone. The policy is correct, the enforcement is correct, and the subject is wrong.
Every item on the left is true. None of them is measuring the thing that failed. This is why the problem surfaces as an audit finding rather than a bug report: nothing in the system is behaving incorrectly according to its own definition of correct.
Where lineage quietly breaks
Lineage in Unity Catalog is genuinely strong, on one condition: every hop has to name a catalog object. The chain breaks at the first hop that names a path instead.
This is the most common reason a team believes it has lineage and does not. It is also cheap to prevent and expensive to reconstruct after the fact, because you cannot backfill an edge for a read that was never recorded against a catalog object.
For the parts of a pipeline that genuinely live outside Databricks, external lineage went generally available in June 2026, and it lets you attach those hops explicitly rather than leaving a hole in the graph. It does not repair a path based read inside the platform, which still has to be fixed in the job.
Prompts are catalog objects, and that is the cheap win
The part of this that costs least and buys most is the one teams skip. Through the MLflow Prompt Registry, a prompt template is a Unity Catalog entity with a three part name, in the same catalog.schema.name shape as a table. Versions increment on their own, and an alias such as production is a movable pointer to one of them.
That turns two awkward questions into lookups. Which template produced this answer, and what did it say at the time. Git can tell you what a file said on a date. It cannot tell you which version was live when a specific completion was generated, which is the form the question actually arrives in.
Two practical notes. You need CREATE FUNCTION, EXECUTE and MANAGE on the target schema, which is a larger grant than people expect and worth agreeing before the migration rather than during it. And search is scoped to a catalog and schema, with no name pattern or tag filtering, so any richer lookup happens in your code.
Rolling this out without a rewrite
None of this requires rebuilding the service. It does require running two paths side by side for longer than feels necessary.
That last step is the one that bites. A fallback added to protect a latency target, which quietly queries an ungoverned replica whenever the governed path is slow, looks identical to a healthy system on every dashboard you have.
It is also the one event you would most want an alert on. If the fallback is allowed to stay silent, its first reader is an assessor.
Frequently asked questions
Does an AI Search index inherit the row filters on its source table?
No. The index is a Unity Catalog object, so grants decide who may query it at all, but row filters and column masks are evaluated when something queries the table, and a similarity search does not query the table. Row level behavior comes from the filters argument your application passes on the search call, which makes it application logic rather than platform policy. The fastest way to confirm this in your own stack is to query the index as a principal the table filter would exclude and look at what comes back.
Whose permissions apply when an agent runs the search?
Under app authorization, Unity Catalog evaluates policies against the application's service principal rather than the person using it, and effective access is the intersection of the user's grants and the scopes the app declares. If you need per user results, you carry the user's identity into the filter yourself. This is the most common reason a row filter that is provably correct still produces answers a specific user should not have seen.
Why is my lineage graph missing the retrieval hop?
Almost always because a job in the chain refers to its input by cloud storage path instead of by catalog table name. Lineage is recorded against catalog objects, so a path based read produces no edge at all. External lineage, generally available since June 2026, lets you attach hops that genuinely live outside Databricks, but it is not a repair for a path based read inside it. That one is fixed in the job, and only for data read after the fix.
Is registering prompts worth it when we already version them in Git?
Git answers what the template said on a given date. The registry answers which version was live when a particular answer was produced, and those are different questions. Prompt versions increment automatically and an alias is a movable pointer, so promoting and rolling back become catalog operations instead of deployments. The cost is a grant of CREATE FUNCTION, EXECUTE and MANAGE on the schema, and accepting that lookup beyond catalog and schema happens in your code.
What to settle before the review
Nearly all of this can be decided before anyone from risk or audit is in the room, and it goes much better when it has been.
- Query the index as a principal the table filter excludes, and record what came back
- Decide whose identity the filter uses, and write the decision down somewhere findable
- Make every ingestion job read catalog tables rather than storage paths
- Register prompt templates and pin an alias per environment
- Log the user, the filter, the index and the prompt version on every call
- Put the ungoverned fallback behind an alert instead of a silent retry
- Measure governed latency before anyone promises a service level objective
The pattern across all seven is the same. Unity Catalog gives you a real place to put governance and a real record of what happened, then stops at the edge of your application, which is exactly where a retrieval pipeline does its most sensitive work.
The platform is not going to close that gap for you. The gap is not large. It is just unmarked, which is why so many teams walk past it.
If you are working out where governance stops in your own retrieval stack, and what it would take to close it before someone else finds the edge, get in touch.