Skip to content

Unity Catalog for enterprise data governance

Preetham ReddyUpdated 3 min read

Unity Catalog architecture: queries from a cluster or SQL endpoint pass Unity Catalog access control and audit logging to managed tables, external tables and files in cloud storage (S3, ADLS, GCS) via external locations.

A security team asks three questions of its data: who can see a row, who changed it, and whether an agent is held to the same grant as the analyst sitting next to it. A catalogue that only records tables won't answer any of them.

We considered running our own context store outside Databricks. It would have been quicker, and it would also have meant copying governed data into a second system and then explaining why two permission models existed. Unity Catalog stays the single place access is decided, which is why Fabric runs on it.

With one place to decide access, applications and agents can be held to the same grants as a person. Below: what actually breaks, why not a second catalogue, and what we do with it.

What actually breaks

Hive metastore leftovers. Schemas nobody moved because the pipeline already worked. A service principal granted ALL PRIVILEGES for a Thursday demo.

The one that catches people is coverage that looks complete in the catalogue browser and stops halfway when you list every schema. The browser shows you what you clicked on. It doesn't show you what you never clicked on, and the three schemas still sitting in hive_metastore are exactly the ones nobody has opened in a year.

There's a trap in how people go looking, too. The obvious move is system.information_schema, which describes objects across every catalog in the metastore and is the right tool for most questions. It excludes hive_metastore by design. So the one audit you would run to find your leftovers is the one audit guaranteed not to show them, and the report comes back clean. SHOW SCHEMAS IN hive_metastore is the unglamorous answer, and it takes about a minute.

system.information_schema audit

excludes hive_metastore by design

report comes back clean

SHOW SCHEMAS IN hive_metastore

your leftovers

The system.information_schema audit excludes hive_metastore by design, so its report comes back clean, while SHOW SCHEMAS IN hive_metastore surfaces your leftovers.

Troy wrote about the lakehouse version of this in Unity Catalog before the first pipeline. The Databricks Health Check is the two-week look at privilege hygiene, orphaned compute, and the jobs that should be serverless. TechFabric Radar is what we use if we stay to make the interventions governed. For a table already in Unity Catalog, our Chrome extension lists who holds SELECT on it, its schema and its catalog, one table at a time.

Why not a second catalogue

Glue, Purview and BigLake each do a job. The job we get hired for is a Databricks programme where the applications and the agents have to inherit the same grants as a person, and Unity Catalog is what makes that possible at all.

A second catalogue next to it is how it fails, and the failure is not dramatic. It's that two systems now disagree about who can read the customer table, and the answer a reviewer gets depends on which one they ask. Nobody notices until someone asks both.

What we do with it

Catalogue and schema design that matches how the teams actually work. Grants a security review can read. Lineage that stays intact as data moves.

Databricks Apps and agents run under their own service principal, so they can't reach what they have no grant for. TechFabric Harness resolves tools through Unity Catalog for the same reason. An agent that gets its permissions from a config file has permissions nobody reviewed.

The lineage tables are the part most teams have and don't use. system.access.table_lineage records every read and write with source_table_full_name and target_table_full_name, and since the May 2025 schema change it carries a statement_id you can join to system.query.history. So "who touched this table, from which query, under whose identity" stops being an investigation and becomes a join.

If you're standing the lakehouse up, that's the Launchpad, with Unity Catalog before the first pipeline. If you already have a workspace and you're not sure the grants hold, start with the Health Check.

Used properly, an audit becomes a query. Used as a sticker on a hive_metastore estate, Unity Catalog is furniture.

The Health Check will tell you which one you have.

Frequently asked questions

Can I audit hive_metastore with the same queries I use for Unity Catalog?

Not with system.information_schema, which excludes hive_metastore by design. SHOW SCHEMAS IN hive_metastore is the check that does cover it, and it takes about a minute. Run it next to the information_schema audit, because the audit alone comes back clean even when the leftovers are still there.

Which identity does an agent run under, and what can it reach?

An agent runs under its own service principal, so it reaches only what that principal has been granted. That's also why a blanket ALL PRIVILEGES grant on a service principal, made for a demo, is the thing to hunt for first. It turns the boundary into a suggestion for that identity.

Can I trace which query touched a table, and under whose identity?

Yes, through system.access.table_lineage joined to system.query.history. The join key is statement_id, which the lineage table has carried since the May 2025 schema change.

Is a second catalogue ever acceptable next to Unity Catalog?

Glue, Purview and BigLake each do a job, so the tools themselves aren't the problem. What we'd avoid is a second place where access is decided. Once two systems answer who can read the customer table, a reviewer's answer depends on which one they ask.

Where we do this work