Database / Supabase basics Interview Questions
Define Row Level Security in Supabase?
Row Level Security (RLS) is a native PostgreSQL feature that restricts which rows a given database role can see or modify, enforced by the database engine itself rather than by application code. Supabase turns this into its primary authorization model.
Because RLS runs inside Postgres, it holds even if a client bypasses your app and calls the auto-generated API directly — a policy such as "users can only select rows where user_id = auth.uid()" is checked on every query, not just ones your frontend happens to write correctly.
More Related questions...