Password Reset
Users reset a forgotten password by email; administrators reset it from the Users list, or from the command line when no one can sign in.
- Self-service
- Needs SMTP and the public address
- Reset link
- Valid for 30 minutes
- Administrator
- Users → Reset password
- Break-glass
- admin-cli
MaestroHub provides three ways to reset a user's password: a self-service flow by email, an administrator reset from the Users list, and a break-glass CLI method for when no administrator can sign in.
Administrator Reset from the Users List
An administrator holding the user:reset_password permission (Identity Administrator, Security Administrator, System Administrator) sets a new password for a user from Identity & Access → Users & Roles → Users: the user's row menu → Reset password, or the Password row of their edit form. It works whether or not email is configured. The user's sign-ins end: any session they have open expires within the access-token lifetime (15 minutes by default); their personal access tokens keep working. See Resetting a user's password for who sees the action and what it records.
Self-Service Password Reset
When email and the platform's public address are set, users can reset their own passwords through the login page.
Prerequisites
Two things must be set for self-service password reset to work:
- Email (SMTP), under Admin > Configure > Email. Without it, the Forgot your password? page says email isn't set up and asks the person to contact an administrator.
- The public address, the address people open MaestroHub at, such as
https://hub.example.com. The reset link in the email points there. Without it, no reset link is sent, and the Forgot your password? page says password reset by email isn't set up on this server.
The public address
Every link MaestroHub emails is built from the public address, and never from the request that asked for the email. The request belongs to whoever sends it, and the email reaches someone else, so nothing in it decides where the link points.
Where it is set:
- At first-admin setup. The setup form proposes the address your browser has open, with its sub-path if MaestroHub is published under one. Keep it, or type the address people use if it differs (for example, when you set up over a local address and people use a DNS name).
- Later, under Admin > Configure > Email > Public address, by a System Administrator (the
platform_address:managepermission, which only a platform role can hold: it decides where reset links are delivered, so give it only to people you would trust with every account). An installation that has none, such as one upgraded from 2.6, shows administrators a prompt at the top of every page: Use this address stores the address your browser has open, or Use another address lets you type one. Every change is recorded in the audit trail aspublic_address.updated. - In the server's configuration, with
modules.auth.passwordResetURL: the full address of the reset page, such ashttps://hub.example.com/reset-password(Liteconfig.yaml, or theMAESTROHUB_MODULES_AUTH_PASSWORDRESETURLvariable;AUTH_PASSWORDRESETURLon the per-service auth pod). When it is set, it decides: the Email page shows it read-only, and the address cannot be changed in the app until it is removed from the configuration. If an address was also stored in the app and they differ, MaestroHub says so once at start (naming both and the one in use) and in the auth module's health (/api/v1/auth/health, componentpublic-address). The health answer is public, so it says which setting decides and what is wrong, never the address itself; the Email page card shows the address.
With neither set, MaestroHub logs a warning once at start (No public address is set, so no emailed links are sent) and the auth health says the same until an administrator sets one.
The address is stored once for the whole installation, so every replica of a multi-replica deployment mails the same link.
How It Works
- User clicks Forgot your password? on the login page
- User enters their email address and submits the form
- System generates a secure reset token (valid for 30 minutes)
- Email is sent with a password reset link
- User clicks the link and enters a new password
- Password is updated and user can sign in
Accounts that sign in with single sign-on
An account created by an identity provider (OIDC, SAML or LDAP) has no MaestroHub password, and self-service cannot create one. If its user asks for a reset, no reset link is sent. Instead, they get an email saying the account signs in with single sign-on, and that they should reset their password with their identity provider. The page shows the same message as for any other address.
To give such an account a MaestroHub password, an administrator sets one with Reset password on the Users list (see Administrator Reset from the Users List), through the admin API (POST /api/v1/admin/users/{id}/reset-password) or with the admin CLI. From then on, the user can change it like any other password. A local account that was later linked to an identity provider keeps its password and every reset option.
Security Features
- Token expiration: Reset tokens expire after 30 minutes
- Single use: Each token can only be used once
- Email enumeration prevention: The system returns the same success message whether or not the email exists, preventing attackers from discovering valid accounts
- Password validation: New passwords must meet the configured password requirements
Break-Glass Password Reset
When no administrator can sign in to reset a password from the Users list (for example, the only administrator has lost theirs), reset it directly with the Admin CLI tool. This requires server access.
Prerequisites
- Direct access to the server running MaestroHub
- The
admin-clitool, which ships in the release archive and the Docker image
Where the CLI finds the users
The CLI reads the users from the auth store (auth.db with the default SQLite engine). You don't name the file: tell the CLI about the installation and it finds the store the same way MaestroHub does.
--config <file>: theconfig.yamlyou start MaestroHub with.--data-dir <dir>: MaestroHub's data directory (storage.dataDir).
MaestroHub's data directory defaults to ./data, relative to the directory the server runs in, not to your home directory. Without either flag, the CLI uses ./data relative to the directory you run it in, so run it from the server's working directory or pass --data-dir. In Docker, run it inside the container, where the defaults match. See Where the CLI finds the stores.
To name the store yourself, pass -d / --database with its path or connection URL. It is optional.
Command Syntax
admin-cli [--config <config.yaml> | --data-dir <dir>] user reset-password -e <email> [-p <password>]
Options
| Flag | Description |
|---|---|
-e, --email | User's email address (required) |
-p, --password | New password (optional, defaults to TempPassword2024!) |
--config | MaestroHub's config.yaml (optional) |
--data-dir | MaestroHub's data directory (optional) |
-d, --database | Path or URL of the auth store, instead of --config / --data-dir (optional) |
-f, --force | Skip the confirmation prompt |
Examples
Reset password with default temporary password, for a binary install whose data directory is ~/maestrohub/data:
admin-cli --data-dir ~/maestrohub/data user reset-password -e user@example.com
Reset password with a custom password, using the server's configuration file:
admin-cli --config /etc/maestrohub/config.yaml user reset-password -e user@example.com -p 'MySecurePassword123!'
Stop MaestroHub first when its stores are SQLite (the default): while it runs it keeps them to itself, and the CLI says so and stops (see Stop MaestroHub before using a SQLite store). In Docker Compose:
docker compose stop maestrohub
docker compose run --rm --no-deps -it --user maestrohub --entrypoint admin-cli maestrohub user reset-password -e user@example.com
docker compose start maestrohub
With storage.engine: postgres, run it in the running container instead: docker exec -it --user maestrohub <container> admin-cli user reset-password -e user@example.com.
Post-Reset Actions
After using break-glass reset:
- Communicate the temporary password to the user through a secure channel
- Instruct the user to change their password immediately after signing in
- Document the reset action for audit purposes
Password Requirements
New passwords must meet the following criteria:
| Requirement | Default |
|---|---|
| Minimum length | 8 characters |
| Uppercase letter | Required |
| Lowercase letter | Required |
| Number | Required |
| Special character | Optional |
Users can view the current password requirements by clicking the info icon on the password field during reset.
Troubleshooting
Users don't get reset emails
Check, in this order:
- Email is set up and active: Admin > Configure > Email. The Admin Overview shows Email is set up but can't send when a saved configuration cannot be loaded.
- The public address is set: the Public address card on the same page, or the auth health (
/api/v1/auth/health, componentpublic-address). With none, no reset email is sent at all, and the server logs Password reset not sent: no public address is set at INFO for each request. - The link points where people can open it: the card shows the address (the health says only whether one is set). A start-up warning says when its sub-path differs from
http.basePath, or whenmodules.auth.passwordResetURLin the configuration overrides the address stored in the app. - The account can reset its password: an account that signs in with single sign-on gets a notice instead of a link (see Accounts that sign in with single sign-on); an inactive account gets nothing.
The forgot-password page answers the same for every address, whether or not a mail was sent, so it cannot tell you which of these applies: the logs and the health do.
"Password reset by email isn't set up on this server"
The server has no public address, so it has nothing to put in the reset link. A System Administrator sets it under Admin > Configure > Email > Public address, or in the prompt shown after signing in (see The public address). Until then, an administrator can reset the password from the Users list.
"Email service is not available"
This message appears when email is not configured, or when an email configuration is saved but cannot be loaded (the Admin Overview then shows Email is set up but can't send). Ask an administrator to reset the password from the Users list, or configure email services in the platform settings. If no administrator can sign in, use the break-glass CLI method.
"Invalid or expired token"
Reset tokens expire after 30 minutes. Request a new password reset email and complete the process promptly.
An account that signs in with single sign-on also sees this message when it opens a reset link sent before the upgrade: such links no longer set a password. See Accounts that sign in with single sign-on.
"No user found with email"
The specified email address does not exist in the system. Verify the email address is correct. Note: this error only appears in the CLI; the web interface intentionally shows a generic message to prevent email enumeration.
User cannot sign in after reset
Verify that:
- The user account is in Active status (not Inactive or Deleted)
- The password meets all requirements
- The user is entering the correct email address