guides

Security guides for vibe-coded apps

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 API route handlers with no authentication check: how to find and fix them

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 "permission denied for table" (42501): check the GRANT before the policy

    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.

    • Supabase
    Lovable won't publish because of security findings: what blocks it and how to clear it

    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.

    • Lovable
    Supabase "RLS Enabled No Policy" (No access rules defined): what it means and how to fix it

    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.

    • Supabase
    • RLS
    Supabase "RLS Disabled in Public" (Table publicly accessible): what it means and how to fix it

    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.

    • Supabase
    • RLS
    Supabase "infinite recursion detected in policy for relation": what it means and how to fix it

    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.

    • Supabase
    • RLS
    Supabase Storage "new row violates row-level security policy" on upload: what it means and how to fix it

    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.

    • Supabase
    • RLS
    Supabase "new row violates row-level security policy for table": what it means and how to fix it

    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.

    • Supabase
    • RLS
    Can customers change the price in your Stripe Checkout? How to check and stop it

    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.

    • Stripe
    Are your Vercel preview deployments public? How to check and lock them down

    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.

    • Vercel
    Supabase "Security Definer View" error: what it means and how to fix it

    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.

    • Supabase
    • RLS
    Supabase "Leaked Password Protection Disabled" warning: what it means and how to fix it

    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.

    • Supabase
    Supabase "Function Search Path Mutable" warning: what it means and how to fix it

    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.

    • Supabase
    • RLS
    Are your Clerk API routes actually protected? Why middleware isn't enough

    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().

    • Clerk
    • Vercel
    Is it safe to expose your Firebase API key? What actually protects your app

    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.

    • Firebase
    • Keys
    Is your .env or .git folder publicly reachable? How to check your deployed site and block it

    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.

    • Keys
    Supabase Storage bucket set to public? How to check who can read, list and upload your files

    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.

    • Supabase
    • Storage
    Stripe webhook signature verification: fixing "No signatures found" and checking yours is on

    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.

    • Stripe
    Source maps exposed in production? How to check and turn them off

    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.

    • Keys
    • Vercel
    Supabase "RLS Policy Always True": find and fix USING (true) policies

    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.

    • Supabase
    • RLS
    Supabase service_role or secret key exposed in client code: what to do

    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.

    • Supabase
    • Keys
    Firebase security rules still in test mode? How to check and lock them down

    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.

    • Firebase
    Missing security headers on Vercel or Netlify: how to check and add them

    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.

    • Headers
    • Vercel
    • Netlify
    Is my Lovable app secure? (Supabase RLS checklist)

    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.

    • Lovable
    • Supabase
    • RLS
    • Keys
    Bolt.new security checklist before launch

    What to check before launching a Bolt.new app: the database Security Audit, "RLS Policy Always True" warnings, VITE_ env variables, and exposed keys.

    • Bolt
    • Supabase
    • RLS
    • Keys
    How to find and rotate exposed API keys in a Cursor or Claude Code app

    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.

    • Cursor / Claude Code
    • Supabase
    • Keys
    Supabase Row Level Security for vibe-coded apps

    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.

    • Supabase
    • RLS
    Replit and v0 app security checklist

    Security checklist for apps built on Replit or with v0 and deployed on Vercel: Secrets, production app secrets, NEXT_PUBLIC_ variables, and environment scoping.

    • Replit
    • v0
    • Vercel
    • Keys

    next step

    Want a second pair of eyes?

    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.