-
-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hashlib.md5(...) throws server error in FIPS enabled systems #167
Comments
The |
Agreed. Created pr #168 which is identical to my local changes. |
You should keep the issue open for discussion! I checked the readme and this project supports older versions than 3.9, so the parameter can’t be used unconditionally. |
Ah, I see. I wouldn't call myself a python expert here so I guess I just got lucky with the version I'm using. I'll reopen just in case anyone runs into the same issue as me and comes here looking. One possibility would be to wrap in a try/except in the pr, or as you suggested to use a different hashing algorithm. If I'm understanding the source correctly, the offending function is just called from @simple_tag decorator, which is only supposed to return text... So, (in theory?) the hash used should not matter. I'm not sure which is the preferable implementation here, though. |
@jonlev1n thanks for reporting this and for the PR. As you can see from the PR status checks, the CI fails due to the unsupported TypeError: openssl_md5() takes no keyword arguments In this case, considering that |
@fabiocaccamo No problem. I originally made the PR without realizing that argument was not available. I updated the PR just a few minutes ago using Thanks again to @merwok for pointing the underlying issue out. |
@jonlev1n thank you very much for the PR, you can upgrade to |
I have the admin interface installed on my application, which is running on a FIPS-enabled system. The system then complains about the md5 implementation (see trace below). I have a workaround for now, manually adding the
usedforsecurity=False
kwarg on line 83, but this is not ideal since my normal method of monkey patching the module does not seem to be working.Anyone else run into this issue? Can this be addressed in the code, or has anyone figured out a valid method for patching?
The text was updated successfully, but these errors were encountered: