> ## Documentation Index
> Fetch the complete documentation index at: https://midplane.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Review sensitive columns

> Choose what agents never see in clear before anyone can query a source: what Midplane suggests, the five masks, and tables and columns added later.

No one can query a source until an owner or admin reviews its sensitive
columns. Midplane suggests masks for columns that look like credentials or
personal data, by their names and types; it never reads a value to decide.
Confirming opens the source to **Everyone**, through the masks you chose.

![The review of a source called Shop: a banner says no one can query Shop yet; the customers table's name column is flagged Name, maybe, unticked, with the Hidden mask offered; two other tables fold under to mask by hand; the button Confirm and open to Everyone.](https://mintcdn.com/midplane/A21NQSgjOLyH_XeA/images/review.png?fit=max\&auto=format\&n=A21NQSgjOLyH_XeA\&q=85\&s=09ee9f56460e30487f870b8d78d8e06b)

**1. Check what Midplane suggests**

Credentials, emails, phones, identity and card numbers and dates of
birth come ticked; names, addresses and IP addresses come unticked, and
an unticked column is readable as it is. Midplane goes by the name, so a
`notes` column full of emails isn't flagged: open **other tables, to mask
by hand** and check the tables you know hold personal data.

**2. Pick each mask**

Pick **Hashed, still joinable** where agents need to join or count by
the column without seeing it, **Hidden** otherwise.

**3. Confirm and open to Everyone**

The first time, Midplane then starts [drafting
metrics](https://midplane.ai/docs/metrics.md#drafts-from-the-schema).

**Check:** **Sources** shows the source as **Readable by Everyone**. To
keep tables or columns to some groups, set [its access](https://midplane.ai/docs/access.md).

> [accordion] If a column you want masked is not listed
>
> A flagged table's card lists only its flagged columns. To mask another,
> confirm the review, then use **Mask another column** on the source's
> [access](https://midplane.ai/docs/access.md#access-by-source).

## Masks

A mask applies wherever an agent reads the column: in results, filters,
joins and expressions. A source's access can clear it for some groups.

| Mask | Columns it fits | What agents get |
| - | - | - |
| **Hidden** | Any type | `***` for text; empty (`NULL`) for any other type |
| **Hashed, still joinable** | Text | A token: 64 hexadecimal characters, the same for the same value |
| **Year only** | Dates and timestamps | The first day of the year: `1987-06-14` becomes `1987-01-01` |
| **Month only** | Dates and timestamps | The first day of the month: `1987-06-14` becomes `1987-06-01` |
| **Empty** | Text | Empty (`NULL`) |

### Hashed, still joinable

Each value becomes the SHA-256 hash of your workspace's salt and the value;
the salt is stored encrypted and never shown to an agent or in Activity. The
same value gives the same token in every table and source of the workspace,
so joins, `GROUP BY` and `COUNT(DISTINCT ...)` work, and a different one in
other workspaces; case and spacing count. Someone who recognizes one row can
find that value wherever it is hashed, so use **Hidden** where nobody joins.

## What agents see

* `describe_table` marks the columns masked for the person, and an answer's
  provenance line counts them.
* A filter compares the masked value: `WHERE email = 'jane@example.com'` on
  a **Hidden** column matches no row.
* A view over a table with masked columns is denied, since a mask can't
  apply inside a view: the agent is told to query the table.
* While anything is masked, only vetted built-in functions run, and database
  errors leave out what could quote a row.

## Tables and columns added later

Midplane reads the catalog again every five minutes. Until someone saves the
review again, a new table or view is closed to everyone and a new column
comes back **Hidden**. **Sources** shows **New tables or columns to
review**: check what the review marks **New**, then select **Save the
review**. Saving keeps who reads what on the source's access.

## What always stays closed

System schemas such as `pg_catalog`, and tables and views a Postgres
extension owns, such as `pg_stat_monitor`, whatever the review or a source's
access says. Agents can read `information_schema`, which holds no values.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.