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/113407 /git.openstack. org/cgit/ openstack/ oslo-incubator/ commit/ ?id=66142c3471f ec8a4903395514f 6bf55e3c54344f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 66142c3471fec8a 4903395514f6bf5 5e3c54344f
Author: Amrith Kumar <email address hidden>
Date: Mon Aug 11 16:29:31 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.
Change-Id: If5ea2d91b1d87c 995f50d07a12818 79493bd7adb
Partial-Bug: #1345233