Guide · Bolt.new · Updated
Is My Bolt App Secure? How to Check Your Live Bolt.new App Before You Launch
Bolt can build and publish an app in an afternoon. Before real people use it, check two things: who can read your data, and which keys your site gives away. Here is what Bolt checks for you, and how to check your live app yourself for free.
1. The short answer
A Bolt app is only as safe as its database rules and where its keys live. The big risks are:
- Tables that anyone can read or change, because a rule is too open.
- Secret keys, like an OpenAI or Stripe secret key, inside the code your site sends to every visitor.
- File storage that is public when it should be private.
Bolt has its own security checks. Use them. Then check your live app from the outside, because that is what a stranger sees.
2. What Bolt checks for you
Bolt's help center describes two checks:
| Check | What it looks at | Plans | Where |
|---|---|---|---|
| Project security audit | Your whole project: code and database. Bolt fixes most problems itself and lists anything you must do. | Paid plans | Publish → Run security audit |
| Database security check | Only your database rules and permissions, like missing row-level security (RLS) or a rule that is too open. | All plans | Database icon → Security |
A few things worth knowing from Bolt's docs:
- Use the Run security audit button. Bolt says it doesn't use tokens, but asking for an audit in the chat does.
- You can run up to 30 audits a day. The limit resets at midnight UTC.
- The database Security tab uses the same checks as Supabase's Security Advisor.
- Bolt turns on RLS for the tables it creates. If you add a table yourself, turn RLS on for it too. Bolt warns that a table without RLS can be read and changed by anyone.
- Run the checks again any time you change your database or project. An old clean result doesn't cover new changes.
On the free plan you get the database check, not the full code audit. That makes the live check below even more useful.
3. The 5-minute check on your live Bolt app
Only check apps you own or have permission to test.
Step 1: Search your live code for secret keys
Open your published app (your bolt.host link or your own domain) in Chrome. Right-click and pick Inspect. Press Ctrl+Shift+F (Cmd+Option+F on a Mac) to search all loaded files. Search for:
sk-andsk-ant-(OpenAI and Anthropic)sk_liveandrk_live(Stripe secret keys)service_roleandsb_secret_(database keys that skip all table rules)AKIAandsecret(AWS keys and other secrets)
Click through login and settings first, since some code only loads on those pages. A Stripe key that starts with pk_ is meant to be public. Not sure which keys are secret? See How to check if your API key is exposed.
Step 2: Watch where your app sends requests
Open the Network tab and reload. Use the parts of your app that save data, use AI or take payments. Two things to look for:
- Calls straight to a paid API, like
api.openai.com, withAuthorization: Bearer sk-…in the headers. That means your secret key is public. It should be a server function instead. - Calls to your database. If your app uses Supabase, these go to an address ending in
supabase.co. Theapikeyheader is your public key. Seeing it is normal. Your table rules are what protect you.
Step 3: Try to read your tables while logged out
If your app's database calls go to supabase.co, you can test each table from a terminal. Swap in your project URL, a table name and the public key from Step 2:
curl "https://YOUR-PROJECT.supabase.co/rest/v1/TABLE_NAME?select=*&limit=1" \ -H "apikey: YOUR_PUBLIC_KEY"
- You see a row of real data: anyone can read this table. Fix it first, unless it is meant to be public, like blog posts.
- You see
[]: no rows came back. Your rules may be blocking logged-out visitors, or the table may be empty. Check which one in Bolt's table view. - You see error
42501or "permission denied": logged-out visitors can't reach this table. That is usually good for private tables.
For more on these results, see Is my Lovable app safe? It works the same way for any app on Supabase.
Step 4: Test with two accounts
If your app has sign-in, make two test accounts. Add some data as the first one. Log in as the second one and try to see or change it. Try the page links too, like changing an id in the address bar. If account two can see account one's data, your rules are too open.
Step 5: Check your file storage
In Bolt, click the database icon, then File Storage. Each bucket says Public or Private. Bolt says anyone with the link can see files in a public bucket, even if they aren't signed in. Bolt also says it is designed to make private buckets for user uploads, but you should confirm each one yourself. User uploads, like ID photos or documents, should be private.
Step 6: Try /.env and /.git/config
Open a private window. Go to yourapp.com/.env, then yourapp.com/.git/config. You should get a "not found" page or your normal app page. If you see lines like OPENAI_API_KEY=… or [core], those files are public. Remove them and make new keys.
4. "RLS Policy Always True" and sites without sign-in
This is a warning you may see on Bolt's database Security tab. It means a rule has no conditions, so it applies to everyone.
Bolt's docs say that if your site has no sign-in, Bolt might write rules that let any visitor view, add, change and delete your data. That is only OK if you are happy for every visitor to do that.
Bolt suggests you pick one of these for each table, then ask Bolt to update the rules:
- Visitors can only view. Good for a menu, a portfolio or blog posts.
- Visitors can only submit. Good for contact forms, sign-ups and reviews. Visitors can add a row, but can't read other people's.
- Private. Good for orders and messages. This needs sign-in, so the rules know who each visitor is.
Watch out for contact forms and waitlists. If visitors can read that table, anyone can download every email address that was sent in.
5. Where your keys should live
Bolt has a Secrets tab (database icon → Secrets). Bolt says secrets are for server functions, so they can use keys without exposing them to users. Bolt says that when you ask it to connect a service like OpenAI, it will ask you to add the key there.
- Secret keys go in Secrets, and only a server function uses them.
- Never paste a secret into your app code or into the chat as part of the code.
- Watch your variable names. If your Bolt app uses Vite, any name that starts with
VITE_is built into the code visitors download. Vite's docs say not to put API keys in them. If it uses Next.js, the same goes forNEXT_PUBLIC_. - If a key was ever public, make a new one and turn off the old one in the provider's dashboard. Removing it from your code is not enough.
If your Bolt app uses Supabase, the anon or sb_publishable_ key is meant to be public. The service_role or sb_secret_ key skips every table rule, so it must never be in your frontend.
Sources: Bolt: Check your project's security · Bolt: Database security settings · Bolt: Secrets · Bolt: Server functions · Bolt: File storage · Bolt: Publish · Bolt: Supabase · Vite: Env variables · Next.js: Environment variables
6. Copy-paste fix prompts for Bolt
Paste one into the Bolt chat. The first two come straight from Bolt's help center. After each fix, run Bolt's security check and the live check again.
Check that row-level security is on for every table in my database, and that each policy allows only the access my site needs.
Add email sign-in to my site. Then update the policies for the orders table so only signed-in people can view, add, change, or delete their orders.
Find every secret API key in my frontend code, like OpenAI, Anthropic, Stripe secret keys (sk_ or rk_), and any service_role or secret database key. Move each call that uses one into a server function. Store each key in Secrets, not in my code. Make sure no secret is in a variable that starts with VITE_ or NEXT_PUBLIC_. Then list every key you moved so I can make a new one.
List every file storage bucket in my project and say if it is public or private. Any bucket that holds user uploads should be private. Set up storage security so each user can only upload and see their own files. Use signed URLs instead of public links.
Review every table and server function in my project. Make sure a signed-in user can only see, change or delete their own rows, and can't change a price, give themselves an admin role, or skip a payment step. Show me what you changed.
7. Check it for me
Don't want to do this by hand after every change? VibeCheck checks your live app from the outside, the way a stranger would. It searches the JavaScript your homepage loads for secret keys. If your app talks to Supabase from the browser, it checks common table names to see if they are open. It also checks security headers, Google basics like your title and sitemap, and broken links.
It works with any public link: your bolt.host address, your own domain, or a Netlify site. It only looks. It never logs in, fills in forms or tries to break in. If it finds an open table, it notes the table name and never stores the rows.
It is a good partner to Bolt's own checks: Bolt looks at your project from the inside, and VibeCheck looks at the live site from the outside.
Pricing: the problems list is free (just add your email). A fix report with a copy-paste prompt for every problem is $9. Or get 10 fix reports for $29. No subscription.
No tool can promise your app is safe. VibeCheck catches common, costly mistakes so you can fix them first.
8. FAQ
Is my Bolt app secure?
It can be, but you have to check. The most common problems are database tables that anyone can read or change, secret keys in the code your site sends to visitors, and file storage that is public by mistake. Run Bolt's own security check, then check your live app the way a stranger would. This guide shows both.
Does Bolt have a security audit?
Yes. Bolt has two. The project security audit reviews your whole project, including code and database. It is on paid plans and you run it from the Publish menu. The database security check looks only at your database settings. It is on all plans, on the Security tab of your database settings.
Is the free Bolt security check enough?
It is a good start, but it only checks your database. It does not look at your code. On the free plan, also search your live site for secret keys and try to read your tables while logged out. Both are free and take a few minutes.
What does "RLS Policy Always True" mean in Bolt?
It means a database rule has no conditions, so anyone can use it. Bolt says this often happens on sites without sign-in. It is only OK if you are fine with every visitor being able to do what that rule allows, such as change or delete that data. If not, ask Bolt to tighten the rule or add sign-in.
Where do I put API keys in a Bolt app?
In Bolt's Secrets settings, used by a server function. Bolt says secrets let server functions use keys without exposing them to users. Do not paste a secret key into your app code, and do not put it in a variable that starts with VITE_ or NEXT_PUBLIC_. Those get sent to the browser.
My app passed Bolt's audit. Do I still need to check?
Check again after every change. Bolt says to run the audit again after you change your project. It is also smart to check the live site itself, since that is what strangers see. A clean result is a good sign, not a promise.
More questions? See the VibeCheck FAQ. Also useful: Is my Replit app secure? · Is my v0 app secure? · Supabase RLS check. Before you launch, run the vibe coding security checklist (12 checks for any AI-built app). Wrong title in Google or in link previews? Read how to fix your title, description and share preview. Scan says "No Content-Security-Policy"? See how to add security headers. Pages show 404 on Netlify when you refresh? See how to fix 404 on refresh and broken links.