Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #7242/c3fd14e1 backport][stable-7] Ignore similar chars in random_string #7292

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Sep 20, 2023

This is a backport of PR #7242 as merged into main (c3fd14e).

SUMMARY

Added the option to ignore certain characters.
With the current parameters it is not possible to avoid similar character while also improve readability for passwords. If the parameter “override_all” is used the parameters “min_lower”, “min_upper”, “min_numeric” and “min_special” are ignored. This makes it hard to both achieve readability for passwords and adhere to configured password policies.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/lookup/random_string.py

ADDITIONAL INFORMATION
lookup('random_string', ignore_similar_chars=True, similar_chars='iIlLoO01')

* Added the option to ignore certain characters

This can be usefull for eliminating confusion.

* Removed the loop and added each char_sets

The variable name is not known inside the loop so updating it does not work.

* Changelog fragment file

* Forgot the file extention for the fragment yaml file

* Update plugins/lookup/random_string.py

Co-authored-by: Felix Fontein <[email protected]>

* Update plugins/lookup/random_string.py

Co-authored-by: Felix Fontein <[email protected]>

* Update plugins/lookup/random_string.py

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit c3fd14e)
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport feature This issue/PR relates to a feature request lookup lookup plugin new_contributor Help guide this first time contributor plugins plugin (any type) labels Sep 20, 2023
@felixfontein felixfontein merged commit 61e82c5 into stable-7 Sep 20, 2023
143 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-7/c3fd14e18f7ced21df42abc4e9f310f070ad7a55/pr-7242 branch September 20, 2023 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request lookup lookup plugin new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants