guides
Short, practical checks for apps built with AI tools. Every menu name, setting and command is checked against the official docs, with sources at the bottom of each guide.
Tags match any you select. Search applies on top.
Showing 28 of 28 guides
Next.js Route Handlers (route.ts) are public-facing endpoints. How to inventory them, test them safely with disposable records, and enforce a server-side session and ownership check before private data is touched.
Supabase 42501 "permission denied for table": how a missing privilege differs from an RLS policy problem, how to check grants, and a safer fix than using (true) or turning RLS off.
Lovable won't publish because of security findings? What the Review security findings dialog and Resolve findings mean, when a setting blocks publishing, and how to clear critical findings.
Security Advisor lint 0008, summarized as No access rules defined: RLS is on but no policies exist, so the API reaches nothing. Add owner policies, or an intentional deny-all, without disabling RLS.
Security Advisor lint 0013, summarized as Table publicly accessible: a public table has Row Level Security turned off. Enable RLS, then add policies that match who should see which rows.
Your query fails with 42P17 because a policy on one table asks about another whose policy asks back. Find the loop with one SQL query, then break it with a security definer helper that keeps RLS on.
Your Storage upload fails with a 403 because your storage.objects policies don't cover that user, bucket and path. Match the INSERT policy to your bucket and folder, add SELECT and UPDATE for upsert, and skip the public bucket and secret key.
Your Supabase insert or upsert fails with this error because no policy lets that role add the row. Find the missing or wrong policy with one SQL query, test as the real user, and fix it without disabling RLS.
If your checkout route takes the amount or Price ID from the browser, anyone can pick their own price. Test it in Stripe test mode with one edited request, look prices up on the server, and fulfill from Stripe's record.
Preview URLs run unfinished code, often with live keys. Check with one curl whether a stranger can open yours, turn on Vercel Authentication for free, and give previews their own keys.
A view in your public schema can skip RLS and hand out every row. Find the flagged views with one SQL query, count what an anonymous visitor sees with curl, and switch them to security_invoker.
The warning means Supabase Auth accepts passwords already in breach lists. Check the setting with one API call that prints no keys, turn it on (Pro plan and up), and tighten password rules on Free.
Find every Supabase function with no pinned search_path using one SQL query, set search_path = '' without breaking your signup trigger, and lock down who can call security definer functions.
Clerk now says middleware isn't the place to lock routes. Check that your Next.js Route Handlers and Server Actions reject signed-out requests, then fix them with auth().
Your Firebase apiKey is meant to be public, if it's restricted to Firebase APIs, can't call Gemini, and your rules and App Check do the real work. Check yours without printing the key.
Check whether /.env or /.git is reachable on your live site with curl commands that never print secrets, then rotate keys, deploy only the build output and block dotfiles.
Find public Supabase Storage buckets and loose storage.objects policies with two SQL queries, test listing and downloads with curl, and lock files to each user's folder.
Test that your Stripe webhook rejects unsigned events, fix the "No signatures found matching the expected signature" error, and read the raw body correctly in Next.js, Express and Supabase.
Check whether your Vite, Next.js or CRA site serves public .map files with your original source, then turn them off, delete them after upload, or protect them on Vercel.
Why RLS can be on and your table still open: find USING (true) policies with SQL, test them from outside with curl, and replace them with owner checks.
How to tell if your Supabase service_role or sb_secret_ key shipped to the browser, why RLS can't help, and the safe order to move and rotate it.
Firestore test mode, allow read, write: if true, and auth != null: how to spot open Firebase rules, test them with curl, and replace them with owner checks.
Check your headers with one curl command, then add HSTS, CSP, X-Frame-Options and friends with vercel.json, next.config.js, or Netlify's _headers file.
A practical pre-launch checklist for Lovable apps: run the Quick and Deep scans, audit RLS policies with two SQL queries, and keep API keys out of the browser.
What to check before launching a Bolt.new app: the database Security Audit, "RLS Policy Always True" warnings, VITE_ env variables, and exposed keys.
How to find leaked API keys in your repo and JS bundle, rotate them in the right order, keep .env away from Cursor and Claude Code, and clean git history.
Supabase RLS explained for apps built with AI tools: grants vs policies, the four-policy owner pattern, testing with supabase test db, and common mistakes.
Security checklist for apps built on Replit or with v0 and deployed on Vercel: Secrets, production app secrets, NEXT_PUBLIC_ variables, and environment scoping.
Nothing matches. Try a different word, or clear the filters.
next step
Grab the free Lockdown Pack (security rules for Cursor and Claude Code plus a pre-launch checklist), or have us check your repo for a fixed $99.