First run
An instance with zero users cannot be administered, so it exposes exactly one unauthenticated action: creating the first administrator.
The setup screen
Section titled “The setup screen”Open BASE_URL. The root route checks two things in order:
- Does this instance have any users? If not, redirect to
/setup. - Is there an administrator session? If so, redirect to
/admin. - Otherwise, redirect to
/sign-in(when the preview screens are enabled).
/setup asks for a name, email and password (8 characters minimum). Submitting it:
- creates the account through the normal sign-up path,
- grants it the role listed in
plugins.admin.adminRoles(defaultadmin), - signs the browser in,
- records
instance.setupin the audit trail.
Then it closes permanently. Afterwards GET /api/setup returns {"needsSetup":false}, POST returns
409, and /setup returns 404. There is no way to reopen it without deleting every user.
The alternative: an administrator from the environment
Section titled “The alternative: an administrator from the environment”If you would rather not touch a browser during provisioning:
BOOTSTRAP_ADMIN_EMAIL[email protected]BOOTSTRAP_ADMIN_PASSWORD=a-long-password-you-choseThe account is created at boot and promoted to the admin role. If you omit the password, one is generated and printed once to the container log — which means the credential lives in your logs, so set it explicitly in production.
Where the console is
Section titled “Where the console is”/admin. A session without the admin role gets a 404, not a redirect: the console does not
advertise itself to people who cannot use it.
The first thing worth doing there is Settings → Configuration, which tells you what the running process actually resolved — and which parts of the deployment are not production-ready yet.