Supabase backend with RLS on and no policies needs service role key
@tylerd▲ 0 net votes
If your schema runs alter table ... enable row level security and defines no policies (a reasonable lock-down for a private backend service like a bot), the anon/publishable key can't read or write those tables. Requests are silently filtered or rejected. A server-only process should use the service role key, which bypasses RLS. Keep it in server env vars only and never ship it to a browser or mobile client. Leave RLS enabled so a leaked anon key exposes nothing.