PatchPaste · Guides

Last updated 13 November 2026

Is my Bolt.new app secure? A 10-minute checklist

Bolt can check your project from the inside. That is necessary, and it is not the same as checking what strangers actually receive when they open the published URL. Here is what Bolt's own checks cover, what they cannot see, and a short list to run before you share the link.

Short answer: run Bolt's project security audit from the Publish menu (paid plans; Bolt says this button does not use tokens), open the database Security tab (all plans), keep secret keys in Secrets rather than browser-readable environment variables, then test the live URL logged out, as a second user, and with an outside-in scan. A clean audit is not a penetration test.

What Bolt checks from the inside

Bolt's project security docs describe two checks, and recommend running a security check at least once before you publish:

The project audit, according to Bolt, looks at who can see and change data, what the public parts of the app reveal, how people sign in, ways the app can be misused, what input it accepts, and whether private keys and passwords are stored in project code or sent to visitors' browsers.

The database Security tab

Open it from the database icon, then Security. Bolt's database security docs say the tab uses the same database checks as Supabase Security Advisor, with Error, Warning or Info labels, most serious first. Examples it names include:

Bolt also says it turns RLS on for the tables it creates, and that a table without RLS can be read and changed by anyone. If you add tables yourself, turn RLS on for those too. If the project has no sign-in, Bolt may write policies that allow any visitor to view, add, change and delete data; tighten those if the data is not meant to be public.

Related PatchPaste guides, if you see those Advisor-style warnings: RLS using (true), RLS Disabled in Public, Function Search Path Mutable and leaked password protection.

Secrets, not browser variables

Bolt's Secrets docs say secrets are for values only server functions should see, such as a payment or email key. Server functions run on Bolt's servers, not in the visitor's browser. Once you save a secret, Bolt does not show its value again, and it does not write that value into the .env file, other project files, or the published site.

Environment variables are different. Bolt stores them in the project's .env file. The same docs say that if your code reads a value from the browser, that value ends up in what is sent to anyone visiting the published site. Use Secrets for secret keys. If a key has already shipped, revoke it at the provider, then put the new one in Secrets. See OpenAI API key in the frontend and are VITE_ variables secret?.

What those checks cannot see

Bolt's audit reads the project. It does not stand in for a stranger hitting the live URL after you publish, or after a later edit. Still do these on the published address:

  1. Search the live JavaScript (DevTools → Sources) for service_role, sb_secret_, sk_live, sk-, AKIA and ghp_.
  2. Open /.env, /.git/HEAD and a .js.map on the live domain. None should show file contents. See is my .env file public?.
  3. Logged out: confirm private records do not load in a private window.
  4. As a second test user: try to open or change another account's data.
  5. From outside: paste the live URL into the form below.

A prompt to paste into Bolt

Check this Bolt project for security issues before I publish. Do not put secret keys in frontend code or in environment variables the browser can read; use Secrets and server functions. 1) Confirm row-level security is on for every table, and that no policy uses an always-true condition unless the data is meant to be public. 2) If the site has private data (orders, messages, accounts), add sign-in and scope those policies to the signed-in user. 3) List every secret the app needs and whether it already lives in Secrets. 4) Tell me how to test the live site logged out and as a second user.

Related: Lovable or Bolt pre-launch checklist, security scanners for vibe-coded apps, Is my Lovable app secure? and Supabase RLS check.

Bolt.new app security FAQ

Does Bolt.new have a built-in security check?

Yes. Bolt documents two checks. A project security audit reviews the whole project, including code and database, fixes what it can, and flags anything you need to handle. Bolt says that audit is available on paid plans, and that using the Run security audit button in the Publish menu does not use tokens. A separate database security check flags issues with database settings and is available on all plans.

Is the project audit enough on its own?

No. Bolt's own audit is an inside check of the project. It cannot tell you what the published site actually serves to a stranger after you hit Publish: a secret that slipped into the live JavaScript, an exposed .env or .git file, or a table that answers to the public key. Run the audit, then test the live URL as well.

Where should API keys go in a Bolt app?

In Secrets, not in frontend code or a browser-readable environment variable. Bolt's Secrets docs say server functions run on Bolt's servers rather than in the visitor's browser, and that Bolt never writes a secret's value into project files, browser code or the published site. Environment variables in the project's .env file can be read by code that runs in the browser, and those values then go out to anyone visiting the live site.

What does "RLS Policy Always True" mean in Bolt?

On the database Security tab, Bolt flags a policy with no conditions that limit who can access a row. Bolt says this warning is acceptable only if you are comfortable with every visitor being able to change or delete that data. For private data, add sign-in and tighten the policy. The same tab can also show Function Search Path Mutable and Leaked Password Protection Disabled.

Can PatchPaste replace Bolt's audit?

No. PatchPaste does not read your project, your database settings or pages behind a login. It is an outside-in scan of the live URL: secret keys in the shipped JavaScript, a short list of common tables tested with the public anon key (read-only, at most one row, discarded), exposed .env/.git/source maps, HTTPS and headers. Use it with Bolt's audit, not instead of it.

Audit done? Check the live URL for free

Paste your published Bolt URL for a free A to F report. PatchPaste searches the JavaScript the live site sends for secret keys, checks whether common tables answer to the public anon key (read-only, at most one row, discarded), and flags exposed .env/.git/source maps and missing headers. It does not sign in or read your Bolt project or database settings, so it does not replace Bolt's audit. Fix prompts for that report are a one-off £9 (or £29 for 10). Scans are free to rerun after each change.

Free. No login. No code access.

Want to see one first? View a sample report.

Sources (checked 13 Nov 2026): Bolt help centre Check your project's security (project security audit on paid plans, database check on all plans, what the audit covers, the Publish-menu button and the daily limit); Database security settings (same checks as Supabase Security Advisor, RLS Policy Always True, Function Search Path Mutable, Leaked Password Protection Disabled, RLS on tables Bolt creates); Secrets (server functions, secrets versus environment variables, and that browser-readable values go out on the published site).