Urgent.News

What's breaking now, across thousands of outlets.

Tech

Supabase Data API exposure changes on 30 October: grant tables explicitly

On a project with the new default, a table you just created is invisible to the Data API until someone grants it. Your app gets an error where it used to get rows, while the table sits in your database looking fine. Supabase announced the change on 28 April 2026, and it reaches every existing project on 30 October 2026. This post covers the exposure change only: what changed, the dates, the…

On 30 October 2026, Supabase made changes to the exposure of new tables in the public schema to the Data API. Previously, new tables were automatically reachable through the Data API. However, the new rule requires explicit Postgres grants before the Data API can access these tables. Existing tables remain unaffected and continue to use their current grants.

The change became applicable to all existing projects on 30 October 2026. Existing tables retain their current grants and remain accessible. This change primarily impacts tables created after the new default setting is implemented. Applications utilizing a direct Postgres connection, such as an ORM, psql, or a server with a connection string, are not affected.

To determine which tables the Data API can reach, a SQL query can be run to check for the presence of grants granted to the anon, authenticated, and service_role. If a table is missing from the query output, it will remain unreachable until appropriate grants are added. The Security Advisor will flag affected tables before the 30th, and owners or admins will receive email notifications.

Supabase recommends granting the minimum necessary privileges to each role. For anonymous clients, read-only access is recommended, while full access is granted to authenticated users, including signed-in users who have row-level security (RLS) applied. For server-side code using the service role, full access is recommended. It is advised not to grant write grants to the anon role unless the table is intended for anonymous writes.

Row-level security (RLS) should be enabled for all tables, including those created through the Supabase Dashboard or the SQL Editor. RLS determines which rows a given role can see, and it does not apply to functions. To ensure proper functionality, grants should be granted per table or opted in early. The dashboard automatically runs revoke statements at project creation, adopting the new behavior in existing projects.

Before the 30th, it is recommended to run the SQL query to identify the tables that the Data API can access. If a table is missing from the output, grants need to be added to make it reachable. The SQL statements for revoking default privileges can be found in the changelog, but it is recommended to compare them with the dashboard's statements before execution. These statements can be run on a staging project first and then applied to the production project.

After implementing the necessary grants, each role should be tested by calling the application's endpoints three times: with the anon key, a signed-in user's token, and the service role key from server code. Each request should return the expected data based on the role's privileges. If a 42501 error occurs, it indicates a missing grant, while an empty result from a table with expected rows suggests a policy that filters all rows.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The one test that proves no user can see another user's data

Every multi-tenant app has the same nightmare bug: a route that forgets to check who owns the thing it returns. One missing where owner_id = ?

  • Comprehensive test examines every API route
  • Mallory accesses Alice's data by altering IDs
  • No leaks in response status codes (404 or 401)

The Invisibility Tax: Why Detection Latency Is the Real Cost of Monitoring Blindness

Your automation succeeded three days ago. The panelists scored. The agent looped. The workflow completed. All without anyone noticing until something broke visibly.

  • Detection latency is the true cost of monitoring failures, not just detection
  • Silent failures remain hidden for up to 72 hours, causing catastrophic consequences
  • Outcome-aware monitoring and detection strategies are essential to reduce latency

Scope Desk: "one more thing" needs a scope review

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle . What I Built The agreement says one English landing page with a contact form.

  • Scope Desk is a command-line tool for freelancers to review client requests.
  • It generates three types of suggestions: included work, extra work, and clarification needed.
  • The tool is free, MIT-licensed, and currently in prototype stage with no encryption.

More from Tuesday 13 October →