FIPS with version 2014.1.10
I just upgraded my RHEL machines (with FIPS enabled) from 2014.1.7 to 2014.1.10.
Cannot start the salt minion
[root@REDACTED ~]# /etc/init.d/salt-minion start
Starting salt-minion daemon: Traceback (most recent call last):
File "/usr/bin/salt-minion", line 6, in <module>
from salt.scripts import salt_minion
File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 14, in <module>
import salt.cloud.cli
File "/usr/lib/python2.6/site-packages/salt/cloud/cli.py", line 33, in <module>
from salt.cloud.libcloudfuncs import libcloud_version
File "/usr/lib/python2.6/site-packages/salt/cloud/libcloudfuncs.py", line 14, in <module>
from libcloud.compute.types import Provider
File "/usr/lib/python2.6/site-packages/libcloud/__init__.py", line 28, in <module>
import paramiko
File "/usr/lib/python2.6/site-packages/paramiko/__init__.py", line 69, in <module>
from transport import randpool, SecurityOptions, Transport
File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 37, in <module>
from paramiko.dsskey import DSSKey
File "/usr/lib/python2.6/site-packages/paramiko/dsskey.py", line 31, in <module>
from paramiko.pkey import PKey
File "/usr/lib/python2.6/site-packages/paramiko/pkey.py", line 27, in <module>
from Crypto.Hash import MD5
File "/usr/lib64/python2.6/site-packages/Crypto/Hash/MD5.py", line 13, in <module>
digest_size = new().digest_size
File "/usr/lib64/python2.6/site-packages/Crypto/Hash/MD5.py", line 12, in new
return hashlib.md5(data)
ValueError: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips
[FAILED]
[root@REDACTED ~]# salt --version
-bash: salt: command not found
[root@REDACTED ~]# salt-call --version
Traceback (most recent call last):
File "/usr/bin/salt-call", line 7, in <module>
from salt.scripts import salt_call
File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 14, in <module>
import salt.cloud.cli
File "/usr/lib/python2.6/site-packages/salt/cloud/cli.py", line 33, in <module>
from salt.cloud.libcloudfuncs import libcloud_version
File "/usr/lib/python2.6/site-packages/salt/cloud/libcloudfuncs.py", line 14, in <module>
from libcloud.compute.types import Provider
File "/usr/lib/python2.6/site-packages/libcloud/__init__.py", line 28, in <module>
import paramiko
File "/usr/lib/python2.6/site-packages/paramiko/__init__.py", line 69, in <module>
from transport import randpool, SecurityOptions, Transport
File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 37, in <module>
from paramiko.dsskey import DSSKey
File "/usr/lib/python2.6/site-packages/paramiko/dsskey.py", line 31, in <module>
from paramiko.pkey import PKey
File "/usr/lib/python2.6/site-packages/paramiko/pkey.py", line 27, in <module>
from Crypto.Hash import MD5
File "/usr/lib64/python2.6/site-packages/Crypto/Hash/MD5.py", line 13, in <module>
digest_size = new().digest_size
File "/usr/lib64/python2.6/site-packages/Crypto/Hash/MD5.py", line 12, in new
return hashlib.md5(data)
ValueError: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips
[root@REDACTED ~]# rpm -q salt-minion
salt-minion-2014.1.10-4.el6.noarch
[root@REDACTED ~]# rpm -q salt
salt-2014.1.10-4.el6.noarch
Thanks for the report. Looks like Paramiko is using MD5 which is a FIPS no-no. We'll see if we can find a work-around for this. We might need to add a flag to disable certain cloud providers by default to prevent this type of error.
I was looking at the paramiko github project. Latest version still uses the MD5 hash
It might be worth filing an issue with them to see what they say. We'll still want to workaround this, however.
any update on a work-around?
No update yet. We'd likely need to write a facility to simply skip the loading of salt-cloud but haven't had a chance yet. Have you been in touch with the paramiko folks at all?
I just submitted a request earlier today (i had previously forgotten).
@cingeyedog OK. I will also ping our salt-cloud maintainer when he's back in the office later today. Thanks for your patience.
We're thinking that libcloud might only use paramiko if it's installed but may work just fine without it. Do you have it installed and if so, can you remove it?
@cingeyedog Were you able to test the removal of paramiko as a possible resolution for this issue?
Yes. Removed the paramiko package allowed for salt to be upgraded to 2014.1.10
Thank you
@cingeyedog Thanks for the reply. Glad you got this working.