Set password rules
Every realm checks a new password against a rule set. This page shows what the default set requires, how to add rules on top of it, and how to replace it with rules of your own. The same rules apply wherever a person sets a password: signup, an invitation, a password reset, and the account page.
How password rules work
Section titled “How password rules work”A realm names one rule set. Authwise ships the sets and checks every new password against the realm’s set plus any rules the realm adds.
| Rule set | What it requires | Choose it when |
|---|---|---|
| Authwise baseline | At least 12 characters. Not one of the 100,000 most common passwords. Not the person’s username, the name part of their email address, or a word of their display name. Any characters, including spaces, with no composition rule. | You name nothing. This is the default for every realm. |
| Authwise strict | The baseline, plus: at least 15 characters; not a password that has appeared in a known data breach, checked against the Have I Been Pwned range API; not one of the person’s last 5 passwords. | The password is the only factor, or a policy you follow asks for a breach check or history. Needs server 1.76 or later. |
| Custom | The minimum only: at least 8 characters, not a common password, and not the username. Your own rules are the policy. | You must match a policy the baseline doesn’t fit, or you’re moving a realm whose users can’t meet 12 characters yet. |
Rules you add to a realm are extras on top of its set. An extra can only tighten the set: with two minimum lengths, the larger wins, and every pattern or entropy rule is kept. A minimum of 10 beside the baseline has no effect; a minimum of 20 replaces 12.
The rule sets follow NIST SP 800-63B: length and a blocklist of known passwords matter, and composition rules (a digit, a symbol, an uppercase letter) don’t. Authwise therefore ships no composition rule. Add one as an extra only when a policy you must follow asks for it.
A set is a name, never a version. When Authwise strengthens a shipped set, every realm that names it follows. Only passwords set after the change are checked, so no existing password stops working.
Before you begin
Section titled “Before you begin”- Identity server 1.75 or later,
awctl0.32 or later, and Terraform provider 0.26 or later. On an earlier server every realm follows its own rules above an 8-character minimum, and there is no rule set to name. Authwise strict needs server 1.76 or later. - For Authwise strict, outbound HTTPS from the identity server to
api.pwnedpasswords.com. An install that blocks it refuses every new password on a strict realm and records a warning event each time. To route the check through your own proxy, add abreached_passwordrule whoseendpoint_namenames one of the tenant’s endpoint resources instead. - A tenant administrator seat, or a service account holding
tenant.admin. See Service accounts. - A realm. See Realms.
See the rule sets
Section titled “See the rule sets”In the console, open the realm, go to Configuration > Provisioning, and find the Password rules card. The Rule set list shows every set the server ships, and the rows below it show the rules of the chosen set.
With awctl, list the sets. Replace TENANT_ID with the tenant’s ID:
awctl identity password-rule-sets list --tenant-id TENANT_IDNAME SINCE DESCRIPTIONauthwise-baseline 2026-11-02 At least 12 characters, not one of th...authwise-strict 2026-11-03 The baseline, at least 15 characters,...custom 2026-11-02 The minimum; the realm's own rules ar...Add --json to see each set’s full description and its rules as the
sign-in pages receive them:
{ "description": "At least 12 characters, not one of the 100,000 most common passwords, and not your username, e-mail name or display name. Any characters, no composition rules.", "name": "authwise-baseline", "password_rules": [ { "description": "At least 12 characters", "parameters": { "min": 12 }, "type": "min_length" }, { "description": "Must not be a commonly used password", "parameters": { "server_only": true }, "type": "common_password" }, { "description": "Must not be or contain your username or name", "parameters": { "checks": [ "identifier", "display_name" ] }, "type": "not_identifier" } ], "since": "2026-11-02"}Add rules on top of the baseline
Section titled “Add rules on top of the baseline”Most realms keep the baseline and add nothing. When a policy asks for more, add the rule as an extra and leave the set as it is.
Console
Section titled “Console”- Open the realm and go to Configuration > Provisioning.
- In the Password rules card, leave Authwise baseline selected.
- Under the set’s rows, open Add rule and choose a type:
- Minimum length: a number above 12. A smaller number is saved but marked as having no effect.
- Maximum length: 64 to 256. The server always refuses more than 256 characters, so most realms need no maximum.
- Pattern: a regular expression the password must match, with the message the person sees when it doesn’t.
- Minimum entropy (bits): the server’s estimate of how hard the password is to guess.
- Click Save.
Two more rule types exist from server 1.76 and can be added with awctl
or Terraform until the console offers them: breached_password, with
on_unavailable set to refuse (the default) or allow for when the
breach service can’t be reached, and history, with count from 1 to
24. Both are checked when the password is submitted. The rows show the set’s rules first, then yours.
The realm’s own rules live in provisioning.password_validators in the
realm config. Write them with a config patch. Replace REALM_ID with the
realm’s ID:
awctl identity realms update REALM_ID --tenant-id TENANT_ID \ --config '{"provisioning":{"password_validators":[{"name":"length","type":"min_length","config":{"min":16}}]}}'--config writes the whole config, so include every other setting the
realm has. To see the result:
awctl identity realms describe REALM_ID --tenant-id TENANT_IDNAME DISPLAY_NAMEtenants/t-01/realms/r-g3798r2hdame Docs password rules
Provisioning: Password rules: authwise-baseline
Extra password rules: min_length (length) {"min":16}Terraform
Section titled “Terraform”resource "authwise_realm" "customers" { display_name = "Customers" config = provider::authwise::realm_config({ provisioning = { password_validators = [ { name = "length", type = "min_length", config = jsonencode({ min = 16 }) }, ] } })}Leave password_rule_set out to follow the baseline. A realm that never set
it plans no change after you upgrade the provider.
Take full control with a custom policy
Section titled “Take full control with a custom policy”Choose Custom when the baseline doesn’t fit. The realm then enforces the minimum plus your rules, and nothing else. A custom realm with no rules enforces the minimum alone, and the console says so.
Console
Section titled “Console”- Open the realm and go to Configuration > Provisioning.
- In the Password rules card, select Custom. The rows change to the minimum’s three rules.
- Add your rules with Add rule, then click Save.
awctl identity realms update REALM_ID --tenant-id TENANT_ID --password-rule-set customThe same flag names any shipped set, so --password-rule-set authwise-strict
moves a realm to the strict set.
To return a realm to the baseline, pass an empty name:
awctl identity realms update REALM_ID --tenant-id TENANT_ID --password-rule-set ""--password-rule-set changes the set and leaves the realm’s own rules in
place. It doesn’t combine with --config in the same call.
Terraform
Section titled “Terraform”resource "authwise_realm" "legacy" { display_name = "Legacy" config = provider::authwise::realm_config({ provisioning = { password_rule_set = "custom" password_validators = [ { name = "length", type = "min_length", config = jsonencode({ min = 10 }) }, { name = "digit" type = "regexp" config = jsonencode({ pattern = "[0-9]", no_match_message = "Must contain a digit" }) }, ] } })}After the change, describe lists the realm’s rules under Custom
password rules instead of Extra password rules.
The server refuses a set name it doesn’t ship, and the console, awctl, and
Terraform all show its message:
error: rpc error: code = InvalidArgument desc = provisioning policy sets password_rule_set "nist" is not a set this build ships (authwise-baseline, authwise-strict, custom); omit it for authwise-baseline. Fix them in the request.What’s next
Section titled “What’s next”- Realms: sign-in methods, second factors, and how accounts come to exist.
- Sign in with a magic link: a realm with no passwords at all.