fix(self-hosted): grant supabase_functions_admin USAGE on extensions schema (#46526)

This commit is contained in:
Naren authored and GitHub committed 2026-09-23 11:05:00 +02:00
1 parent d1d9620cdf
commit 08fc3ec287
1 file changed
+4
+4
View File
@@ -122,6 +122,10 @@ BEGIN;
ALTER table "supabase_functions".hooks OWNER TO supabase_functions_admin;
ALTER function "supabase_functions".http_request() OWNER TO supabase_functions_admin;
GRANT supabase_functions_admin TO postgres;
-- http_request() is SECURITY DEFINER and runs as supabase_functions_admin. Serializing
-- NEW/OLD can touch objects in the extensions schema (PostGIS geometry reads
-- extensions.spatial_ref_sys), so the role needs USAGE on it.
GRANT USAGE ON SCHEMA extensions TO supabase_functions_admin;
-- Remove unused supabase_pg_net_admin role
DO
$$