Skip to content

Password Recovery

Choose the option that matches your situation. These steps are for local Warden accounts. For an SSO account, reset the password with your identity provider.

  1. Ask that administrator to open Settings → Users.
  2. Open the menu beside your account and select Reset Password.
  3. Set a new password and sign in again.

Resetting a password revokes that user’s existing sessions.

Use Warden’s reset-password command. It connects directly to the database and does not start an HTTP server.

  1. Run the command where the Warden binary and database are available.
  2. Use the same DB_TYPE, DB_PATH or DB_URL as your installation.
  3. Replace admin below with the local account’s username.

Docker: replace YOUR_CONTAINER with your Warden container name.

Terminal window
docker exec -it YOUR_CONTAINER /app/warden reset-password admin

Kubernetes: replace the namespace and deployment name if yours differ.

Terminal window
kubectl -n warden exec -it deploy/warden -- /app/warden reset-password admin

Standalone binary: run from the directory containing the binary.

Terminal window
./warden reset-password admin

Enter the new password twice when prompted. Input is hidden. Use at least eight characters, one number and one special character. Do not put the password directly in a shell command, where it can be saved in history.

Sign in with the new password. Existing sessions for that account are revoked. If the command cannot find the user or database, check that it uses the same database configuration as the server before trying again.