tempest/tempest/lib/common
Ade Lee 56860ccae7 Replace md5 with oslo version
md5 is not an approved algorithm in FIPS mode, and trying to
instantiate a hashlib.md5() will fail when the system is running in
FIPS mode.

md5 is allowed when in a non-security context.  There is a plan to
add a keyword parameter (usedforsecurity) to hashlib.md5() to annotate
whether or not the instance is being used in a security context.

In the case where it is not, the instantiation of md5 will be allowed.
See https://bugs.python.org/issue9216 for more details.

Some downstream python versions already support this parameter.  To
support these versions, a new encapsulation of md5() has been added to
oslo_utils.  See https://review.opendev.org/#/c/750031/

This patch is to replace the instances of hashlib.md5() with this new
encapsulation, adding an annotation indicating whether the usage is
a security context or not.

In this case, all hashlib.md5() invocations are to run tempest tests
so this is not a security context.  With this patch, we can run tempest
tests from a FIPS enabled machine.

Change-Id: Ib301466bb0a1996997c63599918fa96059a927bd
2021-02-25 16:14:08 -05:00
..
utils Make random_bytes() enforce sane size limits 2021-01-14 12:43:29 -08:00
__init__.py Migrate tempest-lib code into new lib dir 2016-02-23 14:15:04 -05:00
api_microversion_fixture.py Add APIMicroversionFixture to library interface 2019-04-16 02:01:12 +00:00
api_version_request.py Migrated microversion testing framework to tempest/lib 2016-03-11 08:17:15 +00:00
api_version_utils.py compute: Add volume and placement microversion support to BaseV2ComputeTest 2020-02-07 11:11:30 +00:00
cred_client.py Remove usage of six 2021-02-23 00:38:55 +00:00
cred_provider.py Remove usage of six 2021-02-23 00:38:55 +00:00
dynamic_creds.py [part1] Remove six 2021-02-24 12:45:22 +00:00
fixed_network.py docs: Fix incorrect docstrings in reStructuredText format 2018-11-21 19:06:43 -06:00
http.py Allow to create a rest_client not following redirects 2018-10-11 08:07:38 +00:00
jsonschema_validator.py [part1] Remove six 2021-02-24 12:45:22 +00:00
preprov_creds.py Replace md5 with oslo version 2021-02-25 16:14:08 -05:00
profiler.py Add profiler support into Tempest 2019-02-16 08:10:28 +00:00
rest_client.py Merge "[part1] Remove six" 2021-02-25 17:09:59 +00:00
ssh.py Remove usage of six 2021-02-20 00:44:49 +00:00
thread.py Remove six.PY3/six.PY2 2020-11-10 09:54:35 +00:00
validation_resources.py Make validation_resources a stable interface 2017-09-12 15:02:15 -06:00