Guides · Psychevus Verify
The flaws AI builders ship. And the exact fixes.
Each guide answers first, shows the mechanism with real code, and tells you how to check your own app in a minute.
- Supabase · Lovable · BoltSupabase RLS is enabled, but my data is still public. Why?Row Level Security can be on and still let anyone read every row. How using (true), PUBLIC role defaults and OR-ed permissive policies leak data, and the exact policies that fix it.
- Supabase · Lovable · ViteI exposed my Supabase service_role key. What do I do now?The service_role (secret) key bypasses Row Level Security. How to rotate it, find out whether it was used, and move privileged work out of the browser, in the right order.
- Supabase · PostgreSQLNever use user_metadata in Supabase RLS policiesAny signed-in user can edit their own user_metadata from the browser. A policy that reads a role or tenant from it lets users make themselves admin. Use app_metadata or a table instead.
- Stripe · Next.js · SupabaseVerify Stripe webhook signatures (Next.js and Supabase Edge Functions)An unverified webhook lets anyone fake a payment and unlock your paid plan. Verifying the raw body in Next.js route handlers and Supabase Edge Functions, plus idempotency and what not to trust.
- Next.js · Cursor · Claude CodeNext.js server actions are public endpoints: authorize every oneServer actions and route handlers can be called directly with a POST, not only from your UI. Why middleware/proxy checks aren't enough, and a small pattern that authorizes every mutation.
- OpenAI · Claude · AI SDKPrompt injection in your app's AI features: stop tools acting on attacker textWhen your assistant reads user-supplied text and can call tools, that text can steer it. Practical controls: scoped tools, server-side arguments, confirmation for consequential actions, and safe rendering.
- Vite · Next.js · LovableAre your API keys exposed in your JavaScript bundle?Which keys are safe in the browser (Supabase anon, Stripe publishable, Firebase config) and which must never ship (service_role, Stripe secret, OpenAI, Anthropic, Resend). How to check a live site and fix it.
- Lovable · Bolt · v0Security checklist for Lovable, Bolt and v0 apps on SupabaseTwelve checks to run before you launch an app built with an AI builder on Supabase: RLS that's actually restrictive, keys, Edge Functions, storage, payments, AI features, auth settings and email.