Skip to content

A scenario for a platform engineer · Staff and up

Four hundred tables with personal data

Ledger · Audit
Wednesday, 10:45

An audit found email and phone columns in about four hundred Unity Catalog tables. All of them must be masked for everyone outside the privacy group, and so must the tables created next month.

What do you do?

Tap the one you would do. The answer opens below.

Show the best call

Tag the columns as personal data, and write one policy on the catalog that masks every column with that tag.

One rule covers all four hundred tables. A new table is covered once its column gets the tag.

Why

Attribute based access control in Unity Catalog attaches a policy to a catalog or schema and applies it by governed tag. A mask written once follows the tag to every column that carries it, now or later.

Read it in the Databricks docs (opens in a new tab)

The other two

Works, at a price. Script a column mask onto each of the columns, table by table.
All four hundred are masked today. Next month's tables are not, until someone runs the script again.
A poor call. Take away access to those tables from everyone outside the privacy group.
The personal data is safe, and so is everything else in those tables that people needed for their work.

The words in this scenario

Unity Catalog.
The part of Databricks that governs data: who may see and change which tables and files, where data came from, and who did what. In the docs (opens in a new tab)
Column mask.
A function attached to a column that decides, for each reader, whether they see the real value or a hidden one. In the docs (opens in a new tab)

Go deeper on brickster.ai

More scenarios

Had one like this at work? Send it to us: the best tickets come from real incidents.

Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.