Skip to content

Commit

Permalink
fix: grant authenticator to supabase_storage_admin
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Oct 13, 2023
1 parent 172849e commit 5daa0ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common.vars.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
postgres-version = "15.1.0.124"
postgres-version = "15.1.0.125"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- migrate:up
grant authenticator to supabase_storage_admin;
revoke anon, authenticated, service_role from supabase_storage_admin;

-- migrate:down
4 changes: 1 addition & 3 deletions migrations/tests/storage/privs.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
select is_member_of('anon', 'supabase_storage_admin');
select is_member_of('authenticated', 'supabase_storage_admin');
select is_member_of('service_role', 'supabase_storage_admin');
select is_member_of('authenticator', 'supabase_storage_admin');
2 changes: 1 addition & 1 deletion migrations/tests/test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BEGIN;

CREATE EXTENSION IF NOT EXISTS pgtap;

SELECT plan(36);
SELECT plan(34);

\ir fixtures.sql
\ir database/test.sql
Expand Down

0 comments on commit 5daa0ea

Please sign in to comment.