Docs Version v0.2
Docs menu

The sign-in experience

Password policy

Changed 7 min readv0.2

On this page

Introduction

A password policy is the set of checks a new password must pass. If sign-up, recovery and administration each checked passwords their own way, one of them could end up weaker than the others, and an attacker would use that one.

Signari has one gate. Sign-up, recovery, the Admin API and the command line all call the same function. It checks a password's length, and how hard it would be to guess. When you turn them on, it also refuses reused passwords and passwords from known breaches.

You set the policy with the SIGNARI_PASSWORD_ environment variables named on this page. Every environment variable lists each one with its default.

What is checked

Every new password goes through these checks:

LengthA floor, counted in characters, not bytes
ContextRefuses a password containing the person's own username
RepetitionRefuses one character repeated
ReuseRefuses the last N passwords
BreachRefuses passwords in a known breach corpus

A "breach corpus" is a collection of passwords that have leaked in past breaches.

Guess strength

SIGNARI_PASSWORD_MIN_SCORE refuses passwords that would fall early to somebody who knows how people build them. Its default is 3, on a scale of 0–4.

Password123! is twelve characters, and satisfies the usual composition rules. qwertyuiop12 is twelve characters. aaaaaaaaaaaa is twelve characters. A length check passes all three, and all three are among an attacker's first thousand guesses.

The check detects:

  • keyboard walks;
  • sequences;
  • repeated characters and repeated blocks;
  • dates;
  • letters swapped for look-alike digits or symbols, called "leetspeak";
  • a password built from the person's own name or address;
  • a common password with digits or symbols bolted on.

The score is based on a guess count, which is what an attacker spends.

The default is 3 because, at a floor of 2, Password123!, Summer2026!, admin123 and even the four-character gT4v all pass: they score exactly 2.

The check is on by default, unlike the breach check. It makes no network call and leaks nothing, so an administrator does not need to opt in.

It runs before the network check. So the cheap structural test happens first, and the corpus is consulted only for passwords that already passed it.

The check includes a word list of a few hundred entries. Without one, p@ssw0rd would score 4/4, because no structural pattern matches an English word, and the breach corpus is off by default. Structure detection and a small list catch what a corpus cannot: a password built from a cheap pattern that has never appeared in a leak.

What is not checked

Composition rules, such as "one uppercase, one digit, one symbol". The National Institute of Standards and Technology (NIST) covers them in NIST SP 800-63B-4 §3.1.1.2. It says verifiers SHALL NOT impose them, where revision 3 said SHOULD NOT. They push people towards Password1!, which is in every breach corpus, and away from long passphrases, which are not.

Length and a breach check do the work those rules are meant to do. Composition rules do not catch context: alice-was-here-2026 satisfies many of them, and anyone who knows Alice can guess it.

Periodic expiry, such as "change your password every 90 days". The same section says verifiers SHALL NOT require it. A password that expires on a schedule becomes the previous one with a digit changed. Instead, a password is changed when there is evidence it is compromised. With the breach check on, a password found in a breach corpus at sign-in is flagged. The person is asked to change it before the session is issued.

Signari has no composition check and no expiry column.

This was recorded as a decision in October 2026. If a procurement checklist asks for either, the standard forbids what it asks for.

The breach check

The password never leaves the process. Signari uses the range API of Have I Been Pwned, a public breach corpus. That API is a "k-anonymity" construction: the service learns only something that many passwords share.

Signari hashes the candidate password with SHA-1, and sends the first five hex characters of the hash. It receives about 800 suffixes back, and the comparison happens locally. The service learns a 20-bit prefix shared by roughly one password in a million. It never sees the password, the hash, or which suffix matched.

Signari also sends Add-Padding: true. Then anyone watching the connection cannot use the response size to narrow down which prefix was asked about.

You can also use an offline corpus. A check that needs an outbound call puts one on the path of every password change. Some deployments cannot make one, such as air-gapped networks and regulated environments. Others review every outbound call from the identity provider (IdP).

Point SIGNARI_PASSWORD_BREACH_LIST at a file of SHA-1 hashes, and the check runs with no network at all. You can use both sources together. The local one is consulted first, because it costs nothing and cannot fail.

When the corpus cannot be reached, the result is ErrUnavailable, which is distinct from "not breached". By default, the password is allowed through, and the engine logs at WARN level. A third party's outage should not stop a company changing passwords. SIGNARI_PASSWORD_BREACH_REQUIRED=1 refuses instead.

Padding entries are not matches. The API returns decoy suffixes with a count of 0, so that responses look alike. Treating one as a match would refuse a password that is not in the corpus.

Re-checking a password at sign-in

A password checked only when it is chosen is never checked again, but corpora grow. A password that was clean in January and turned up in a March leak would still be treated as clean in December.

Sign-in is the only moment the plaintext exists to check again. SIGNARI_PASSWORD_BREACH_RECHECK_DAYS=30 re-consults the corpus at most once per month per credential. It does so after the password has been verified. Checking before verification would turn the sign-in form into an "oracle": a way for anyone to ask whether an arbitrary string is breached.

A hit flags the password rather than refusing the sign-in. The person has a password that works, and the aim is that they leave with a different one. The next sign-in routes to a change-password page before any session exists.

Signari records the time of each re-check, its "stamp", whatever the verdict. That includes when the corpus was unreachable. Otherwise an outage would cause a retry on every sign-in by every person, and slow Signari down with it.

Requiring a change

A flag on the credential, must_change, asks the person to change their password. Three things set it:

Re-checkingThe password turned up in a corpus after it was chosen
MigrationA password brought from the old IdP is in a corpus
An administrator{"require_password_change": true} on PATCH /admin/users/{userID}

The gate lives in completeSignIn, beside the prompt check, for the same reason that one does. There are eight ways to sign in, and a gate written at each of them could be left out of one.

A reason is always shown. An unexplained demand to change a password looks like phishing, and people should not learn to follow such demands.

Setting a password clears the flag, the throttle counters and the stamp. They belonged to the password being replaced. A stale flag would ask a person who had changed their password as instructed to change it again, with no way out.

Reuse

SIGNARI_PASSWORD_HISTORY=3 keeps the last three Argon2id hashes, and refuses a candidate matching any of them.

The outgoing hash is recorded before it is replaced. Recording it afterwards would file the new password as a previous one, and refuse it at the next change. That bug would appear only on the second reset.

Hashes beyond the configured depth are trimmed, so Signari keeps no more old password material than the reuse check needs.

Where the check runs in the recovery flow

The check runs after the reset token is validated, not before. The reuse and context checks need to know whose password this is.

So "too short" is reported after the token is checked. A message about password length must never tell somebody holding a stale link that the link was otherwise valid.