Check your own app — free, in about a minute.
The free mini-scan checks your live homepage for TLS/HTTPS basics, response security headers, cookie flags, exposed sensitive files, Firebase/Supabase backend rules, and the WordPress plugin versions your site exposes. You get a score and the finding titles — no account, no card.
Run the free mini-scan →Your Lovable app works. The demo impressed everyone. Now you want to put it in front of real users — which means putting it in front of strangers who will poke at everything the AI left open.
This is a step-by-step hardening guide for the standard Lovable stack (Lovable frontend + Supabase backend). Work through it in order; each step builds on the previous one. Budget an afternoon.
This is the foundation everything else rests on. Your Supabase anon key is public by design — RLS policies are the only thing standing between the internet and your database.
USING (true) on INSERT, UPDATE, or DELETE.-- reads and writes scoped to the row owner
CREATE POLICY "own rows only"
ON public.projects FOR ALL
USING (auth.uid() = owner_id)
WITH CHECK (auth.uid() = owner_id);
If this step feels tedious, good — it means you're doing it right. RLS misconfiguration is the number one way Lovable apps leak data.
The service_role key bypasses every RLS policy you just wrote. Verify it exists in exactly one kind of place: server-side code.
grep -ri "service_role" . --include="*.ts" --include="*.tsx" --include="*.js" --include="*.json"
git log -p -S "service_role" | head -60
Acceptable locations: Supabase Edge Functions, your own backend server, deployment environment variables. Unacceptable: frontend code, .env files committed to git, Lovable's client-side config. If it ever appeared anywhere unacceptable, rotate it in Supabase → Settings → API right now, then update the server-side copy.
File uploads are the second most common leak. For each bucket in Supabase → Storage:
storage.objects table supports RLS just like your other tables — use it:CREATE POLICY "users read own files"
ON storage.objects FOR SELECT
USING (bucket_id = 'uploads' AND auth.uid()::text = (storage.foldername(name))[1]);
Open each Supabase Edge Function and look at the first lines. If it does anything privileged — writes data, sends email, touches payments, calls a third-party API — without verifying the caller's JWT, it's a public endpoint.
Add this gate at the top of every privileged function:
const authHeader = req.headers.get("Authorization")?.replace("Bearer ", "");
const { data: { user }, error } = await supabase.auth.getUser(authHeader);
if (error || !user) {
return new Response(JSON.stringify({ error: "Unauthorized" }), { status: 401 });
}
Then verify with curl — call each function with no Authorization header and confirm you get 401, not results.
Lovable doesn't ship rate limiting, so your login, signup, password reset, and any public endpoints are unthrottled by default. You have two practical options:
/api/*, login, and signup paths. Ten minutes of configuration.After enabling, re-run the hammer test: 50 rapid login attempts should start returning 429s.
curl -I https://yourapp.lovable.app and confirm these are present:Strict-Transport-SecurityX-Content-Type-Options: nosniffContent-Security-Policy (start with a reasonable policy; tighten it later)X-Frame-Options: DENY or frame-ancestors 'none'Access-Control-Allow-Origin to your domains — not *.npm audit (or your stack's equivalent) and fix every critical before launch. Enable Dependabot or Renovate so it stays fixed..env files, API keys, the service role key. Anything found gets rotated, no exceptions.The unglamorous items that separate a project from a product:
security@yourdomain.com or a contact note in your footer so researchers report issues to you instead of posting them./debug routes, no verbose logging of user data, no test accounts with password "password" left in production.You've been working from the inside — reading code, checking dashboards. Now flip perspective. Everything an attacker sees is the unauthenticated outside view: open the app in an incognito window, dev tools open, and walk through it as a stranger. Re-run the curl tests from Steps 1–4 while logged out. If anything answers that shouldn't, you found it before they did.
And repeat this whole pass after every significant AI-assisted change. Vibe-coded apps evolve fast, and a "quick cleanup" refactor is exactly how an auth check silently disappears.
Nine steps is a real afternoon — and the step you skip is the one that matters. PreShipIt does the outside-in probing for you for $29, one time: paste your app's URL, confirm you own it, and get a plain-English prioritized report of what an unauthenticated visitor can actually reach. It doesn't log in, read your source code, or guarantee you're secure — it shows you what's exposed before strangers do.
Get your pre-ship inspection at preshipit.com
The PreShipIt Brief — a short weekly email for people shipping vibe-coded apps: the week's important vulnerabilities and launch-safety checks, in plain English.
New and free. Double opt-in: we email you a confirmation link before anything else arrives. Unsubscribe any time.
Check your own app — free, in about a minute.
The free mini-scan checks your live homepage for TLS/HTTPS basics, response security headers, cookie flags, exposed sensitive files, Firebase/Supabase backend rules, and the WordPress plugin versions your site exposes. You get a score and the finding titles — no account, no card.
Run the free mini-scan →← Back home · Run a free mini-scan · Scan my app — $29 · See a sample report