Local accounts
This page covers the accounts whose password Meerkat keeps itself: the rules a password must follow, what happens after failed sign-ins, and the pages that let people create an account or recover a password. The tasks it walks through:
- set the password policy;
- reset someone's password;
- help someone who is throttled;
- let people create their own account.
The local authority is the one Meerkat answers on its own: a username, a password hash it keeps, and nothing asked of anybody else. It is enabled on a first start, and the root account created at that first start belongs to it.
It appears in Infra > Authentication as a row named Local accounts, next to the identity providers and the directories. Switching it off is what makes the remaining authorities exclusive: as long as it answers, every local password is a door that bypasses them.
The password policy
One policy for the whole installation, in Application > Security. A password is checked where it is typed, and the places it is typed - the sign-up form, the forced change at a first sign-in, the profile, a reset link - know nothing about tenants.

| Field | What it asks | Ships as |
|---|---|---|
| Length | minimum number of characters | 8 |
| Lowercase, Uppercase, Digits, Special characters | minimum count of each kind | 0 |
| No reuse of the last | how many previous passwords are refused | 0 |
| Expires after (days) | forces a change after that many days | 0, never |
| Temporary (hours) | how long a password an administrator issued works | 72 |
A zero means do not care: the rule is neither checked nor shown. What ships therefore asks for a length and nothing else, deliberately - raising the bar for everyone during an upgrade locks people out of the very password change they were in the middle of.
Three things are worth knowing before you fill the boxes:
- Length is counted in characters, not bytes, so a Greek or Japanese passphrase is not three times longer than it looks.
- A letter in a script that has no case - kana, Chinese, Arabic, Hebrew - counts as neither lowercase, nor uppercase, nor special.
- If the length you ask for is below the sum of the four kinds, it is raised to that sum: four kinds at two each need eight characters, and a checklist that could never be satisfied is worse than no checklist.
The console shows the checklist exactly as the sign-in pages will draw it. It is the same function on both sides, on purpose: a checklist that says one thing while the server enforces another is believed.
Expiry is read at sign-in, not by a clock. A password expiring at three in the morning signs nobody out; it refuses the next sign-in, which then lands on the password-update page. The same screen carries a Force a change for everyone button for the day you need it.
A temporary password runs out. The password an administrator issues, at creation or on a reset (a reset hands one out only when root does it: an application or tenant administrator's reset mails a link instead), works for Temporary (hours), or until its owner sets their own. Past that, signing in with it is refused with a sentence that says to ask an administrator for a new one. It travels by mail, chat or phone, and one nobody used should not stay a way in. Force a change is not affected: the password stays its owner's own.
Passwords are hashed with bcrypt. A hash made at a lower cost is re-hashed at its owner's next sign-in, the only moment the password is known in clear.
Resetting someone's password
Prerequisite: the account has a local password. An account that signs in only through an identity provider, a directory or GitHub has none, and the button reads Set a password instead.
- Open Application > Users and click the account.
- In the drawer, open Security (Second factor, password, external authorities).
- Under Password, click Reset password.
- Choose how the person gets back in, then confirm.
What the dialog offers depends on who you are:
| You are | What you can choose | What happens |
|---|---|---|
| root | Show a temporary password or Mail a reset link | the temporary password is shown once, with a copy button: pass it on yourself. It works for Temporary (hours), and the person must choose their own at the next sign-in |
| an application or tenant administrator | Mail a reset link only | the link goes to the account's address; the drawer says "Reset link mailed to ..." |
The mailed link needs an address on the account and a configured mail relay; without them the button is greyed out and its tooltip says why. To make someone change a password they still know, use Force a change at next sign-in beside it: nothing is sent, and they land on the change page at their next sign-in.
Throttling, never a lockout
Failed sign-ins are counted twice, over a sliding window, in Application > Security > Rate limiting: per client address and account, and per account whatever the address.
| Field | What it counts | Ships as |
|---|---|---|
| Failed sign-ins from one address | failures from one address on one account, before the sign-in form answers 429 |
10 |
| Failed sign-ins on one account | failures on one account from any address, before its sign-in also asks for a picture code | 5 |
| Wrong 2FA codes | wrong second-factor codes tolerated, same window | 5 |
| Within | the window, as an ISO-8601 duration | PT15M |
A successful sign-in clears both counters. Setting a count to zero turns that limiter off. The counters are shared by every gateway of a cluster.
No account is ever locked. Nothing an outsider does can take an account away from the person who owns it, so there is nothing for an administrator to unlock. Someone who is throttled has two ways through:
- refused from their address (
429): wait for the window (Within) to pass, then sign in; - asked for a picture code on their account: copy the code beside the password, and sign in at once.
Many addresses, one account
Past Failed sign-ins on one account, the sign-in page for that name asks for the same picture code as the registration form, with the name already filled in:
- without the right code, no password is even checked, and the page says the code is missing rather than "wrong password" - someone who typed the right one must not be told it was wrong;
- the code is spent whatever the answer, and every page carries a fresh one;
- the right password and the right code sign in, and clear the counter.
Three seconds for a person, the whole economy of a script - and the account stays open to its owner throughout. Zero turns this counter off.
An unknown name gets the same treatment: the same counter, the same code, the same sentences. Doing otherwise would answer the one question the page refuses to answer everywhere else - does this account exist.
The owner is told. When an account crosses the threshold and SMTP is configured, its owner gets one mail - how many failures in the window, from how many addresses, and to change the password if it was not them. One per window, however long the hammering lasts, and none for a name that does not exist, a disabled account or an address a self-registered account never confirmed. The mail leaves after the answer, never before it: a refusal that waited for the relay would take measurably longer on a real account than on an invented one. The relay screen can send a sample of it (Failed sign-ins).
Which address is counted
The address is the end of the connection the gateway accepted, unless that end is a proxy the gateway trusts: then it is what the proxy wrote in X-Forwarded-For. A header written by anybody else is ignored. Which proxies are trusted is set on Infra > Domains & TLS: see Behind a proxy or a load balancer. The security trail keeps both, "203.0.113.5 via 10.42.0.15".
An unknown username, a wrong password and a disabled account all answer the same sentence, and cost the same time - an unknown username still gets a hash comparison against a dummy, so the response time tells nothing apart. An account outside its access window is the one exception: to someone who typed the correct password, the page names the date, because without it every expiry becomes a support call to ask the one thing the page could have said.
Letting people create their own account
Self-registration ships closed. When it is open, the gateway serves /register: a username, an address, a password checked against the policy above, and a picture code to copy.
Four things must all hold for that page to exist at all:
- the local authority is enabled;
- self-registration is allowed for it - either Allowed on the authority itself, or Inherited from the application with the switch at the top of Infra > Authentication on;
- a mail relay is configured in Infra > Mail relay, because the address has to be confirmed;
- it is the data plane. The administration port never serves a sign-up form.
To check it worked, open https://<data-plane>/login in a private window: a Create an account link is under the form, and it leads to /register. No link means one of the four is missing.
What a sign-up produces is deliberately useless: the account exists, it is unusable until the address is confirmed, and it reaches nothing until an administrator places it in a tenant and grants roles. The confirmation link is a one-shot token valid for 24 hours, 48 hours or 7 days - Confirmation links valid for, beside the self-registration switch. Someone who signs in before confirming gets the link sent again rather than an explanation.
A username or an address already taken lands on the same page as a successful sign-up, and nothing is created: the form does not tell a stranger who already has an account here. The picture code is on by default and can be turned off per authority; it is consumed whether the answer was right or wrong, so a second try means a new image.
The write endpoints nobody has signed in to yet carry throttles per client address: /register five tries per fifteen minutes, fixed; /forgot-password its own counter, Reset requests under the rate limits (five by default, within the sign-in window, and never off). The two no longer share one: a busy sign-up page used to throttle resets, and a flood of resets closed sign-up.
Changing one's address
The current password is asked first, where the account has one: a session alone, a borrowed laptop or a stolen cookie, must not be enough to move the place a reset lands.
The same goes for changing the password from the profile, and the two forms share one counter: five wrong current passwords in a row and both refuse for fifteen minutes, even the right one. The session stays signed in, and the sign-in itself is not affected.
The address is where a password reset lands, so it is a way into the account. When a mail relay is configured, changing it from the profile does not change it yet: a link goes to the new address, and the change is made when that link comes back - valid for the same lifetime as a sign-up's. The old address is told at once, which is the owner's alarm when it was not them. A session somebody else got hold of is therefore no longer enough to point the account's recovery at their own mailbox. Without a relay nothing could carry a confirmation, and the address changes at once, as before.
A link, or a code
The rule: a sign-up confirmation, a new address or a password reset mails a clickable link only when the public name the person used has a certificate placed on it, or is declared as served behind a proxy that terminates TLS. Otherwise the mail holds a six-digit code, typed on the page that asked for it. Both are set on Infra > Domains & TLS: see TLS and certificates.
In detail, the gateway vouches for the name in a link in one of two ways:
- the request reached its own TLS door, and a certificate placed on that door (Infra > Domains & TLS, on Console or Application) covers the name the browser asked for;
- or the name is one the operator declared on that door as reached through a proxy that terminates TLS - nginx, an ingress, a load balancer in front. The request then arrives in plain HTTP, and the link is still
https://.
The link then points at that name, so a reset asked on shop.example.com comes back to shop.example.com. See Behind a proxy that terminates TLS.
Anywhere else - plain HTTP, a proxy in front whose names nobody declared, a name no placed certificate carries - the mail holds a six-digit code and no link, and the page that asked waits for it. The code is the e-mail sign-in's: valid ten minutes, and only in the browser that asked. A new address is confirmed by the code in the session that asked for the change.
A forgotten password
/forgot-password exists as soon as a mail relay is configured and local passwords are accepted; it does not wait for self-registration to be open. The sign-in page offers it under the sign-in button, out of the way of Tab between the username and the password. The outcome page is the same whether the address is known or not. An account born at an authority (OIDC, LDAP, GitHub) has no local password and is sent no link: one would open a second door the authority knows nothing about.
The link is valid for one hour and is spent on use (a code, ten minutes). The new password is checked against the policy, including the no-reuse rule, and the change destroys every live session of that account on every instance - whoever held one, including an intruder, signs in again or is out. The owner is told by e-mail that their password changed.
It also closes the other doors the old password could have opened: the account's API tokens are revoked and its trusted browsers forgotten. A reset is often the answer to "somebody else had my password", and that somebody may have minted a token with it.