Skip to content

Commit 10db5b3

Browse files
committed
feat: revoke supabase_*_admin from postgres
Prevents Auth and Storage schemas & migrations from being modified
1 parent b1fd9d6 commit 10db5b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- migrate:up
2+
revoke supabase_storage_admin from postgres;
3+
revoke create on schema storage from postgres;
4+
revoke all on storage.migrations from anon, authenticated, service_role, postgres;
5+
6+
revoke supabase_auth_admin from postgres;
7+
revoke create on schema auth from postgres;
8+
revoke all on auth.schema_migrations from dashboard_user, postgres;
9+
10+
-- migrate:down

0 commit comments

Comments
 (0)