New
Introducing React Bench, see how different models perform on React code

react-doctor/supabase-table-missing-rls

Supabase table created without Row Level Security

  • Category: Security
  • Severity: error
  • Source: oxlint-plugin-react-doctor
  • Framework: global
  • Enabled when: always
  • Tags: security-scan
  • Default: Enabled

Validation prompt

Use this to decide whether a fired diagnostic is real or a false positive.

Confirm the reported code matches Supabase table created without Row Level Security. Check the framework context and diagnostic message before suppressing it.

Fix prompt

Use this once validation confirms the diagnostic is real.

Enable RLS in the same migration (alter table <name> enable row level security;) and add auth.uid()-scoped policies for select/insert/update/delete. A public table without RLS is fully readable and writable with the public anon key.

More Security rules from the rules reference: