Skip to content

Commit d7395f2

Browse files
authored
Merge branch 'develop' into bo/dataeng-873-upgrade-wrappers-to-v045
2 parents 50fa41f + 084b914 commit d7395f2

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

ebssurrogate/scripts/qemu-bootstrap-nix.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,6 @@ function clean_system {
143143

144144
install_nix
145145
execute_stage2_playbook
146+
# we do not want to ship an initialized DB as this is performed as needed
147+
rm -rf /data/pgdata
146148
cloud-init clean --logs

nix/tests/expected/security.out

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
n.nspname, 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,2;
10+
nspname | proname
11+
----------+--------------------------------
12+
graphql | get_schema_version
13+
graphql | increment_schema_version
14+
pgsodium | disable_security_label_trigger
15+
pgsodium | enable_security_label_trigger
16+
pgsodium | get_key_by_id
17+
pgsodium | get_key_by_name
18+
pgsodium | get_named_keys
19+
pgsodium | mask_role
20+
pgsodium | update_mask
21+
public | dblink_connect_u
22+
public | dblink_connect_u
23+
public | pgaudit_ddl_command_end
24+
public | pgaudit_sql_drop
25+
public | st_estimatedextent
26+
public | st_estimatedextent
27+
public | st_estimatedextent
28+
repack | repack_trigger
29+
(17 rows)
30+

nix/tests/sql/security.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
n.nspname, 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,2;

0 commit comments

Comments
 (0)