Skip to content

Commit c78104d

Browse files
authored
fix: pgbouncer ownership (#1474)
* fix: pgbouncer ownership * chore: update test snapshots * chore: bump versions
1 parent daf1236 commit c78104d

File tree

3 files changed

+28
-22
lines changed

3 files changed

+28
-22
lines changed

ansible/vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ postgres_major:
88

99
# Full version strings for each major version
1010
postgres_release:
11-
postgresorioledb-17: "17.0.1.043-orioledb"
12-
postgres15: "15.8.1.050"
11+
postgresorioledb-17: "17.0.1.044-orioledb"
12+
postgres15: "15.8.1.051"
1313

1414
# Non Postgres Extensions
1515
pgbouncer_release: "1.19.0"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- migrate:up
2+
alter function pgbouncer.get_auth owner to supabase_admin;
3+
grant execute on function pgbouncer.get_auth(p_usename text) to postgres;
4+
5+
-- migrate:down

nix/tests/expected/security.out

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,25 @@ from pg_catalog.pg_proc p
77
where p.proowner = (select oid from pg_catalog.pg_roles where rolname = 'supabase_admin')
88
and p.prosecdef = true
99
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)
10+
nspname | proname
11+
-----------+--------------------------------
12+
graphql | get_schema_version
13+
graphql | increment_schema_version
14+
pgbouncer | get_auth
15+
pgsodium | disable_security_label_trigger
16+
pgsodium | enable_security_label_trigger
17+
pgsodium | get_key_by_id
18+
pgsodium | get_key_by_name
19+
pgsodium | get_named_keys
20+
pgsodium | mask_role
21+
pgsodium | update_mask
22+
public | dblink_connect_u
23+
public | dblink_connect_u
24+
public | pgaudit_ddl_command_end
25+
public | pgaudit_sql_drop
26+
public | st_estimatedextent
27+
public | st_estimatedextent
28+
public | st_estimatedextent
29+
repack | repack_trigger
30+
(18 rows)
3031

0 commit comments

Comments
 (0)