8000 ignore Safety 76752 in setuptools by deeplow · Pull Request #7539 · freedomofpress/securedrop · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ignore Safety 76752 in setuptools #7539

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 8000 GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged

ignore Safety 76752 in setuptools #7539

merged 1 commit into from
May 13, 2025

Conversation

deeplow
Copy link
Contributor
@deeplow deeplow commented May 8, 2025

Status

Ready for review

Description of Changes

Suppresses vulnerability warning.

Setuptools has been bumped to the fixed version 1, but that was not possible on Ubuntu Focal due to setuptools 78.1.1 requiring Python >=3.9 and Ubuntu Focal only providing Python 3.8. In fact ealier versions of setuptools required this newer Python version but only this release justified bumping it.

Therefore, test-requirements.txt was split 2 into Ubuntu Focal and Noble and the setuptools dependency will have to be kept back on the former. This is minor given that this is a build-time dependency only and there is an ongoing migration of instances to Ubunut Noble.

The end conclusion is that this vulnerability will be silenced for the entire repository, since it has already been patched where it could be.

@deeplow deeplow requested a review from a team as a code owner May 8, 2025 09:43
@deeplow deeplow moved this to Ready For Review in SecureDrop May 8, 2025
legoktm
legoktm previously approved these changes May 8, 2025
Copy link
Member
@legoktm legoktm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Note that you'll also need to suppress it in https://github.com/freedomofpress/fpf-misc-resources/blob/main/projectfiles/securedrop.json (yes, it's bad that it's duplicated :/)

Copy link
Member
@legoktm legoktm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually...I don't think this is the right file. @cfm, shouldn't the suppression go in the Makefile directly? (Should this project.json just be deleted?)

@legoktm legoktm moved this from Ready For Review to Under Review in SecureDrop May 8, 2025
cfm
cfm previously requested changes May 9, 2025
Copy link
Member
@cfm cfm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right: make safety here is used in our CI using the public Safety database, which hasn't picked up this alert yet; https://github.com/freedomofpress/fpf-misc-resources/blob/main/projectfiles/securedrop.json is used in the daily authenticated Safety alerting, which has.

Setuptools has been bumped to the fixed version [1], but that was
not possible on Ubuntu Focal due to setuptools 78.1.1 requiring
Python >=3.9 and Ubuntu Focal only providing Python 3.8. In fact
ealier versions of setuptools required this newer Python version
but only this release justified bumping it.

Therefore, test-requirements.txt was split [2] into Ubuntu Focal and
Noble and the setuptools dependency will have to be kept back on
the former. This is minor given that this is a build-time
dependency only and there is an ongoing migration of instances
to Ubunut Noble.

The end conclusion is that this vulnerability will be silenced
for the entire repository, since it has already been patched
where it could be.

[1]: #7506
[2]: #7506 (comment)
@deeplow
Copy link
Contributor Author
deeplow commented May 12, 2025

This was a bit of a footgun. I'm guessing this would be fixed with freedomofpress/securedrop-tooling#14.

@eloquence eloquence assigned legoktm and unassigned deeplow May 12, 2025
@legoktm legoktm enabled auto-merge May 12, 2025 16:06
@deeplow
Copy link
Contributor Author
deeplow commented May 12, 2025

@cfm I think you need to dismiss the requested changes for this to be merged.

@cfm cfm dismissed their stale review May 13, 2025 00:50

Unblocking per #7539 (comment).

@legoktm legoktm added this pull request to the merge queue May 13, 2025
Merged via the queue into develop with commit 2c467b4 May 13, 2025
44 checks passed
@github-project-automation github-project-automation bot moved this from Under Review to Done in SecureDrop May 13, 2025
@deeplow
Copy link
Contributor Author
deeplow commented May 14, 2025

As of this morning this is still not suppressed. Could it be that there is some propagation delay or would it be expected for the impact to be immediate and thus a need to investigate what is in fact the correct place to update these?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants
0