Skip to content

Commit 15cc078

Browse files
committedOct 16, 2023
fix: grant authenticator to supabase_storage_admin
1 parent 172849e commit 15cc078

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed
 

‎common.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.0.124"
1+
postgres-version = "15.1.0.125"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- migrate:up
2+
grant authenticator to supabase_storage_admin;
3+
revoke anon, authenticated, service_role from supabase_storage_admin;
4+
5+
-- migrate:down

‎migrations/tests/storage/privs.sql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
select is_member_of('anon', 'supabase_storage_admin');
2-
select is_member_of('authenticated', 'supabase_storage_admin');
3-
select is_member_of('service_role', 'supabase_storage_admin');
1+
select is_member_of('authenticator', 'supabase_storage_admin');

‎migrations/tests/test.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BEGIN;
55

66
CREATE EXTENSION IF NOT EXISTS pgtap;
77

8-
SELECT plan(36);
8+
SELECT plan(34);
99

1010
\ir fixtures.sql
1111
\ir database/test.sql

0 commit comments

Comments
 (0)
Please sign in to comment.