Fix guides

The security mistakes AI coding tools make most often, in plain English. How to tell if your app has one, and the exact fix to paste.

Supabase RLS is off. Anyone can read that table.

Row level security off (or a USING (true) policy) means any visitor can read the table.

Your Supabase service_role key is in the browser.

The service_role key skips row level security entirely. In a client bundle it is a full database login.

Your AI API key is in your frontend. Anyone can spend your money.

An OpenAI or Anthropic key in shipped JavaScript is an open tab on your credit card.

Anyone can tell your app they paid.

A webhook that skips constructEvent believes any request that looks like Stripe.

Your .env file is a URL away.

A served /.env or /.git folder gives a stranger every secret and your full source code.

Your Firestore rules may let anyone read everything.

allow read, write: if true (or unexpired test mode) means any visitor can read and change your data.

Anyone may be able to list and download your Firebase files.

allow read, write; with no condition lets any visitor list, download and replace every file.

In PocketBase, an empty rule means everyone.

A blank list, view or update rule opens that collection to every visitor, logged in or not.

Your Convex mutations are public endpoints.

A public mutation that never checks ctx.auth can be called by anyone who has your deployment URL.

Want the list of everything we test? See every check we run.