Guide · Bolt
Bolt security check: is your Bolt.new app safe to launch?
Bolt takes you from a prompt to a deployed app without leaving the browser. What it does not do for you is decide who may read your data. Here is where Bolt apps usually leak, how to check yours, and what to tell Bolt to fix it.
Free instant check, no sign-up. No app at hand? See the report on our demo app, which we broke on purpose.
How a Bolt app is put together
Most Bolt projects are a Vite and React app: everything runs in the visitor's browser, and the built files are published to a host such as Netlify. Whatever the app needs at run time is inside those files, where any visitor can read it.
Data usually lives in Supabase, which Bolt connects for you. The browser talks to the database directly with a public key, so the only thing that decides who can read a row is Row Level Security. Anything that must stay secret, such as a paid API key, has to live in a server function, not in the app.
The five holes we see most often
1. Secret keys in VITE_ variables
In a Vite project, every environment variable whose name starts with VITE_ is copied into the published files. That is right for the Supabase address and public key. It is wrong for VITE_OPENAI_API_KEY or a Stripe secret key: the .env file feels private, but the value ends up in the page code.
2. Supabase tables without Row Level Security
A table with RLS off answers anyone who has the public key, and the public key is in your page code. Tables created by a quick prompt often have RLS off, or a policy of using (true) that lets everyone through.
3. Calling paid services straight from the browser
If the page itself calls OpenAI, Anthropic or an email service, the key travels with every visitor. The call belongs in a Supabase Edge Function or a Netlify Function that keeps the key on the server.
4. Server functions that never ask who is calling
A function's address is public. If it does not check the signed-in user, moving the key to the server only changes what strangers call: your function instead of the provider, on your bill.
5. The .env file or source maps published with the site
A build that copies the wrong folder can publish .env itself, and source maps let anyone read your original code, comments included.
Check it yourself in ten minutes
- Search the live site for keys. Open your app, press F12, open Sources and search all files (Ctrl+Shift+F, or Cmd+Option+F on a Mac) for
sk-,sk_live,service_roleandsecret. - Read your variable names. In Bolt, open the
.envfile. Anything starting withVITE_is public. Only the Supabase address and the public (anon) key should be there. - Open the Supabase Security Advisor (Advisors → Security Advisor in the Supabase dashboard). It lists tables with RLS off.
- Try to open the leftovers. Add
/.envto your site's address. You should get "not found", never a list of settings. - Use the app as a stranger. Log out, open a private window, and try pages and addresses that should need a login.
Prompts to paste into Bolt
Go through every environment variable in this project. Keep only the Supabase URL and the Supabase anon key in variables that start with VITE_. Move every other key (OpenAI, Anthropic, Stripe secret, email, service_role) to server-side secrets, and move the code that uses them into Supabase Edge Functions that the page calls. List the keys I should rotate.
Turn on Row Level Security for every table in the public schema. Add separate policies for select, insert, update and delete so a signed-in user can access only their own rows (user_id = auth.uid()), with "with check" on insert and update. Remove every policy whose condition is just "true". Show me the SQL before running it.
In every Edge Function and server function, read the caller's login token first and return 401 if there is no signed-in user. Where a function reads or changes a record, check that the record belongs to that user. Add a limit of a few calls per minute per user on functions that call paid APIs.
A key that was ever in the page code may already be copied. Create a new one in the provider's dashboard and revoke the old one; removing it from the code is not enough.
What the ShipProof check covers
The free check opens your live app the way a stranger would. It finds secret keys in the published files, including the Supabase service_role key, downloadable source code, unsafe login cookies and missing browser protections, and notes which database the app uses.
The full check runs after you prove the app is yours by adding one tag to your home page. It then tries to read each Supabase table your app uses with the public key, tests your API addresses without a login, and looks for an exposed .env file and .git folder. Every request is read-only, and reports keep field names, never your data.
No check can prove an app is secure. This one finds the common mistakes that are easiest for a stranger to exploit, and gives you a prompt for each.
Check your Bolt app now
A grade and the problems in plain language in a few seconds.