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.
- Database security check, on every plan. Click the database icon at the top center of the editor, then Security. Bolt says this page uses the same database checks as Supabase's Security Advisor. It flags things like a table without row-level security or a rule that lets everyone in. If you can edit the project and Bolt found an issue, there is an Ask Bolt to fix button.
- Project security audit, on paid plans. In the top-right, click Publish, then Run security audit. Bolt reviews your code and database, fixes most of what it finds, and lists anything you have to do yourself. Neither the audit nor its fixes use your tokens. You can run it up to 30 times a day.
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.
- Bolt turns RLS on for tables it creates. If you added a table yourself, check that RLS is on for that table too. A table without it can be read and changed by anyone.
- If your app has no login, Bolt might write rules that let any visitor view, add, change, and delete data. The database Security page flags these as RLS Policy Always True. That warning is only OK if you are happy for every visitor to change or delete that data.
- Anyone can view it. This fits a menu, a portfolio, or blog posts. Visitors can read the rows, not add, change, or delete them.
- Anyone can add to it, and nobody can read it back. This fits contact forms, sign-ups, and reviews.
- It is private. Orders, messages, bookings, and anything about a person need sign-in, and a rule that matches each row to the person who owns it.
- "Signed in" is not the same as "owner". A rule that lets any logged-in user read a table lets every account read it, and anyone can make an account.
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
- 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.
- 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.
- 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.
- Fine in the browser: the Supabase anon or publishable key, and a Stripe key that starts with pk_. Your database rules are what protect you here. The scan notes an anon key. It does not treat it as a leak.
- Never in the browser: Stripe sk_ and rk_ keys, OpenAI keys, AWS AKIA ids, GitHub, Slack, and SendGrid tokens, private key blocks, and Supabase service_role or sb_secret_ keys. A service_role key skips every database rule.
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:
- Secrets: Stripe, OpenAI, AWS, GitHub, Slack, and SendGrid keys in the page and its scripts. A Supabase service_role or sb_secret_ key. The anon key is noted, not treated as a leak.
- Files: a public /.env, /.env.local, or /.env.production. /.git/config and /.git/HEAD. JavaScript source maps that hand back the original files.
- Transport: whether the page actually loads over HTTPS. Content-Security-Policy, HSTS, frame protection, nosniff, referrer policy, and permissions policy.
Database checks:
- Database checks need a verified site plus a Supabase project you claim in the dashboard with the attestation checkbox, and that ref has to appear in the site's own code. Ownership is checked again before every active scan. With no claim, no database request is sent.
- Table names come from .from('...') calls in the site's own pages and bundles, and from a GET of the public API description. The combined list is capped at 8. A count-only HEAD then returns a row count for those tables and stores no rows.
- The insert test writes one tagged plainmend_probe row per table, up to 5. Tables without that column are skipped. Each row is deleted right away. If the insert returns no id, or that delete fails, the scan deletes by the plainmend_probe marker and tells you if a row is left.
- Verification and these database checks follow redirects only when they stay on the same origin. The public page fetch follows redirects and refuses private and metadata addresses.
- The anon key comes from the site's own pages or same-origin scripts and bundles. A service_role key is never sent.
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.