Open wonkybream opened 3 years ago
I have a quite specific environment and noticed one issue with it.
My environment is in OpenSSL FIPS 140-2 mode and using md5 is not supported.
Following line raises an error ValueError: [digital envelope routines: FIPS_DIGESTINIT] disabled for fips. https://github.com/cameronmaske/celery-once/blob/4f68b6b3c8503b9360179a246521b07315cdf577/celery_once/backends/file.py#L20
ValueError: [digital envelope routines: FIPS_DIGESTINIT] disabled for fips
I'm suggesting to change that to hashlib.sha1() which is supported in even if FIPS mode is enabled in cryptographic library.
hashlib.sha1()
If proposed change is allowed I'm more than happy to do the pull request.
With best regards, Wonky
I have a quite specific environment and noticed one issue with it.
My environment is in OpenSSL FIPS 140-2 mode and using md5 is not supported.
Following line raises an error
ValueError: [digital envelope routines: FIPS_DIGESTINIT] disabled for fips
. https://github.com/cameronmaske/celery-once/blob/4f68b6b3c8503b9360179a246521b07315cdf577/celery_once/backends/file.py#L20I'm suggesting to change that to
hashlib.sha1()
which is supported in even if FIPS mode is enabled in cryptographic library.If proposed change is allowed I'm more than happy to do the pull request.
With best regards, Wonky