File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ -- get a list of security definer functions owned by supabase_admin
2+ -- this list should be vetted to ensure the functions are safe to use as security definer
3+ select
4+ p.proname
5+ from pg_catalog.pg_proc p
6+ left join pg_catalog.pg_namespace n ON n.oid = p.pronamespace
7+ where p.proowner = (select oid from pg_catalog.pg_roles where rolname = 'supabase_admin')
8+ and p.prosecdef = true
9+ order by 1;
10+ proname
11+ --------------------------------
12+ dblink_connect_u
13+ dblink_connect_u
14+ disable_security_label_trigger
15+ enable_security_label_trigger
16+ get_key_by_id
17+ get_key_by_name
18+ get_named_keys
19+ get_schema_version
20+ increment_schema_version
21+ mask_role
22+ pgaudit_ddl_command_end
23+ pgaudit_sql_drop
24+ repack_trigger
25+ st_estimatedextent
26+ st_estimatedextent
27+ st_estimatedextent
28+ update_mask
29+ (17 rows)
30+
Original file line number Diff line number Diff line change 1+ -- get a list of security definer functions owned by supabase_admin
2+ -- this list should be vetted to ensure the functions are safe to use as security definer
3+ select
4+ p .proname
5+ from pg_catalog .pg_proc p
6+ left join pg_catalog .pg_namespace n ON n .oid = p .pronamespace
7+ where p .proowner = (select oid from pg_catalog .pg_roles where rolname = ' supabase_admin' )
8+ and p .prosecdef = true
9+ order by 1 ;
You can’t perform that action at this time.
0 commit comments