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

# Protect Sensitive Data

> Find sensitive columns, mask them in query results and LLM requests, and control what Formal itself stores

## Overview

Access control decides who connects. Data protection decides what they see once connected.
Formal classifies sensitive data and masks it in the proxy, before it reaches a person, an agent, or an LLM.

## How Formal helps

| Step | Feature | What it does |
| - | - | - |
| Discover | [Data Inventory](https://docs.formal.ai/docs/guides/core-concepts/data-inventory.md) | A [Satellite](https://docs.formal.ai/docs/guides/core-concepts/satellites.md) scans schemas and labels sensitive columns. |
| Mask | [Mask PII and Secrets](https://docs.formal.ai/docs/guides/policies/mask-pii.md) | Response-stage policies redact labeled columns. Request-stage policies redact values in LLM messages. |
| Limit | [Policy Examples](https://docs.formal.ai/docs/guides/policies/examples.md) | Policies filter rows, cap result sizes, and block queries. |
| Protect logs | [Log Schemas](https://docs.formal.ai/docs/guides/observability/log-schemas.md) | Choose what happens to sensitive log fields before Formal stores or exports them. |
| Encrypt | [Encryption Keys](https://docs.formal.ai/docs/guides/integrations/encryption_keys.md) | Encrypt log and session fields with your own KMS key before they reach Formal. |

## Roll it out

**1. Deploy a Connector and add your databases**

See [Deploy a Connector](https://docs.formal.ai/docs/guides/core-concepts/connectors/deployment.md) and [Resources](https://docs.formal.ai/docs/guides/core-concepts/resources/introduction.md).

**2. Deploy the Data Discovery Satellite**

See [Satellites](https://docs.formal.ai/docs/guides/core-concepts/satellites.md). It labels sensitive columns during scheduled scans.

**3. Review the labels**

Open the [Data Inventory](https://docs.formal.ai/docs/guides/core-concepts/data-inventory.md) and correct or add labels.

**4. Write a masking policy**

Follow [Mask PII and Secrets](https://docs.formal.ai/docs/guides/policies/mask-pii.md).

**5. Verify**

Run a query as a restricted user. Labeled columns return masked values, and the [log](https://docs.formal.ai/docs/guides/observability/logs.md) shows the policy that applied.

## Guides

> [card] [Mask PII and secrets](https://docs.formal.ai/docs/guides/policies/mask-pii.md)
>
> Mask labeled columns and redact SSNs in LLM requests

> [card] [Discover and classify data](https://docs.formal.ai/docs/guides/core-concepts/data-inventory.md)
>
> Built-in and custom data labels

> [card] [Business Intelligence](https://docs.formal.ai/docs/guides/integrations/bi.md)
>
> Apply per-user policies behind BI tools

> [card] [Data Handling and Retention](https://docs.formal.ai/docs/guides/observability/data-handling.md)
>
> What Formal stores, and how to redact or export it

## Recipes

[Recipes](https://docs.formal.ai/docs/guides/getting-started/recipes.md) create this configuration for you in the Control Plane.

* **Limit the Rows a Query Returns:** caps query results so large exports need a deliberate exception.
* **Enforce Read-Only Access to Data:** lets people and agents read data while blocking changes and deletions.

## Next Steps

> [card] [Privileged Access Management](https://docs.formal.ai/docs/guides/solutions/pam.md)
>
> Control who connects in the first place

> [card] [Policy Enforcement](https://docs.formal.ai/docs/guides/policies/enforcement.md)
>
> Every masking, filtering, and rewrite action


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