Office docsRun it
Create the first administrator and sign in
You create the first administrator in the browser with the setup code the installer printed. Two-factor sign-in is required for this account.
Create the administrator
- Open the printed address
Use the URL exactly as
install.shprinted it. A new installation shows Set up this installation. - Enter the setup code
Paste the code, then choose the administrator's email address and a password of at least 12 characters.
- Save the second factor and recovery codes
The page shows a QR code, a secret grouped for typing, an
otpauth://link and ten recovery codes. Add the secret to an authenticator app such as 1Password, Bitwarden, Aegis or Google Authenticator. Keep the recovery codes somewhere other than the phone that holds the authenticator. - Sign in
Reload the page. The installation now shows Sign in. Enter the email address and password, then the six-digit code from your authenticator when the code field appears.
The second factor and the recovery codes are never shown again, and the page stores nothing. If you refresh before saving them, they are gone. Save both before you continue.
The administrator cannot have a password without a second factor. Both are created in the same step.
Get a new setup code
If the code expired or you missed it, run the installer again, or mint a new code on the host. A new code cancels the previous one.
$ docker compose -p kernalworks-office -f compose.yaml exec office node /opt/kernalworks/operations/src/office.mjs bootstrap-capability --config /srv/kernalworks/data/office-installation.json
The command refuses once an administrator exists, so it cannot be used to take over a running installation. From then on the setup screen is unreachable.
Sign in
The sign-in screen asks for an email address and password. The code field appears only for an account that has a second factor. Use a recovery code is offered beside it.
On a sovereign installation, the sign-in screen is a single button. You sign in at your identity provider and return to KernalWorks Office.
The session is held in a secure, HTTP-only cookie that scripts on the page cannot read.
Sign in without your authenticator
Choose Use a recovery code and enter one of your saved codes in place of the six-digit code. Each recovery code works once. A wrong or already used code counts toward the account's lockout, the same as a wrong password.
Reset a password or clear a lockout
A forgotten password or a locked account is reset on the host, with shell access to the server. There is no reset link and no password-change route on the web.
$ docker compose -p kernalworks-office -f compose.yaml exec office node /opt/kernalworks/operations/src/office.mjs reset-local-password --config /srv/kernalworks/data/office-installation.json --credential-id you@example.com
- It generates a new password and prints it once. The password is not stored or logged.
- It clears the lockout, so the new password is accepted.
- It ends that person's active sessions.
- It does not sign anyone in. Sign in with the new password and, for the administrator, the second factor.
- It refuses a disabled account. Re-enable the account first with
enable-local-credential.