Bootstrap Admin Setup
Claustrum supports a first-run bootstrap admin flow for clean initial installation.
Initial account
- Email is fixed on first bootstrap:
admin@example.com - Bootstrap runs only when
userstable is empty. - Server prints initial password once to server log stream.
Example output:
Bootstrap admin created: admin@example.com
Initial password (shown once): <random-password>
First login requirement
After login with bootstrap credentials, setup must be completed before using the platform:
- Change email (required, cannot stay
admin@example.com) - Change password (required)
- Set display name (optional)
Until setup is completed:
/v1/auth/me,/v1/auth/complete-setup,/v1/auth/logoutare allowed.- Other
/v1/*APIs are blocked with403.
Reinstall / reset behavior
- If DB is reset and
usersis empty again, bootstrap will run again and print a new one-time password. - If any user already exists, bootstrap does not run and no password is printed.
Security recommendations
- Treat bootstrap password output as sensitive secret material.
- Rotate to a real personal password immediately.
- Prefer secure log sinks and avoid exposing startup logs publicly.