Control who can sign up and how passwords work on a self-hosted installation
A fresh self-hosted Requestarium lets anyone who reaches the sign-in page create an account. That's convenient on a laptop and wrong on a server that half the company can reach. The Authentication settings of the installation decide who can sign up, what a password must look like, and how long a session lasts.
Every value is a TAIRI_AUTH_* setting. A value set in the environment wins and shows as read-only in the app; a value saved in the app applies on every replica within seconds, no restart. The defaults are the behaviour of older versions, so an upgrade changes nothing until you change it.
Who can sign up
TAIRI_AUTH_SIGNUP | Who can create an account |
|---|---|
open (default) | anyone who reaches the sign-in page |
domains | emails at TAIRI_AUTH_SIGNUP_DOMAINS and their subdomains |
invite | emails with a pending organization invitation |
closed | nobody; administrators add people |
A first sign-in with Google or GitHub counts as a sign-up and follows the same rule. SSO just-in-time accounts, SCIM and LDAP provisioning and accepted invitations aren't affected: the organization decides those. The very first account of a new installation, and emails listed in TAIRI_ADMIN_EMAILS, can always sign up, so you can't lock yourself out of a fresh install.
For most companies, domains with your domain, or invite, is the right setting.
Passwords
TAIRI_AUTH_PASSWORD_MIN_LENGTH: 8 by default, up to 128. It applies to new passwords; existing ones keep working. The doctor suggests 12 or more.TAIRI_AUTH_PASSWORD_BREACH_CHECK=true: refuse new passwords found in known breaches. Only the first 5 characters of the password's SHA-1 hash leave the server (k-anonymity). PointTAIRI_AUTH_PASSWORD_BREACH_URLat an internal mirror if the server has no internet; it's off automatically in offline mode.TAIRI_AUTH_PASSWORD_MAX_AGE_DAYS: off by default. With a value (30 to 730), the next password sign-in after that many days asks for a new password instead of starting a session. SSO and Google/GitHub sign-ins aren't affected.
Lockout
TAIRI_AUTH_LOCKOUT_ATTEMPTS (10) wrong passwords in a row lock the account for TAIRI_AUTH_LOCKOUT_MINUTES (15). A correct password resets the count. A locked account is refused before the password is even checked, so guessing doesn't continue, and the message says until when.
0 minutes means "until an administrator unlocks it". Be careful with that: anyone who knows an email address can then lock that person out, and the doctor warns about it. Administrators unlock accounts in Settings ▸ Installation ▸ Users; a password reset also lifts the lock.
Sessions
TAIRI_AUTH_SESSION_MAX_AGE (1 hour to 90 days) and TAIRI_AUTH_IDLE_TIMEOUT (15 minutes to 30 days). These are a floor: an organization's own security policy can set a shorter limit, never a longer one.
TAIRI_AUTH_ADMIN_MFA=true requires installation administrators to use two-step verification before they can open Settings ▸ Installation.
Put SSO first
With TAIRI_AUTH_DEFAULT_SSO set to an organization whose SSO connection is on, the sign-in screen shows Sign in with <connection> as the main button. Add TAIRI_AUTH_HIDE_PASSWORD_SIGN_IN=true and the password form moves behind Installation administrator sign-in, which only administrators get past. The app refuses to hide password sign-in while the default SSO can't be used.
If SSO breaks later and nobody can get in, there's a command-line way back: see Recover access to a self-hosted installation.
Check it
The doctor's authentication check warns about open sign-up, administrators without two-step verification, no lockout, a lock-until-unlocked setting and short passwords. Run it after you change these settings: doctor and support bundle.