OpenStack versioned objects library
Go to file
Ade Lee 9f0f31eb8b 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, md5 is computed as one of the object hashes for the
purposes of object versioning.

Change-Id: Idf36897d690a20d23123950618643d0b9e085f6c
Depends-On: https://review.opendev.org/#/c/760160
2020-10-29 13:30:07 -04:00
doc Adding pre-commit 2020-09-22 12:29:04 +02:00
oslo_versionedobjects Replace md5 with oslo version 2020-10-29 13:30:07 -04:00
releasenotes Replace md5 with oslo version 2020-10-29 13:30:07 -04:00
.coveragerc Fix coverage configuration and execution 2015-10-01 19:54:59 +00:00
.gitignore gitignore: Ignore reno artefacts 2020-01-23 11:21:25 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:45:17 +00:00
.mailmap apply oslo-cookiecutter template 2015-02-02 15:08:43 -05:00
.pre-commit-config.yaml Adding pre-commit 2020-09-22 12:29:04 +02:00
.stestr.conf Switch to stestr 2018-07-04 08:12:19 +07:00
.zuul.yaml Add Python3 wallaby unit tests 2020-09-11 21:02:14 +00:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:35:22 +02:00
HACKING.rst Replace git.openstack.org URLs with opendev.org URLs 2019-05-27 03:10:28 +00:00
LICENSE apply oslo-cookiecutter template 2015-02-02 15:08:43 -05:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-05-27 03:10:28 +00:00
bindep.txt [ussuri][goal] Drop python 2.7 support and testing 2020-02-07 07:56:16 -08:00
lower-constraints.txt Replace md5 with oslo version 2020-10-29 13:30:07 -04:00
requirements.txt Replace md5 with oslo version 2020-10-29 13:30:07 -04:00
setup.cfg Remove translation sections from setup.cfg 2020-06-04 08:41:23 +08:00
setup.py Merge "remove outdated header" 2020-02-13 11:42:23 +00:00
test-requirements.txt Adding pre-commit 2020-09-22 12:29:04 +02:00
tox.ini Adding pre-commit 2020-09-22 12:29:04 +02:00

README.rst

Team and repository tags

image

oslo.versionedobjects

Latest Version

Downloads

The oslo.versionedobjects library provides a generic versioned object model that is RPC-friendly, with inbuilt serialization, field typing, and remotable method calls. It can be used to define a data model within a project independent of external APIs or database schema for the purposes of providing upgrade compatibility across distributed services.