> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/fabricate/data-masking/masking-about.md).

# About Fabricate data masking

{% hint style="info" %}
The masking feature requires an Enterprise license.
{% endhint %}

Unlike data generation, which creates completely new data, Fabricate data masking:

1. Detects sensitive values such as names and identifiers in a source database connection.
2. Writes a masked version of the source data to a target database connection.

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2FPMLlXRGQI5gkmtqXsDLk%2FDiagram_MaskingFlow.png?alt=media&amp;token=e993bbb0-d089-4191-8ae5-ba0c60e1a78f" alt=""><figcaption><p>Fabricate data masking flow</p></figcaption></figure>

## Connect the source and destination databases

To start, you [create database connections](https://docs.tonic.ai/fabricate/databases-and-data/data-agent-db-create-manage/database-add-connection.md) to:

* The database that contains the source data to mask.
* The database where Fabricate writes the masked data.

## Prompt to mask the source database

You then [prompt the Data Agent to mask the source database](https://docs.tonic.ai/fabricate/data-masking/masking-complete/masking-data-privacy-review.md).

## Privacy reviews to identify sensitive values

Fabricate runs a set of [privacy reviews](https://docs.tonic.ai/fabricate/data-masking/masking-complete/masking-data-privacy-review.md) to detect sensitive values in the source data.

The initial scan is followed by a second opinion privacy review to verify and adjust the results.

## Masking configuration

Based on the privacy reviews, Fabricate creates a masking workflow, which includes the [masking configuration](https://docs.tonic.ai/fabricate/data-masking/masking-complete/masking-configuration.md). The masking configuration includes:

* The columns to mask.
* How Fabricate plans to mask those columns.

You can use the Data Agent to adjust the masking configuration. For example, you might:

* Add masking to additional columns.
* Remove masking from selected columns.
* Select a different masking generator.
* Adjust how the generator creates the masked output values.

## Run the masking workflow

To implement the masking configuration, and populate the destination database, you run the masking workflow.

The [workflow run parameters](https://docs.tonic.ai/fabricate/data-masking/masking-complete/masking-run-workflow.md) include:

* Whether to replace the existing destination database data.
* Whether to mask the entire source database or only a subset of the source data.
* Whether to provide a custom statistics seed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tonic.ai/fabricate/data-masking/masking-about.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
