Skip to main content

Sensitive data (PII) protection

Zingle labels every column in your warehouse by how sensitive it is, and protects sensitive values before the agent sees them and before Zingle stores anything about them. The goal is simple: nothing sensitive leaks to the agent.

When Zingle is unsure about a column, it protects it.

Where protection applies​

Working with the agent​

When the agent queries your warehouse, each column in the result is protected by its label before the agent, or the language model behind it, sees it:

  • Masked columns come back as stable codes such as tok_3f9a….
  • Hidden columns come back as "withheld", with no values.
  • A short note under the result names each protected column and why, so the agent does not mistake a code for broken data.

Counts and distinct counts still work on protected columns, so the agent can still reason about your data without seeing the values.

Data Zingle stores​

The same protection applies before anything is saved on Zingle's side, including column statistics, cached query results, chat history, and logs.

Also covered​

  • Pull requests and Slack. Values that are "internal only" or stricter are never written into a pull request, review comment, or a Slack channel shared with another company.
  • Pushes. A push from a chat is blocked if the code the agent added contains a raw personal value. The message names the files, never the values.

The four protections​

Every column gets one of four protections. Your organization can rename the four labels to match its own wording.

ProtectionInside ZingleLeaves Zingle (PRs, shared Slack)Typical columns
ShowValues shown as they areYesIDs of things, dates, flags, amounts
Internal onlyValues shown as they areNeverRevenue, pricing, cost
MaskEvery value becomes a stable codeCodes only, never valuesEmail, phone, name, address, IP, birth date
HideColumn listed as "withheld", no valuesNeverHealth data, card and bank numbers, government IDs, passwords and keys

Card numbers, bank accounts, government IDs, and credentials are never shown less strictly than Mask.

How masking works​

A masked value is replaced by a code made with a keyed one-way hash:

  • The same value always gives the same code within your organization, so joins, grouping, and counts still work.
  • Codes cannot be reversed. No lookup table exists, and the key is never stored or shared.
  • Each organization has its own key, so the same value gives different codes in different organizations.

Codes are pseudonymous, not anonymous: someone in your organization who already knows a value can recognise its code. Under GDPR, pseudonymised data is still personal data.

How columns are labelled​

On every repository sync, Zingle labels each column before it stores anything about it, using three signals:

  1. Names, descriptions, and dbt tags. These are checked by a classifier. No values are sent.
  2. Pattern checks on up to ten sample values per text column, for example email, phone, card number (with checksum), IBAN, and national ID formats. Only how many values matched is kept, never the values.
  3. Deep scan (on by default, can be turned off by an administrator). The same ten sample values are sent to the model to judge the column. Nothing from them is stored.

The strictest answer wins. A sync can only make a column stricter, never looser, and a failure never loosens one. A column Zingle cannot place is masked and marked "please confirm" until an administrator decides.

You can also map your own dbt tags, such as pii, to a protection, so columns you have already tagged are protected from the first sync.

Each environment (for example dev and prod) has its own labels. When a query reads a table, the strictest label across every environment pointing at that table applies, so a looser dev label can never expose prod data.

Reviewing labels​

Administrators review labels on the Data protection tab of the Data page, one environment at a time. They can:

  • See tables with masked or hidden columns, or anything waiting to be confirmed.
  • Correct a column's label, or set a whole table at once. A label set by hand is locked, so later syncs leave it alone.
  • Confirm labels one at a time or in bulk.
  • Ask Zingle to re-check an environment at the next sync.

Zingle records who changed what, and when. Analysts do not see these tabs; they see only a small badge with the label next to a column, so a masked result is not mistaken for broken data.

Protection is switched on for an organization once its labels have been reviewed. Labelling always runs.