Open albundy83 opened 2 years ago
Hello,
here the explanation of the problem: https://stackoverflow.com/questions/67559170/paramiko-ssh-command-execution-failing-with-valueerror-digital-envelope-routi
Using md5 hash is not allowed with FIPS enabled.
Here the original issue on passlib (and the problem was reported from pgAdmin4): https://foss.heptapod.net/python-libs/passlib/-/issues/116
It seems you are still using an unpatched version of passlib (passlib-1.7.2).
As workaround, changing the line should do the trick:
grep -n 'return hashlib.md5' /usr/lib/python3.6/site-packages/pgadmin4-web/passlib/handlers/digests.py
104: return hashlib.md5(data).hexdigest()
to
grep -n 'return hashlib.md5' /usr/lib/python3.6/site-packages/pgadmin4-web/passlib/handlers/digests.py
104: return hashlib.md5(data, usedforsecurity=False).hexdigest()
But it's a bit ugly...
Hello, any update with this issue ?
Describe the bug When FIPS is enabled, pgAdmin4 does not achieve to create correctly
/var/lib/pgadminpgadmin4.db
To Reproduce Steps to reproduce the behavior: Be sure that FIPS is enabled:
cat /proc/sys/crypto/fips_enabled
must return 1Start PGAdmin4 using Crunchy Data Operator (5.1.0) or using common Deployment
Expected behavior Make it works :-)
Here the full log
We can see also that the pgadmin4.db file has been created but not correctly: