Is your vibe-coded app actually secure?
Six situations that leave real apps open. Each one shows the reason right after you answer, with no sign-up.
-
Q1 Your app has a working login screen. What has that proved so far?Why
A login only proves identity. The server or database must check on every request that this user may touch this record, and the real test takes two accounts.
How Do You Add Login and Permissions Without Holes? -
Q2 Which of these keys is meant to be visible in the browser?Why
Publishable keys are public by design, and your access rules protect the data. Stripe
How Do You Keep API Keys Out of the Browser?sk_keys and Supabasesb_secret_keys must stay on a server, and Firebase's docs say Gemini Developer API keys must never sit in your code. -
Q3 You turned on row level security and a page went blank. The AI suggests adding using (true). What should you do?Why
With RLS on and no policies, the API returns no data, so blank means a policy is missing.
How Do You Lock Down Your Database and Validate Input?using (true)opens the table to everyone, and a secret key bypasses RLS altogether. -
Q4 Your password reset sends a paid text message on every call. A script could call it thousands of times. What protects you?Why
OWASP's API guide describes this exact abuse. Limits only count on the server, where a caller can't remove them, and a spending limit caps the damage.
Which Insecure Defaults Should You Fix Before Launch? -
Q5 Your builder's security scan comes back clean. What does that tell you?Why
Lovable says its scans can't guarantee complete security. A scanner won't know who may see which invoice, so run your own checks from outside the app with two test accounts.
What Should You Check Before a Vibe-Coded App Goes Public? -
Q6 Your AI stores each user's role in Supabase user_metadata and checks it for admin access. Why is that unsafe?Why
Supabase says not to base permissions on
How Do You Add Login and Permissions Without Holes?user_metadata, because users can change it, and its Security Advisor flags this. Useapp_metadatainstead.