Skip to main content
Sensitive data scanning helps teams find and manage personally identifiable information (PII) in Lovable projects. It covers both:
  • New chat activity, through Chat send protection for messages and attached files.
  • Existing project data, through on-demand scans of chat history, Lovable Cloud database, and Lovable Cloud storage.
Use sensitive data scanning to identify personal or regulated data that flows through a Lovable workspace, so teams can review, redact, or remove it before it is used in generated apps or left behind in project data.

Why use sensitive data scanning

Teams that work with regulated, confidential, or customer data need visibility and control over where personal data appears. Sensitive data scanning helps you:
  • Meet internal compliance and data loss prevention (DLP) requirements.
  • Give users a chance to review and redact PII before sending chat messages.
  • Prevent detected PII from being sent in chat when stricter workspace controls are needed.
  • Audit stored project data before release, handoff, or review.
  • Keep an audit-ready record of detected PII and the actions taken on it.

Prerequisites

To use sensitive data scanning, you need:
  • An Enterprise plan
  • Sensitive data scanning enabled for your workspace in Settings → Privacy & security
  • A workspace owner or admin role to enable sensitive data scanning and configure workspace-level settings
  • Project edit access to run on-demand scans, review findings, and act on findings in Project → More → Sensitive data

How sensitive data detection works

Every sensitive data scan in Lovable runs through the same detection engine, Google Cloud DLP, which recognizes well-known formats of personal information such as email addresses, credit card numbers, government IDs, and phone numbers from a range of countries. The engine returns potential matches, and Lovable records qualifying matches as findings in the project’s Sensitive data tab. For new chat messages, Lovable may also run an additional LLM-based review pass that checks the Google Cloud DLP results, filters likely false positives, and can catch sensitive content the pattern-based scan missed. This applies only to message text, not file attachments. If the review is unavailable, Lovable uses the original DLP results unchanged. Scans are read-only. They do not change, move, redact, or delete data by themselves. To remove or redact PII, take action on individual findings or ask Lovable in chat to fix the data. There are no additional charges to your workspace based on the volume of messages scanned or findings recorded.

What the engine looks for

Lovable scans for a fixed list of information types, grouped into these categories: The list is international by design and covers patterns common in the EU, UK, India, Canada, and the US.

How detection confidence works

For every potential match, the detection engine returns a likelihood score. Likelihood reflects how confident the engine is that the value really is the type of PII it identified. It does not describe how serious the data is. Lovable records findings only at the Likely or Very likely level. Lower-confidence matches are filtered out before they reach the findings table, so the list stays focused on real issues.

How findings are prioritized

Each information type is mapped to a sensitivity tier that reflects how serious the match would be if real. Likelihood and sensitivity are independent. A finding can be high-confidence and low-impact, or lower-confidence and high-impact. When you triage findings, address High sensitivity findings first.

What gets scanned

Sensitive data scanning covers different sources depending on whether the scan runs live through Chat send protection or on demand from the project’s Sensitive data tab.

Configure sensitive data detection

Workspace admins and owners configure sensitive data scanning at Settings → Privacy & security. Sensitive data scanning has three related workspace settings: Sensitive data scanning must be enabled before the other controls are available. When enabled, it:
  • Makes Chat send protection available.
  • Makes Block publishing with PII available.
  • Adds the Sensitive data tab to projects.
  • Allows on-demand scans of existing project data.
  • Lets anyone with project edit access review and act on recorded findings.
When disabled, no sensitive data scans run, no PII findings are recorded, related controls are hidden or inactive, and the Sensitive data tab is hidden on projects.

Chat send protection

Chat send protection becomes available only when Sensitive data scanning is on. It controls what happens when PII is detected in new chat messages or attached files. On-demand scans of chat history, Lovable Cloud database, or Lovable Cloud storage still work regardless of the chat send protection mode. It has four modes:

Block publishing with PII

Block publishing with PII controls whether unresolved sensitive data findings block publishing. This setting is available only when Sensitive data scanning is enabled. By default, Block publishing with PII is disabled. Use this setting when your workspace requires projects to clear sensitive data findings before they go live or receive updates.

PII detection warning

When Chat send protection is set to Ask before sending or Block original, Lovable scans new chat messages and attached files before they are sent. If no PII is detected at the Likely threshold or above, the message sends. If PII is detected, the user sees a warning with:
  • The detected information types
  • A redacted preview of the message, when specific message text can be redacted. Detected segments are replaced by [REDACTED:TYPE] badges. Hovering over a badge reveals the original snippet that triggered the finding.
  • Matched snippets from attached files
  • The actions available for the current Chat send protection mode and content type
The user chooses one of the available actions, depending on whether the finding is in message text or an attached file: If the user edits, cancels, or sends a redacted message, the original PII is discarded and not recorded as a finding. PII detection warning can be disabled for a project when Chat send protection is set to Ask before sending.

Disable PII detection warning for a project

When Chat send protection is set to Ask before sending, project members with edit access can disable PII detection warning from the project’s Sensitive data tab. Use this for projects where the warning adds unnecessary friction, such as internal tools where the team has already accepted the data flow. When PII detection warning is disabled:
  • Detected PII in new chat messages and attached files sends without showing the warning.
  • Findings are still recorded for audit and review in the project’s Sensitive data tab.
Disabling PII detection warning is not available in Off, Log only, or Block original mode.

Run an on-demand scan

An on-demand scan inspects content as it currently exists:
  • Chat history as saved
  • Current rows in Lovable Cloud database tables
  • Current objects in Lovable Cloud storage
Anyone with project edit access can run an on-demand scan across stored project data. To run an on-demand scan:
  1. Open Project → More → Sensitive data.
  2. Click Run scan.
  3. Wait for the scan to finish.
On-demand scans record every piece of PII found in the stored content they inspect, with no user choice involved. Because on-demand scans read stored content, PII that was already redacted or deleted is no longer present and is not recorded again. This makes it safe to re-run scans without losing review history.

Review findings

Detected sensitive data findings are recorded in each project’s Sensitive data tab. The Sensitive data tab appears under Project → More whenever Sensitive data scanning is enabled for the workspace. If Sensitive data scanning is off, the tab is hidden and no findings are recorded. Above the findings table, you can see when the project was last scanned, for example “Last scanned 8 hours ago”, or “This project has not been scanned yet” for projects that have never been scanned. Use this view to review where PII was found, when it was recorded, and what action was taken.

PII findings table

Findings are grouped by source. Every finding tied to the same source appears together as one expandable row. The rows underneath represent a single finding within it. When you expand a group row, each nested row shows details for one finding. The PII findings table includes the following columns:

Take action on findings

The available action depends on the source of the finding. A single chat message, upload, or storage object can produce multiple findings. Actions either change review state or change the underlying content:
  • Not PII and Reopen change the review state of an individual finding.
  • Redact and Delete change the underlying content and resolve every finding on the referenced item together, so they always live on the group row.
For Cloud database findings, you can mark a finding as Not PII to dismiss it, but the row must be removed from the database directly. Ask Lovable to fix it in the chat, then re-run the scan. Re-running the scan after removing the row updates the finding’s status.
Findings remain in the PII findings log after they are Fixed or marked as Not PII. The audit trail is preserved even when the underlying content is removed. If Block publishing with PII is enabled, unresolved findings must be fixed or marked as Not PII before the project can be published or updated.

Best practices

  • Start in Log only mode. Use Log only to understand what surfaces in your workspace before moving to Ask before sending or Block original.
  • Prioritize High sensitivity findings. Address High sensitivity findings first, especially when they are Likely or Very likely.
  • Treat Not PII as a real signal. Mark a finding as Not PII only when the match is genuinely incorrect.
  • Disable PII detection warning sparingly. Disable it only for projects where the team has explicitly accepted the data flow.
  • Re-scan after major data changes. After importing data, restoring a backup, or making large schema changes, run an on-demand scan to catch anything new.
  • Use Block publishing with PII for release control. Enable it when projects should not be published or updated until unresolved sensitive data findings have been reviewed.

Limitations

Before relying on sensitive data scanning as the only line of defense, review the following limits.
  • On-demand scans cover Lovable Cloud databases and storage. External or self-hosted resources are not scanned.
  • No direct fix for Cloud database findings. Cloud database findings can be marked as Not PII from the project’s Sensitive data tab, but the underlying row must be removed from the database directly. To remove the underlying PII, ask Lovable to fix the data in chat, then re-run the scan.
  • Only recognized file types are scanned. Storage and upload scans read supported text files, spreadsheets, documents, PDFs, and images. Files in unsupported formats, or files uploaded without a recognizable content type, are skipped.
  • Storage scans are sampled, not exhaustive. Each storage scan checks the 10 most recently used buckets in the project, the 20 most recently changed files in each bucket, and roughly the first 450 KB of each text file or document, or 3.9 MB of each image. Older files, files beyond those counts, and content past the size limit are not inspected.
  • Database scans are sampled, not exhaustive. Each database scan reads roughly the first 200 rows from relevant tables and only the beginning of very large text values. A clean scan means no PII was found in the sampled data, not that the full database is guaranteed to be PII-free.
  • File upload findings are capped. For file uploads, Lovable records up to 10 findings per file. If a file has more findings, redact or delete the file rather than addressing findings one at a time.
  • Files with detected PII cannot be partially redacted. When an attached file contains PII, the user must redact the file manually before sending, remove the attachment, or, in Ask before sending mode, send the original if your workspace policy allows it.
  • In-chat form answers are not scanned. Answers typed into in-chat forms are not scanned directly. If Lovable repeats the value back into chat, an on-demand chat history scan can still pick it up.
  • Findings log cannot be exported. Findings are viewable in the project’s Sensitive data tab, but there is no export option at the moment.

FAQ

The default is Log only. Findings are recorded in the Sensitive data tab without interrupting users until you change the mode.
Yes, but only when the workspace is in Ask before sending mode. From Project → More → Sensitive data, disable PII detection warnings for that project. Detected PII is then allowed in chat for that project, while findings are still recorded.In Block original mode, sending messages with detected PII is always blocked and cannot be bypassed at the project level.
Findings appear in each project’s Sensitive data tab. Go to Project → More → Sensitive data.
In Ask before sending mode, the user can send the original content. For message text, they can also edit or send a redacted version. For attached files with PII, they can cancel or send the original.In Block original mode, the original content cannot be sent. For message text, the user can edit or send a redacted version when available. For attached files with PII, they must cancel and replace the file.
No. Choosing Send redacted or editing the message discards the original PII, and nothing is written to the findings log. 
No. Findings remain in the PII findings log to preserve the history of detected PII and the actions taken. When the underlying content is redacted or deleted, the status of the finding moves to Fixed.
Findings are surfaced at the Likely confidence level or above. Possible, Unlikely, and Very unlikely matches are filtered out. Custom or proprietary identifiers that do not match a supported information type are also not detected.