Skip to content

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.

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 setWhat it requiresChoose it when
Authwise baselineAt 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 strictThe 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.
CustomThe 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.

  • Identity server 1.75 or later, awctl 0.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 a breached_password rule whose endpoint_name names 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.

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:

Terminal window
awctl identity password-rule-sets list --tenant-id TENANT_ID
NAME SINCE DESCRIPTION
authwise-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"
}

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.

  1. Open the realm and go to Configuration > Provisioning.
  2. In the Password rules card, leave Authwise baseline selected.
  3. 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.
  4. 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:

Terminal window
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:

Terminal window
awctl identity realms describe REALM_ID --tenant-id TENANT_ID
NAME DISPLAY_NAME
tenants/t-01/realms/r-g3798r2hdame Docs password rules
Provisioning:
Password rules: authwise-baseline
Extra password rules:
min_length (length) {"min":16}
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.

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.

  1. Open the realm and go to Configuration > Provisioning.
  2. In the Password rules card, select Custom. The rows change to the minimum’s three rules.
  3. Add your rules with Add rule, then click Save.
Terminal window
awctl identity realms update REALM_ID --tenant-id TENANT_ID --password-rule-set custom

The 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:

Terminal window
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.

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.