Skip to content

Password Policy

Password complexity, expiration, and reset rules enforced through Keycloak.

4 min read Updated SS

Introduction#

This document is the canonical reference for the HEAL password policy. It defines the password complexity rules that apply to HEAL accounts and shows how those rules — along with password expiration — are configured and enforced in Keycloak, the identity provider that HEAL uses for authentication.

It also covers how an administrator resets a user's password. End-user self-service password reset is documented separately (see Reset a Forgotten Password).

Note: All password settings and authentication for HEAL are handled by Keycloak. HEAL does not store or validate passwords itself.

Keycloak is an open-source identity and access management platform. In addition to password authentication, Keycloak provides Single Sign-On (SSO), multi-factor authentication (MFA/OTP), Role-Based Access Control (RBAC), and directory integration (LDAP/Active Directory). These capabilities are configured in Keycloak rather than in HEAL; see the Keycloak Administration Console guide for administrative tasks, and Deploying HEAL with AD Support (sign-in required) for LDAP/Active Directory integration during installation.

HEAL Dashboards#

The password policy described here applies to the following HEAL dashboards, which share a common Keycloak-backed login.

  • New HEAL UI (includes the new Control Center)
  • Classic HEAL UI
  • Classic Control Center
  • HEAL Grafana
    URL: https://<HEAL_IP>:<HEAL_PORT>/grafana/

For the addresses of the New HEAL UI, the Classic HEAL UI and the Classic Control Center, see Access the HEAL UI.

Note: Because these dashboards authenticate against the same Keycloak realm, the credentials are the same for all of them.

Password Complexity#

Ensure the following criteria are met when creating a password:

  • The password cannot be one you have used the last three times.
  • The minimum length of the password must be eight characters.
  • There must be at least one uppercase character.
  • There must be at least one special character.
  • There must be at least one digit.

These rules are enforced by the Keycloak password policy configured in the next section. When a policy such as Expire Password is enabled, users are required to change their password once the configured age is reached.

Configuring the Password Policy in Keycloak#

Password rules are enforced through the Keycloak password policy for the HEAL realm.

1. Log in to the Keycloak Administration Console.

Keycloak login page with HEAL Welcome screen and sign-in form

2. In the left navigation, open Authentication and select the Policies tab.

Keycloak Authentication Policies page showing No password policies

3. Open the Password policy tab, then use Add policy to add and set values for the following, so they match the complexity rules above:

  • Not Recently Used
  • Minimum Length
  • Uppercase Characters
  • Special Characters
  • Digits
  • Expire Password
Keycloak Password policy configuration grid with Not Recently Used, Minimum Length, Uppercase Characters, Special Characters, Digits and Expire Password values

a. Depending on your hardening requirements, the following additional policies are also available and can be added:

  • Hashing Iterations
  • Password Blacklist
  • Regular Expression
  • Not Username
  • Not Email
  • Not Recently Used (In Days)
  • Not Contains Username
  • Lowercase Characters
  • Maximum Authentication Age
  • Hashing Algorithm
  • Maximum Length

After adding the required policies, click Save. The rules take effect the next time a user sets or changes their password.

Note: Account lockout on repeated failed logins (brute-force protection) and MFA/OTP are also provided by Keycloak and configured per realm. Enable and tune these in the Keycloak Administration Console for your environment; see the Keycloak Administration Console guide.

Reset Password (Administrator)#

An administrator resets a user's password in Keycloak as follows.

1. Log in to the Keycloak Administration Console.

HEAL login page with Welcome graphic, username and password fields, CAPTCHA, and Log In button

2. In the left navigation, select Users, then select the user (for example, Sample User).

Keycloak Users list showing usernames and email addresses

3. Open the Credentials tab and select Reset password.

Keycloak user Credentials tab showing the Reset password option

4. Enter the new password and confirm it. Leave the Temporary toggle off if the user should not be forced to change the password at next login, then click Save.

Keycloak Reset password dialog with Password, New password confirmation, Temporary toggle, and Save button

Note: The new password must satisfy the rules in the Password Complexity section above.

End-User Self-Service Reset#

End users who have forgotten their password can reset it themselves from the HEAL UI login page using the Forgot Password? link. For the full step-by-step walkthrough, see Reset a Forgotten Password.

Self-service reset relies on the Keycloak realm having the Forgot password login option enabled and SMTP/email configured. These are one-time administrator settings in the Keycloak Administration Console; see the Keycloak Administration Console guide.

Next — Configure realm-level identity settings (login options, email/SMTP, MFA) in the Keycloak Administration Console. For end-user self-service reset, see Reset a Forgotten Password. To limit concurrent or idle sessions, see Session Timeouts and Concurrent-Session Limits.