Make some enhancements to strutils.mask_password to allow it to catch
more cases of passwords in strings. Test cases have been added to test
for these newly added situations.
The following is a listing of patterns that will be handled. The
keyword that mask_password uses (a list of four now) is represented by
<key> and the password is shown as <password>. Quotes (both single and
double) are represented as <quote>.
Reviewed: https:/ /review. openstack. org/114614 /git.openstack. org/cgit/ openstack/ oslo.utils/ commit/ ?id=e0425691d90 bce0bbe847a9ff4 9468ce0fab5486
Committed: https:/
Submitter: Jenkins
Branch: master
commit e0425691d90bce0 bbe847a9ff49468 ce0fab5486
Author: Davanum Srinivas <email address hidden>
Date: Fri Aug 15 13:53:57 2014 -0400
Make strutils. mask_password more secure
Make some enhancements to strutils. mask_password to allow it to catch
more cases of passwords in strings. Test cases have been added to test
for these newly added situations.
The following is a listing of patterns that will be handled. The
keyword that mask_password uses (a list of four now) is represented by
<key> and the password is shown as <password>. Quotes (both single and
double) are represented as <quote>.
--<key> <password> <password> <quote> <password> <quote>
--<key> <quote>
<key> = <password>
<key> = <quote>
All existing tests and patterns are still handled.
Originally submitted in If5ea2d91b1d87c 995f50d07a12818 79493bd7adb
Change-Id: Ifa9a753821484d efb5784b136470e 3a78ebed3e3
Partial-Bug: #1345233