-
Notifications
You must be signed in to change notification settings - Fork 4
Updates python requirements with security fixes #57
Conversation
Based on local `safety check -r requirements.txt`, which reported: │ REPORT │ │ checked 73 packages, using default DB │ ╞════════════════════════════╤═══════════╤══════════════════════════╤══════════╡ │ package │ installed │ affected │ ID │ ╞════════════════════════════╧═══════════╧══════════════════════════╧══════════╡ │ psutil │ 5.6.3 │ <=5.6.5 │ 37765 │ │ pyyaml │ 5.1.2 │ <5.3.1 │ 38100 │ │ urllib3 │ 1.25.2 │ >=1.25.2,<=1.25.7 │ 27519 updated those three packages and everything's happy again. Also updated Ansible 2.7.14 -> 2.7.16 for CVE-2019-14864, which 'safety' didn't complain about, but GitHub security alerts did.
The Ansible intepreter was still set to python2, which went EOL on 2020-01-01. Moving to python3 requires a few package/syntax updates in various places.
We'd implemented retry logic because occasionally the fetch tasks for grsec patches would fail. Newer versions of Ansible & Python have changed how the try logic operates in tandem with loops. Rather than debug the syntax changes, let's raise the timeout and expect the task to complete.
Removes unused vagrant-based scenarios
638c1f8
to
38d80f3
Compare
Ended up with a larger diff than I'd hoped, but we were overdue on the pip dependencies updates, as well as the py2 -> py3 change. Successfully built SD core kernels on this PR, artifacts in freedomofpress/securedrop-apt-test#37 Still need to append the new config to this PR, though. |
Copied out of the source tarball, changes are quite minimal.
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.
Thanks @conorsch , changes look good to me:
- CI is passing
-
safety check -r requirements.txt
locally shows no vulns - visual diff of the config/molecule changes
- config is exactly the same as kernel provided in Update SecureDrop grsec kernels to 4.14.175 securedrop-apt-test#37
Approving (but not merging) due to what seem like test issues reported in
freedomofpress/securedrop#5188 (review)
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.
Tests are now passing locally in freedomofpress/securedrop#5188, merging
Based on local
safety check -r requirements.txt
, which reported:updated those three packages and everything's happy again.
Also updated Ansible 2.7.14 -> 2.7.16 for CVE-2019-14864, which 'safety'
didn't complain about, but GitHub security alerts did.
Testing / review
safety check -r requirements.txt
locally shows no vulns