1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00
ansible-podman-collections/plugins
Finn Krein-Schuch 42fad01b2e Use usedforsecurity for hashlib.sha256 only in python version >=3.9 (#904)
The usedforsecurity keyword argument of the hashlib functions was
introduced in python 3.9. To achieve compatibility with versions below
that, we only use it once it is available.

The usedforsecurity argument forces use of secure hash functions in
specially compiled versions of python. In this case it would force to
upgrade sha256 to a different hash function should sha256 be deemeed
insecure in the future. The podman hash we are comparing against is
(currently) always sha256.

As sha256 is still considered secure, removing this option for older
python versions should be acceptable.

Signed-off-by: johnsonlien <johnsonlien95@gmail.com>
2025-04-28 22:21:48 -07:00
..
become Change yes/no to true/false in the modules (#561) 2023-03-08 23:28:52 +02:00
connection fix for buildah improper remote target (#540) 2023-01-18 23:55:36 +02:00
module_utils Remove docker protocol when inspecting image (#901) 2025-04-28 22:21:48 -07:00
modules Use usedforsecurity for hashlib.sha256 only in python version >=3.9 (#904) 2025-04-28 22:21:48 -07:00