-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
poetry publish fails on FIPS enabled systems because of hashlib.md5() #4986
Comments
This looks like a pretty easy fix, i am asking my manager if it would be fine if i implement a fix for it. Unless someone has a better idea i was thinking of just adding a try catch for a ValueError for the md5 part of the code. I dont see any other good way for checking if FIPS is enabled other then just trying. |
Looking into this a little more, |
Bumping this issue.
Note that there is also a file that I needed to patch after installing my patched-poetry package, This does, of course, only work for Python 3.9+ though. We'd probably want to wrap these changes into some logic based on the running Python version. Edit: As it turns out |
Err, aren't we using the hashes for security though? |
This also prevents "poetry install" from executing on a FIPS Mode enabled system |
FWIW this has been fixed upstream in I think |
A coworker just let me know that a new tag for lark, |
python-poetry/poetry-core#503 is merged, the next release will include this change. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
If FIPS mode is enabled for a system there is a potential for a ValueError in upload.py when trying to publish a package to a repository when there is an md5 checksum. See the documentation for hashlib for more information. The important part being:
The error returned when running the command
poetry publish -r <my-repo>
The text was updated successfully, but these errors were encountered: