Database / Supabase Intermediate to Advanced Interview Questions
Why doesn't disabling RLS on a table make it invisible in the auto-generated API docs?
PostgREST builds its schema introspection — and by extension the auto-generated API documentation Supabase Studio shows — directly from Postgres's catalog metadata: table names, columns, and types. That introspection happens regardless of whether RLS is enabled, because RLS is an access-control mechanism, not a visibility toggle for the schema itself.
Practically, this means a table with RLS disabled is still fully listed, documented, and queryable through the API exactly like any other table — the difference is that without RLS, every row is returned to every requester rather than a filtered subset. Disabling RLS doesn't hide the table; it removes the one thing that would have restricted what data flows through the API that already exposes it. This is precisely why leaving RLS off on a table containing sensitive data is a common and serious misconfiguration — the endpoint isn't hidden, it's just unfiltered.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
