Hi,
with barman 2.12.1-1.rhel8 command: barman-wal-archive we ran into a problem with usage of python3.6 hashlib.md5().
Because of a system/kernel enabled FIPS mode:
[postgres@myserver ~]$ fips-mode-setup --check
FIPS mode is enabled
$ python3.6 -c "import hashlib; m=hashlib.md5()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ValueError: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS
barman-wal-archive uses hashlib.md5() and hits this problem.
We are working in a company environmen, where kernel disable of FIPS rules
Any ideas? A barman version without usage of md5() coming?
cd /usr/lib/python3.6/site-packages/barman
[root@myserver barman]$ grep -irs hashlib.md5 .
./clients/walarchive.py: #checksum = hashlib.md5()
./clients/walarchive.py: checksum = hashlib.md5(usedforsecurity=False)
./utils.py: #md5 = hashlib.md5()
./utils.py: checksum = hashlib.md5(usedforsecurity=False)
Thanks,
Norbert Poellmann