# Bolt app security: fix database warnings and exposed data

> Run Bolt’s project security audit from the Publish menu (paid plans, no tokens) and clear every warning on the database Security page. Replace “always true” policies with rules based on the signed-in user, check every server function, and test with two accounts.

Canonical: https://shipfast.online/rescue/bolt/security/
Last updated: 2026-10-25

By [Prayag Dalal](https://shipfast.online/about/). Checked against Bolt's documentation on 2026-10-25.

## Symptoms

- The database Security page shows warnings such as “RLS Policy Always True”, “Function Search Path Mutable” or “Leaked Password Protection Disabled”.
- One user can see or change another user’s records.
- Error messages or public pages reveal more than they should.
- You’re about to publish to real users and haven’t run a security audit.

## Why it happens

Bolt apps keep data in a Postgres database, either Bolt’s built-in database or Supabase, protected by row-level security (RLS). Bolt’s database check uses the same checks as Supabase’s Security Advisor, so the warnings mean the same thing: a policy that’s “always true” lets everyone through, and a missing policy can expose a table.

These gaps usually appear as features are added: a new table, a quick fix that opens a policy “for now”, or a server function that doesn’t check who’s calling.

## What Bolt already handles

- **Project security audit:** Reviews your code and database, fixes what it can and lists action items. Run it from Publish → Run security audit; it doesn’t use tokens. Paid plans.
- **Database security check:** Flags database issues such as missing RLS or over-open policies, with an Ask Bolt to fix button. All plans.
- **Leaked password protection:** On by default for Bolt databases. The warning appears if it was turned off, or the database runs on a free Supabase plan where it isn’t available.

## Fix it yourself

1. **Run the audit from the Publish menu.** Use Publish → Run security audit rather than asking Bolt in a prompt, which uses tokens. Read the summary and every action item.
2. **Clear the database warnings.** Open the database icon → Security. Fix errors first, then warnings, and look up anything unclear in Supabase’s advisor documentation.
3. **Replace “always true” policies.** Rewrite them so users reach only their own rows, or their team’s. Then test by signing in as two users.
4. **Check every server function.** Each function that reads or changes data should check the signed-in user, especially payments and admin actions.
5. **Check again after changes.** Open the Security page after any database change and run the audit again before each publish.

## Where it still goes wrong

- Action items in connected services, such as your email or payment provider settings, need you to change them. Bolt can’t.
- Automated checks can miss logic flaws, like a coupon that can be reused or an admin page a normal user can reach.
- On a free Supabase plan, leaked password protection isn’t available, so that warning can’t be cleared there.

## FAQ

### Is Bolt’s security audit free?

The project security audit is on paid plans and doesn’t use tokens when you run it from the Publish menu. The database security check is on all plans.

### What does “RLS Policy Always True” mean?

A row-level security policy whose condition always passes, so it lets anyone do that action. Replace it with a condition based on the signed-in user.

### Bolt Database or Supabase: which is safer?

Both are Postgres with RLS, and Bolt runs the same checks on both. Supabase gives you its own dashboard and tools; connecting it needs a Pro or Teams plan.

### Can Bolt fix everything automatically?

It fixes most issues it finds and lists the rest for you. A human review is still worth it for apps with payments or sensitive data.

## Sources

- [Bolt help: Check your project’s security](https://support.bolt.new/building/security)
- [Bolt help: Database security settings](https://support.bolt.new/bolt-cloud/database/security)
- [Bolt help: Advanced database settings](https://support.bolt.new/bolt-cloud/database/advanced)
- [Supabase docs: Database advisors](https://supabase.com/docs/guides/database/database-advisors)

## Get it fixed

App rescue, From $1,000, fixed price: [send your app](https://shipfast.online/contact/?service=app-rescue).

## Related

- [All Bolt guides](https://shipfast.online/rescue/)
- [Free production readiness check](https://shipfast.online/tools/production-readiness-check/)
