Sign-in and access
People who cannot get in, and calls that are refused. How accounts, roles and tokens work is in Accounts, SSO, 2FA, roles.
Nobody can sign in to a new server
Sign-up is closed by default, so a new server has no local accounts. Members of your organization use Sign in with JoobQ; for a local admin, run on the server:
./joobqui accounts:create admin@example.com adminLocked out of every admin account
The command line needs no sign-in. On the server, with its environment:
./joobqui accounts:role someone@example.com admin # make an existing account an admin
./joobqui accounts:mfa:reset someone@example.com # remove a second factor nobody can produce
./joobqui accounts:create new@example.com newadmin --role adminEach is recorded in the audit log with the actor cli:<operating system user>. A running server notices within 30 seconds.
Someone lost their phone or their recovery codes
An admin removes the second factor: Access → Reset 2FA, or ./joobqui accounts:mfa:reset EMAIL. Both end the account's sessions and revoke the tokens it made. A role that must have a second factor enrols again at the next sign-in. If a code is only refused, check the phone's clock: a code is good for its 30-second step and one either side.
429 rate_limited at sign-in
Too many attempts from one address; the answer says how long to wait (Retry-After). If everyone is limited at once, the server sees them all as one address: it is behind a proxy and JOOBQUI_CLIENT_IP_HEADER is not set. See TLS and proxies.
403 sign_up_closed, 403 invite_required
Sign-up is closed (the default) or by invite. Make an account with accounts:create, make an invite with ./joobqui invites:create, or change Settings → Access.
The password-reset mail never arrives
The request is accepted either way, so that nobody can test which addresses exist; the log says when nothing was sent. Mail needs a real SMTP_HOST, an SMTP_USERNAME and JOOBQUI_PUBLIC_URL. Settings → Mail → Send a test message tries the values in the form. Only STARTTLS with a login is supported.
Single sign-on fails, or the provider is down
A failed attempt returns to the sign-in page with a message. The provider's configuration and keys are cached for an hour and an old copy is used for up to a day, so a short outage often goes unnoticed.
- With single sign-on only on, only admins can use their passwords meanwhile. Keep one local admin for this.
402 sso_upgrade_required: the licence's tier does not include single sign-on.- Do not switch single sign-on off to get people in: accounts made through it have a password nobody knows, and can only come back through "Forgot password" or an admin's reset.
403 forbidden (csrf) from a script
A request that changes something and carries a session cookie must send X-Requested-With: joobqui. Scripts should use an API token instead: a bearer token needs no such header.
403 session_required, 403 env_token_admin
Creating or revoking tokens, changing or erasing users, and changing notification channels need a console session: an API token is refused, even an admin's. Do it in the console.
403 forbidden_role
The account's or token's role is too low for the route: see Roles and permissions.
503 secrets_key_required when enrolling a second factor
A production server without JOOBQUI_SECRETS_KEY cannot seal the secret. A server set up with the setup page has one in /data; check the volume is mounted.
Everyone was signed out
The session secret changed (a new /data volume, or a new SESSION_SECRET), or sessions reached their lifetime (JOOBQUI_SESSION_TTL_MINUTES, 60 by default).
An API token leaked
- Revoke it on the Access page (or
DELETE /api/v1/tokens/:id). Revocation is checked on every request, so it works at once. A token fromJOOBQUI_API_TOKENSis not listed there: remove its hash from the variable and restart every instance. - See what it did. Filter the audit log by actor:
token:<name>for a stored token,token:plus the first 8 characters of the hash for an environment token. Reads are not audited, so assume the job payloads its role could see were read, and rotate credentials that appear in them. - If the account that made it may be affected too, deactivate the account or reset its password: both end its sessions and revoke every token it made.
- Create a replacement and hand it over through a safe channel.