add user option to ignore password_regex

Bug #1827435 reported by Pavlo Shchelokovskyy
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
In Progress
Medium
Vishakha Agarwal

Bug Description

Heat's bug: https://storyboard.openstack.org/#!/story/2005210

Heat creates service users in its dedicated domain on the fly. These are crucial in situations that require deferred authentications, for example autoscaling.

There's a password_regex option in [security_compliance] section in Keystone that enforces passwords to pass a certain regex, thus enforcing their strength.

However Heat has no way to generate random passwords for its users that will certainly pass any such regex set. In fact the problem of generating a random string from arbitrary regex is quite a non trivial one and for now solutions/libraries exist only when regex uses only a certain subset of a full regex spec.

When generating passwords for its domain users Heat creates quite a strong password (32 alphanum+special symbols), but still it may fail a custom regex set in Keystone.

It is proposed to add another user option (ignore_password_regex) similar to those already existing in Keystone to override the regex enforcement of the password for given user.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.opendev.org/657039

Changed in keystone:
assignee: nobody → Pavlo Shchelokovskyy (pshchelo)
status: New → In Progress
Colleen Murphy (krinkle)
Changed in keystone:
importance: Undecided → Medium
Revision history for this message
Vishakha Agarwal (vishakha.agarwal) wrote :

Hi. Is anyone working over this?

Revision history for this message
Pavlo Shchelokovskyy (pshchelo) wrote :

Hi Vishakha, I've got really distracted as you may see bu the dates :-/

If you have time, please take over (initial patch is on review). I can't commit to when I'll be able to pick it up myself.

Changed in keystone:
assignee: Pavlo Shchelokovskyy (pshchelo) → nobody
Revision history for this message
Vishakha Agarwal (vishakha.agarwal) wrote :

Thanks Pavlo

Changed in keystone:
assignee: nobody → Vishakha Agarwal (vishakha.agarwal)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.