{
  "id": 22254366,
  "title": "Supabase says your table is publicly accessible (RLS disabled): what to do, in order",
  "url": "https://urgent.news/2026/11/27/supabase-says-your-table-is-publicly-accessible-rls-disabled-what-to",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T23:08:30.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/proofforge_live/supabase-says-your-table-is-publicly-accessible-rls-disabled-what-to-do-in-order-foo"
  },
  "original_language": "en",
  "account": "Supabase alerts users when a table in the public schema has Row Level Security (RLS) disabled, notifying them through the dashboard or email. This warning indicates that the table is accessible via the API, with the anon key present in the app's JavaScript, allowing anyone to read and, often, write to it. To address this, follow these steps:\n\n1. Enable RLS on the affected table using the SQL command `alter table public.your_table enable row level security;`.\n2. Once RLS is enabled, add policies to restrict access. For data belonging to a user, create policies allowing the owner to read and insert, using `auth.uid()` to identify the user. Implement similar policies for update and delete operations.\n3. After implementing policies, review your API logs to ensure the table was not read by unauthorized clients. If it contained personal data, notify your legal or privacy contact, as required by your jurisdiction.\n4. Test the fix by attempting to access the table from an unauthenticated session using only the anon key. Confirm that no private rows are returned, and then test with two different user accounts to verify that one user cannot see another's data.\n5. Check for additional tables with disabled RLS by running `select tablename, rowsecurity from pg_tables where schemaname = 'public';`. Also, review your storage bucket policies and any instances of the service_role key in your front-end code. Utilize free tools like [Supabase RLS Checker](https://proofforge.live/tools/supabase-rls-checker) and [Fix Guide](https://proofforge.live/fix/supabase-rls-disabled) to assist with the process. Be prepared for potential policy errors when adding new rules.",
  "summary": "Supabase warns you when a table in the public schema has Row Level Security (RLS) turned off. You may see it as a Security Advisor warning in the dashboard (the lint is called rls_disabled_in_public ) or as an email about a publicly accessible table. If you got one, treat it as real. Here is what to do, in order. What the warning means With RLS off, any request that carries your project's anon…",
  "summary_source": "publisher",
  "key_points": [
    "Supabase warns about public tables without RLS enabled",
    "Enable RLS to restrict access with SQL command",
    "Verify fix by testing API access and reviewing logs"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}