The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: clarify supabase_admin default privileges are intentional
Gabriel Claudino432aecce5970
diff --git a/apps/docs/content/guides/api/securing-your-api.mdx b/apps/docs/content/guides/api/securing-your-api.mdxindex 894b2e8179b..6e4c02e14aa 100644--- a/apps/docs/content/guides/api/securing-your-api.mdx+++ b/apps/docs/content/guides/api/securing-your-api.mdx@@ -68,6 +68,12 @@ alter default privileges for role postgres in schema publicrevoke execute on functions from public;```+<Admonition type="tip">++The default privileges shown in [pg_default_acl](https://www.postgresql.org/docs/current/catalog-pg-default-acl.html) that originate from [supabase_admin](/docs/guides/database/postgres/roles#supabaseadmin) (granting to anon, authenticated, and service_role) are intentional and part of Supabase's standard permission model. The supabase_admin role is an internal management role that cannot authenticate through the Data API, so it poses no direct security risk.++</Admonition>+## Use a dedicated API schemaIf you want an extra boundary around your Data API, lock down the `public` schema and expose a dedicated schema, such as `api`, instead. You can control access with grants in any schema, but this can make the surface easier to reason about: objects in `api` represent your Data API, while internal tables and helper functions stay in schemas that are not exposed. See [Using Custom Schemas](/docs/guides/api/using-custom-schemas) for setup steps.