Skip to content

Commit 19ac493

Browse files
committed
fix: grant predefined roles post-upgrade
1 parent 407d41a commit 19ac493

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -541,16 +541,6 @@ $$;
541541
542542
alter database postgres connection limit -1;
543543
544-
-- #incident-2024-09-12-project-upgrades-are-temporarily-disabled
545-
do $$
546-
begin
547-
if exists (select from pg_authid where rolname = 'pg_read_all_data') then
548-
execute('grant pg_read_all_data to postgres');
549-
end if;
550-
end
551-
$$;
552-
grant pg_signal_backend to postgres;
553-
554544
set session authorization supabase_admin;
555545
drop role supabase_tmp;
556546
commit;

ansible/files/admin_api_scripts/pg_upgrade_scripts/complete.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ EOF
7878

7979
run_sql -c "$RECREATE_PG_CRON_QUERY"
8080
fi
81+
82+
# #incident-2024-09-12-project-upgrades-are-temporarily-disabled
83+
run_sql -c "grant pg_read_all_data, pg_signal_backend to postgres"
8184
}
8285

8386
function complete_pg_upgrade {

0 commit comments

Comments
 (0)