Skip to content

Commit 4b1db6d

Browse files
committed
feat: revoke supabase_*_admin from postgres
Prevents Auth, Storage, and Realtime schemas & migrations from being modified
1 parent 70b1181 commit 4b1db6d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
revoke supabase_realtime_admin from postgres;
11+
revoke create on schema realtime from postgres;
12+
revoke all on schema_migrations from postgres, dashboard_user, anon, authenticated, service_role;
13+
14+
-- migrate:down

0 commit comments

Comments
 (0)