-
Notifications
You must be signed in to change notification settings - Fork 106
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
[High Priority] Fix Snyk vulnerability: Upgrade celery, vine, click #5088
[High Priority] Fix Snyk vulnerability: Upgrade celery, vine, click #5088
Conversation
The current celery version in requirement.txt, we should check kombu version: Line 42 in f24487c
|
@jun, Kombu is updated to |
@johnnyporkchops Deployed a test branch to Dev space. Downloads failed with the following error.
|
841ad1a
to
3c26aa1
Compare
@johnnyporkchops There are breaking changes in celery 5.X.X. celery v4.3.0: celery v5.X.X: (5088-venv) macadmins-mbp-5:openFEC pkasireddy$ |
3c26aa1
to
d13e6d2
Compare
7404944
to
c9de44e
Compare
Codecov Report
@@ Coverage Diff @@
## develop #5088 +/- ##
========================================
Coverage 85.75% 85.75%
========================================
Files 81 81
Lines 7721 7721
========================================
Hits 6621 6621
Misses 1100 1100 Continue to review full report at Codecov.
|
bb13896
to
e085d49
Compare
e085d49
to
6132acd
Compare
@pkfec Everything looks good! Great job |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We deploy on dev. works as expected.
Thanks. good job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
This is due 03/29/22 so we need to get it in upcoming release
Upgrade to Celery 5.x has breaking changes:
minimum required kombu version is 5.0.0
Resolves [Snyk: Medium] Celery - Stored Command Injection (03/29/2022) #5017
Reference pr [WIP] update celery and related pkgs #4895
Upgrading Celery for Snyk recommended remediation path caused compatibility errors when installing requirements.

So I updated Click and Vine as well, Now requirements can be installed without error and Pytest passes,
Required reviewers
Two backend developers must. @johnnyporkchops git didn't let me add you to the reviewers list. please feel free to test this PR if your time permits.
Impacted areas of the application
Celery tasks, Export results (download results set in fec.gov)
How to test
git checkout 5017-snyk-medium-Celery-stored-command-injection
pyenv virtualenv 3.7.12 venv-api3712
pyenv activate venv-api3712
pip install -r requirements.txt
pip install -r requirements-dev.txt
rm -rf node_modules
(optional step)npm i
(optional step)npm run build
(optional step)pytest
(all tests should pass)celery --app webservices.tasks worker --loglevel INFO
OR
Deploy this PR to Dev space:
Note: I will the update the wiki after this PR is merged