Skip to content
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

FIPS compliance during publish #8311

Closed
wants to merge 1 commit into from

Conversation

vpbonev
Copy link

@vpbonev vpbonev commented Aug 14, 2023

As md5 is only used to get additional hash alongside with sha256, a passing of usedforsecurity=False is required. This option was introduced in Python 3.9 so we need to make sure we check whether that version is present

Pull Request Check List

Resolves: #8310

  • Added tests for changed code.
  • Updated documentation for changed code.

As md5 is only used to get additional hash alongside with sha256, a passing of usedforsecurity=False is required. This option was introduced in Python 3.9 so we need to make sure we check whether that version is present
@dimbleby
Copy link
Contributor

you forgot to import sys

but: this 100% is used for security, surely? the whole point of the hash is so that downloaders can later verify that the downloaded package is the same as the one that was uploaded.

agree that this is not actually secure - which is why sha256 is preferred - but usedforsecurity=False here is just not true.

compare what twine did - pypa/twine#367 - which is simply not provide the md5 hash when compiled in FIPS mode

@jeeftor
Copy link

jeeftor commented Oct 12, 2023

This would be nice to have

@dimbleby
Copy link
Contributor

@jeeftor per previous comment, this merge request is quite wrong - and I see no sign that the author intends to fix it.

If you care about this then recommend making a new merge request yourself.

@jeeftor
Copy link

jeeftor commented Oct 12, 2023

I was hoping my comment would enhance them to make progress. I just turned off FIPS mode last night and poetry was moving along well enough ... :(

@Secrus
Copy link
Member

Secrus commented Mar 3, 2024

Superseded by #9101

@Secrus Secrus closed this Mar 3, 2024
Copy link

github-actions bot commented Apr 2, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support FIPS during poetry publish
4 participants