Question

Do I need a backend at all for a Lovable app with Supabase?

Solved · 15 views · asked by noor_builds · edited

The app talks to Supabase directly from the browser. A developer friend said that's insecure. Is it?

What I’ve tried

Asked Lovable, it said it's fine.

Comment

2 answers

Marked as helpful by the asker
mira_dev · edited

Both are right, depending on one thing: RLS. With Row Level Security on every table, the browser talking to Supabase directly is the intended design; the database is the backend. Without RLS, your friend is right and everyone can read everything.

You need a server only for things that must stay secret from the browser: third-party API keys, payments, sending email. For plain CRUD on your own tables, RLS is the backend.

Comment
lena_ops · edited

Run Supabase's Security Advisor today. It lists every table without RLS.

Comment