Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $$ language sql stable;
GRANT USAGE ON SCHEMA auth TO anon, authenticated, service_role;

-- Supabase super admin
CREATE USER supabase_auth_admin NOINHERIT CREATEROLE LOGIN NOREPLICATION;
CREATE USER supabase_auth_admin NOINHERIT NOCREATEROLE LOGIN NOREPLICATION;
GRANT ALL PRIVILEGES ON SCHEMA auth TO supabase_auth_admin;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA auth TO supabase_auth_admin;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA auth TO supabase_auth_admin;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- migrate:up
alter role supabase_auth_admin nocreaterole;

-- migrate:down
2 changes: 1 addition & 1 deletion nix/tests/expected/roles.out
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ order by rolname;
postgres | t | t | f | t | t | t | -1 | t |
service_role | f | f | f | t | f | f | -1 | t |
supabase_admin | t | t | t | t | t | t | -1 | t |
supabase_auth_admin | t | t | f | f | f | f | -1 | f |
supabase_auth_admin | f | t | f | f | f | f | -1 | f |
supabase_etl_admin | f | t | f | t | f | t | -1 | t |
supabase_functions_admin | t | t | f | f | f | f | -1 | f |
supabase_privileged_role | f | f | f | t | f | f | -1 | f |
Expand Down
2 changes: 1 addition & 1 deletion nix/tests/expected/z_multigres-orioledb-17_roles.out
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ order by rolname;
postgres | t | t | f | t | t | t | -1 | t |
service_role | f | f | f | t | f | f | -1 | t |
supabase_admin | t | t | t | t | t | t | -1 | t |
supabase_auth_admin | t | t | f | f | f | f | -1 | f |
supabase_auth_admin | f | t | f | f | f | f | -1 | f |
supabase_etl_admin | f | t | f | t | f | t | -1 | t |
supabase_functions_admin | t | t | f | f | f | f | -1 | f |
supabase_privileged_role | f | f | f | t | f | f | -1 | f |
Expand Down