Is my Bolt app secure? A Bolt app security check, pre-launch
Not automatically. Run Bolt's two built-in checks, then scan your live URL with SniffPup, a free passive security scanner for vibe-coded apps that shows what every visitor's browser can read. Bolt's project security audit (Publish, then Run security audit) is on paid plans and its database Security page is on all plans. Also test your data signed out and as a second user.
Last updated · By Ember, SniffPup
In more detail: a good Bolt app security check uses Bolt's own tools and an outside look. Bolt's security audit reviews your whole project and fixes many problems itself, and its own docs recommend running a check at least once before you publish. A built-in audit looks for a fixed list of problems, though, and once your app is live every visitor can read what it sends to the browser. So check that too.
Bolt app security check in 3 steps
- Run Bolt's checks. Click Publish, then Run security audit, and fix anything in the database Security page (details).
- Test your data signed out. Query a table with only your public anon key and make sure strangers get nothing private back (how).
- Scan what the public sees. Run a free SniffPup scan on your published Bolt URL (your
bolt.hostaddress or custom domain). What the scan covers for Bolt: Bolt app security scanner.
SniffPup looks at your site the way a stranger would: secret keys in your HTML and same-origin JavaScript (masked in the report), public /.env and /.git files, a downloadable source map, missing security headers, cookie flags and HTTPS. It lists every issue it finds and gives your site a 0–100 score. A 100 means no issues were found in our checks; it is never proof of security. Full fixes free for every critical issue (no critical? one other fix is free). Each fix comes with a prompt you can paste into Bolt. It's passive: about 60 requests or fewer (about one more per extra page when a paid plan scans more pages of a verified site), no logins, and it never uses a secret key it finds. Then work through the steps below for the things no outside scan can see.
1. Run Bolt's own security checks first
Bolt has two checks, and they look at different things. Both are well worth running on every publish:
- Project security audit: in the top-right corner click Publish, then Run security audit. It reviews your whole project, including who can see and change data, sign-in and sign-out, input your app accepts, and whether private keys are in your code or sent to the browser. Bolt fixes most problems itself and lists anything you need to do by hand.
- Cost: Bolt's launch post says the audit is free and doesn't touch your tokens, and its platform security page says the security agent applies fixes for free. Bolt's help doc says neither uses your tokens and lists the audit as available on paid plans, so check the current docs for your plan.
- Tokens: running it from the Publish menu doesn't use tokens; asking for an audit in the chat does (source).
- Daily limit: up to 30 audits per day, resetting at midnight UTC (source).
- Database security check (all plans): click the database icon at the top of your project, then Security. It uses the same checks as Supabase's Security Advisor and shows warnings such as RLS Policy Always True, Function Search Path Mutable or Leaked Password Protection Disabled, with an Ask Bolt to fix button.
Re-run both after you add a table, an integration or a login change; Bolt's docs say to open the Security page again any time you update your database. See Bolt's database security docs for what each warning means.
2. Keep secret keys out of VITE_ variables and the frontend
Most Bolt web projects are built with Vite. Vite puts every environment variable whose name starts with VITE_ into the JavaScript it sends to the browser, so anyone can read it. That's fine for public values like a Supabase project URL, a Supabase anon or sb_publishable_ key, or a Stripe pk_live_ key. It is never fine for a Supabase service_role or sb_secret_ key, a Stripe sk_live_ key, an OpenAI sk- key or any other secret. Calls that need a secret belong in server-side code, such as an Edge Function.
How to check: open your published site (not the editor preview), open DevTools → Sources and press Ctrl+Shift+F (Cmd+Option+F on Mac). Search for service_role, sb_secret_, sk_live_, sk- and PRIVATE KEY. If a secret key ever shipped, make a new key at the provider, switch your app to it, then revoke the old one. Deleting it from the code isn't enough. Our guide to finding exposed API keys on your website has the full list of patterns.
3. Check Row Level Security on every table
Bolt Cloud databases run on Supabase, and many Bolt apps connect their own Supabase project. Either way the frontend talks to the database with the public anon key, so Row Level Security policies are what keep strangers out of your data. Every table in an exposed schema needs RLS turned on, and each policy should be tied to the user (for example auth.uid() = user_id) unless the data really is public. Bolt's RLS Policy Always True warning flags insert, update, delete or all policies with an always-true clause such as using (true) or with check (true). Bolt's docs say that if you haven't asked for sign-in, Bolt might write policies that let any visitor view, add, change and delete your data, and suggest picking one of three options per table: visitors can only view, visitors can only submit, or the data stays private behind sign-in. The underlying Supabase check skips select ... using (true) on purpose, so a read policy that lets everyone read every row won't show up there. Check those yourself.
How to check: fix every RLS warning in the database Security page, then test with two real accounts: user A should never see or change user B's rows. Check write policies (insert, update, delete) as carefully as reads. Our Supabase RLS checker guide has the SQL to list tables with RLS off and a signed-out test with your anon key, and Supabase RLS policy examples has copy-paste policies for common patterns.
The signed-out read test
Your public anon key and project URL are in your site's JavaScript by design, so assume a stranger has them. Try what they could do: in a terminal, run curl "https://YOUR-PROJECT.supabase.co/rest/v1/YOUR_TABLE?select=*&limit=1" -H "apikey: YOUR_ANON_KEY" for each table. Getting [] or an error back is what you want for private tables. If you see real rows, tighten that table's RLS policy and test again.
4. Make sure protected pages are protected on the server
Hiding a button or redirecting non-admins in the browser doesn't protect anything, because anyone can call your database or functions directly. Admin-only data and actions need a database policy or a server-side check that verifies who is calling.
Watch for an admin flag that only lives in the browser, such as an isAdmin value in local storage or a role column the user can update themselves. If changing it in DevTools unlocks admin data, the check has to move to the database or server, and users must not be able to edit their own role.
How to check: open your app signed out in a private window and try a few links that should need a login. Then sign in as a normal user and change an ID in a URL to someone else's record. You should be refused both times.
5. Protect any AI endpoint
If your app calls OpenAI, Anthropic or another AI service through an Edge Function or API route, that endpoint spends your money every time it runs. An endpoint that answers anyone, with no sign-in check and no limit, can be called by strangers over and over.
How to check: signed out, call the endpoint directly (copy the request from DevTools → Network). It should refuse you. Then make sure signed-in users have a sensible per-user limit, and set a spending cap at your AI provider.
6. Check what your published site exposes
- Public
/.envor/.git/configfiles (you should get a 404 or your app's normal page, never file contents) - A public JavaScript source map, which can hand out your original code
- Missing security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy)
- Cookies without Secure, HttpOnly or SameSite flags, and HTTP that doesn't redirect to HTTPS
How to check: add /.env and then /.git/config to the end of your live URL, and look at the response headers in DevTools → Network. A free SniffPup scan checks all of these at once.
7. Re-check after every big change
The risky moment is usually a new table, a new integration or a key pasted into the chat. Run Bolt's checks and an outside scan again whenever you change sign-in, payments or data access.
Where SniffPup fits
Bolt's audit sees your code and database settings, which an outside scanner can't. SniffPup sees what your published site actually serves to the public, which is what an attacker sees first. The free scan lists every issue by title and severity. Full fixes free for every critical issue (no critical? one other fix is free). On Pro, after you verify you own the domain, a read-only Supabase check uses your site's public anon key to count which tables an anonymous visitor can read (row counts only, never row data). See exactly what the scanner does.
What Bolt's audit sees vs. what an outside scan sees
| Check | Bolt's audit and database check | Outside scan (like SniffPup) |
|---|---|---|
| Your source code and project logic | Yes | No |
| Database settings and RLS warnings | Yes | Can't read the rules; tests whether an anonymous visitor can read rows in up to 8 tables (free, read-only, no rows downloaded) |
| Fixes problems for you inside Bolt | Yes, many automatically | No; gives fix prompts to paste into Bolt |
| Secret keys in the JavaScript your live site serves | Checks your code for them | Yes, in what the live site actually sends |
| Public /.env, /.git files and source maps on the live URL | Not listed in Bolt's docs | Yes |
| Security headers, cookie flags and HTTPS on the live URL | Not listed in Bolt's docs | Yes |
The two work best together: fix what Bolt finds, then check what the public sees.
FAQ
How do I run a Bolt app security check?
Three steps. First, in Bolt click Publish, then Run security audit, and open the database Security page. Second, test your data signed out: query a table with only your public anon key and make sure you get nothing back you wouldn't show a stranger. Third, run an outside scan of your published URL to see what it sends to every visitor.
Is my Bolt app secure?
Not automatically. Bolt has strong built-in checks: a project security audit that fixes many problems itself and a database security check, and it recommends running a check at least once before you publish. Both look for a fixed list of problems, so also check your secrets, your database policies, your AI endpoints and what your published site exposes.
Is Bolt's security audit free?
Bolt's blog post says the audit is free and doesn't use your tokens; its platform security page says the security agent applies fixes for free. Bolt's help doc says neither uses your tokens and lists the audit as available on paid plans. Check Bolt's current docs for your plan. Running it from the Publish menu doesn't use tokens; asking for an audit in the chat does. You can run up to 30 audits per day.
What does Bolt's RLS Policy Always True warning mean?
Bolt's database Security page uses the same checks as Supabase's Security Advisor. This warning (Supabase lint 0024, rls_policy_always_true) means an insert, update, delete or all policy has a clause that is always true, such as using (true) or with check (true), for anon, authenticated or every role. Bolt's docs say that without sign-in, Bolt might write policies that let any visitor view, add, change and delete data. The lint skips select policies with using (true) on purpose, so a quiet Security page does not prove your data is private: check read policies on tables with personal data yourself.
Is it safe that my Supabase anon key is in my Bolt app's JavaScript?
Yes, the anon or sb_publishable_ key is designed to be public, but only if Row Level Security is on for every exposed table and the policies are scoped to the right user. A service_role or sb_secret_ key must never be in the frontend, because it bypasses RLS.
Can SniffPup scan my Bolt app?
Yes, if it is published at a live web URL (a bolt.host address or your own domain). SniffPup checks what that site serves to any visitor: secrets in HTML and JavaScript, public .env and .git files, source maps, security headers, cookies and HTTPS. SniffPup scans live web URLs, and its Mobile app scan checks app builds you export yourself. The free scan can't see your database policies.
Does a clean SniffPup report mean my Bolt app is secure?
No. SniffPup checks what is publicly visible on your site. A score of 100 means no issues were found in our checks, and the badge is never proof of security. It can't see your source code, server logic, database policies or anything behind a login.
Sources: Bolt's security help doc (two checks, plans, tokens, 30 audits a day), database security docs (Security page, RLS warnings), launch post and platform security page, and Supabase's rls_policy_always_true lint, checked November 12, 2026.
A clean report is not a guarantee of security, and a 100 score means no issues were found in our checks, not proof of security. Only scan sites you own.
Built with a different tool? These are separate products, each with its own checklist: Is my Lovable app secure?, Is my Cursor app secure?, Is my Replit app secure?, Is my v0 app secure?, Is my Base44 app secure?, and Is my Claude Code app secure?.