]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
qualify hashlib.md5() with usedforsecurity=False
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Sep 2023 16:24:14 +0000 (12:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Sep 2023 19:22:36 +0000 (15:22 -0400)
commit827e5121e210fc05f878a3f50ec6df9028fecdfa
tree5167c07cc8c542b84ce257ab0584dfb0d2e16cbd
parent8aa575366cc671ba8b28f2603cc3ca3b675f868f
qualify hashlib.md5() with usedforsecurity=False

Qualified the use of ``hashlib.md5()`` within the DDL compiler, which is
used to generate deterministic four-character suffixes for long index and
constraint names in DDL statements, to include the Python 3.9+
``usedforsecurity=False`` parameter so that Python interpreters built for
restricted environments such as FIPS do not consider this call to be
related to security concerns.

Fixes: #10342
Change-Id: I3af0d3de3d140663c70921ab1ed4b66ad9512ec4
doc/build/changelog/unreleased_20/10342.rst [new file with mode: 0644]
lib/sqlalchemy/util/compat.py
lib/sqlalchemy/util/langhelpers.py