Plainmend

Is my Bolt app secure?

Free check: paste your app's URL.

Bolt can publish the app you build in the editor to a live URL. Whether a stranger can read your users' data is a separate question, and it comes down to a few settings you still have to check. Here's how to look before you share the link.

The box above reads your published app from the outside, the way any visitor's browser does. It lists what it can already fetch: secret keys in your public code, project files that shouldn't be public, source maps, HTTPS, and missing security headers. Every problem is explained in plain words, with how risky it is. The problems list is free.

Start with Bolt's own checks

Bolt has two security checks built in. Run them first, because they can see inside your project.

These see your code and your database rules. An outside check sees what your published site actually sends to the world. You want both.

1. Know where your data lives

New Bolt projects use Bolt Database by default. On Pro and Teams you can use a database in your own Supabase account instead. Either way, the rule is the same. In Bolt's own words: "Anyone who visits your site can send requests to your database directly, without using your site's screens."

So hiding a button or a page isn't protection. The database has to say no.

2. Give every table a real rule

Row-level security (RLS) decides which rows a request can read or change.

A prompt you can paste into Bolt:

Check that row-level security is on for every table. For each table, tell me in plain words who can view, add, change and delete rows. Private tables (orders, messages, profiles, bookings) should only let a signed-in user see and change their own rows. Don't use rules that are always true on private tables.

3. Test it the way a stranger would

  1. Open your app in a private window without signing in. Go to a page that should need a login. If the data shows up, the check only lives in the screen.
  2. Make two test accounts. Create something with account A. Sign in as account B and try to see it, both in the app and by repeating A's own request from your browser's Network tab.
  3. Do this again after every big change. New features bring new tables.

4. Keep secret keys out of the browser

Anything a page uses directly ships to every visitor's browser. Bolt keeps keys for server functions in its Secrets tab, and it does not write those values into the published site. Problems start when a key gets pasted straight into page code. Bolt's own tip is not to paste secret values into the project's code.

If one of those ever shipped, move it to a server function and rotate it at the provider. Deleting it from the code isn't enough, because someone may already have copied it.

5. Make sure your project files aren't public

Builds sometimes publish files that were only meant for your machine: environment files full of keys, git folders, and source maps that hand back your original code. The free scan checks whether any of these can be fetched from your site. If one can, remove it from the published site and rotate any key it contained.

6. Add security headers

Six response headers make common browser attacks harder: Content-Security-Policy, Strict-Transport-Security (HSTS), frame protection, X-Content-Type-Options (nosniff), Referrer-Policy, and Permissions-Policy. Ask Bolt to add them for the host you publish to. The scan names the ones that are missing.

What Plainmend checks, and what it doesn't

The free scan reads the page you name, the scripts that page loads from the same host, the response headers, and a short list of well-known file paths. It reports:

Database checks:

If your app runs on Bolt Database rather than a Supabase project you can claim, use Bolt's database Security page for this part. On Pro and Teams, you can claim a Bolt Database and move it, with its data, into your own Supabase account.

What it never does: log in, guess passwords, send exploit payloads, or scan ports. A service_role key it finds is reported and never used. See exactly what we check.

A clean report is a good sign, not a certificate. If your app takes payments or stores health, money, or identity details, it still deserves a human review.

Questions

Is the Supabase key in my Bolt app's code a leak? If it's the anon or publishable key, no. It's meant to be public, and your row-level security decides what it can do. If it's a service_role or sb_secret_ key, yes: move it to a server function and rotate it.

Does Bolt's security audit replace an outside scan? They overlap, but they look from different sides. Bolt's audit reads your code and database rules. An outside scan sees what your published site actually serves: headers, public files, and the keys inside the scripts visitors download. Running both takes a few minutes.

Are Bolt apps less secure than hand-written ones? Not by nature. The mistakes are the same ones people make by hand: open tables, keys in the browser, checks that only live in the screen. Bolt turns on row-level security for tables it creates. The risk is in what gets added later in a hurry.

Can I check someone else's Bolt app? Only scan sites you own or have permission to scan. See the acceptable use rules.

Ready? Paste your URL at the top of this page and get your free problems list.

Related guides