Duplicity fails with FIPS enabled

Asked by Dustin Todd on 2020-03-06

When trying to use the application for backups (via Deja Dup) the process fails:

Traceback (innermost last):
  File "/usr/bin/duplicity", line 1581, in <module>
  File "/usr/bin/duplicity", line 1567, in with_tempdir
  File "/usr/bin/duplicity", line 1406, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py", line 1096, in ProcessCommandLine
    args = parse_cmdline_options(cmdline_list)
  File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py", line 730, in parse_cmdline_options
    globals.backup_name = generate_default_backup_name(backend_url)
  File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py", line 125, in generate_default_backup_name
    burlhash = md5()
 ValueError: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips

From what I have learned, the issue lies with Duplicity using md5 instead of SHA256 (or other FIPS compliant)
Is there an option to enable something other than md5?


Question information

English Edit question
Duplicity Edit question
No assignee Edit question
Last query:
Last reply:
edso (ed.so) said : #1

There is no option to change hash usage. Duplicity uses md5 and sha1 for things like hash keys for backup names, but for nothing security related.

What OS and version are you running? Which Python version? What openssl version?


Following that link will show you the mess that the hashlib is in. I'm not sure at this point which direction the software will take. Redhat/Centos added an argument to allow use in non-secure manner, but that's only a small part of the equation since that is not standard across the majority of Linux.

Going to make a bug report out of it and see if we can get some non-invasive answers. Changing from md5/sha1 to something stronger makes no sense since they are not being used for security and would be backwards incompatible.

Dustin Todd (dtoddtrc) said : #4

Thanks for the response.

We are running RedHat 7.7 workstation with the DCSA profile. We are required to use FIPS configuration for our secure environments and NIST SP800-171 controls. I was hoping to use the builtin backup software (Deja Dup) which uses Duplicity.

The install version of python is 2.7.5 and openssl is OpenSSL 1.0.2k-fips

Can you help with this problem?

Provide an answer of your own, or ask Dustin Todd for more information if necessary.

To post a message you must log in.