service_role lost write permissions on auth schema - Production DOWN
Description:
Project Ref: ruasioxmitvlrrmeiuga
PostgreSQL Version: 17.4
Severity: CRITICAL - Production is completely down
ISSUE:
New user registration broken. service_role cannot INSERT into auth tables.
COMPLETE DIAGNOSIS:
Project Ref: ruasioxmitvlrrmeiuga
PostgreSQL Version: 17.4
Severity: CRITICAL - Production is completely down
ISSUE:
New user registration broken. service_role cannot INSERT into auth tables.
COMPLETE DIAGNOSIS:
- PERMISSION CHECK (auth.users):
- service_role: SELECT only
- postgres: full access
- Expected: service_role should have INSERT, UPDATE, DELETE
- service_role: SELECT only
- AFFECTS ALL AUTH TABLES:auth.users, auth.sessions, auth.refresh_tokens, auth.identities,auth.mfa_factors, etc. - ALL have service_role = SELECT only
- DEFAULT ACL MISSING service_role:Query: SELECT * FROM pg_default_acl WHERE defaclnamespace = 'auth'::regnamespace;Result: Only postgres and dashboard_user listed, service_role NOT included
- ROLE PERMISSIONS:
- service_role.rolbypassrls = false
- postgres.rolsuper = false (cannot GRANT)
- SET ROLE supabase_admin: permission denied
- WE CANNOT FIX THIS:
- GRANT command fails (postgres not superuser)
- Cannot SET ROLE to supabase_admin
- Dashboard SQL Editor also lacks permission
- Was this project recently upgraded to PostgreSQL 17?
- Is this a known issue from database migration?IMPACT:
- No new user registration
- Auth completely broken
- Production DOWNPlease prioritize this issue. Thank you.