This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2312154 - password regex description failed to work for specific use case
Summary: password regex description failed to work for specific use case
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 17.1 (Wallaby)
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Owen McGonagle
QA Contact: Ashish Gupta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-13 10:26 UTC by parthee
Modified: 2025-01-06 09:48 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-01-06 09:47:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
PasswodValidationErrorScreenshot (29.19 KB, image/png)
2024-09-13 10:26 UTC, parthee
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 929842 0 None NEW Fix password_validator to accept regex expressions 2024-09-20 13:42:00 UTC
Red Hat Issue Tracker OSP-32823 0 None None None 2024-09-13 10:27:43 UTC
Red Hat Issue Tracker OSP-33323 0 None None None 2025-01-06 09:48:12 UTC
Red Hat Issue Tracker   OSPRH-12728 0 None None None 2025-01-06 09:47:56 UTC

Description parthee 2024-09-13 10:26:49 UTC
Created attachment 2046676 [details]
PasswodValidationErrorScreenshot

Description of problem:

Customer configured the parameter “change_password_upon_first_use = True” from keystone config so that the new users should be forced to change their password during their first time login in Horizon. At the same time they expect the regex and help_text defined below from the horizon config file should be considered.

Example configuration:

/var/lib/config-data/puppet-generated/horizon/etc/openstack-dashboard/local_settings:

HORIZON_CONFIG["password_validator"] = {
    "regex": '^.{8,30}$',
    "help_text": _("Password must be between 8 and 30 characters."),

Unfortunately the above configuration (password validation) only works and throw defined help_text message while we create new user and set password from the Horizon UI, but not during the user first time login and password change in horizon.

After setting the below parameter in keystone config, password validation (password_regex) works fine when users are forced to change their password for the first time.
However “password_regex_description” defined below will not reflect, instead we get the default message “Unable to update the user password.” (Attached Screenshot).

Example configuration:

/var/lib/config-data/puppet-generated/keystone/etc/keystone/keystone.conf

password_regex = '^.{8,30}$'
password_regex_description = Password must be between 8 and 30 characters.

We tried adding the regex description in single quote and double quotes too without any luck.

Version-Release number of selected component (if applicable):

RHOSP 17.1.1

How reproducible:

The issue is easily reproducible in the RHOSP 17.1.3 lab environment.

Actual results:

Currently the defined regex_description is not displayed when user attempt to change their password for the first time login via Horizon


Expected results:

When user login first time via Horizon and attempt to change password the regex_description should be displayed as defined if the password doesn’t meet the defined password_regex.


Note You need to log in before you can comment on or make changes to this bug.