Bootstrap the login identity
Availability: preview
Run these commands from backend/ against dedicated evaluation PostgreSQL and
Redis instances.
1. Configure the process
Section titled “1. Configure the process”cp .env.example .envexport MENDRY_ENCRYPTION_KEY="$(openssl rand -base64 32)"Set MENDRY_POSTGRES_URL and MENDRY_REDIS_URL in the environment or private
.env. Keep the encryption key stable for this database.
2. Apply migrations
Section titled “2. Apply migrations”make run-migrateOnly the migration command changes schema. The API never migrates automatically.
3. Create the login identity
Section titled “3. Create the login identity”MENDRY_BOOTSTRAP_ADMIN_PASSWORD='replace-with-a-long-random-password' \make bootstrap-admin USERNAME=adminThe password must contain 12 to 72 bytes. Repeating the command for the same enabled login identity is idempotent and does not replace its password hash. The database permits at most one account; using a different username cannot create a second login identity.
4. Start and verify the API
Section titled “4. Start and verify the API”make run-apicurl http://127.0.0.1:8080/livezcurl http://127.0.0.1:8080/readyzcurl http://127.0.0.1:8080/api/v1/system/status/livez proves the process is alive. /readyz includes PostgreSQL and Redis
readiness.
Continue to your first project.
Verified against
Section titled “Verified against”backend/README.mdbackend/cmd/bootstrap-admin/main.go