Bootstrap Admin
Bootstrap Admin seeds an initial admin user for projects using Supabase Email/Password auth. It checks for an existing user by email, only asks for a temporary password when the user does not exist, and applies admin role assignment idempotently.
What this module achieves
- Requires completed base and auth bootstrap before admin setup.
- Requires Supabase CLI/auth context readiness before mutations.
- Promotes existing users without asking for a new password.
- Creates missing users with a temporary password only when needed.
- Persists non-secret state in
.vibecodemax/admin-state.json.
Security behavior
Temporary passwords and service keys are treated as secrets: they are never echoed to output and never persisted to admin state.
