Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Updates python requirements with security fixes #57

Merged
merged 5 commits into from
Apr 8, 2020

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Apr 3, 2020

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.

Testing / review

  • CI is passing
  • safety check -r requirements.txt locally shows no vulns

Conor Schaefer added 4 commits April 6, 2020 12:05
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
@conorsch
Copy link
Contributor Author

conorsch commented Apr 7, 2020

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.
Copy link
Contributor

@emkll emkll left a 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:

Approving (but not merging) due to what seem like test issues reported in
freedomofpress/securedrop#5188 (review)

Copy link
Contributor

@emkll emkll left a 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

@emkll emkll merged commit 4e5b708 into master Apr 8, 2020
@emkll emkll deleted the update-pip-deps-2020-04-02 branch April 8, 2020 12:44
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.

2 participants