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

Update requests package, and others #50

Merged
merged 1 commit into from
Oct 31, 2018

Conversation

mattdrees
Copy link
Member

@mattdrees mattdrees commented Oct 29, 2018

This is primarily to resolve a vulnerability: CVE-2018-18074 (github alert)
(It's not clear to me that an https-to-http redirect is very feasible,
so this seems like a pretty difficult vulnerability to harness,
but it's probably worth fixing anyway.)

Since it's difficult to upgrade just individual parts of the lockfile,
and since it's not all that important to only upgrade requests,
this PR upgrades everything in one commit.
In particular, pyyaml is upgraded to 3.13 and jenkins-job-builder
is upgraded from 3e7ad9692655450fe26371770ec87a17e2a0b23a to
1940ed63e06949d4224d64e12afae437d9d0c089.

(This also removes a host-environment-markers section; presumably it's something newer pipenv versions don't use, but I didn't dig into it.)

This is primarily to resolve a vulnerability: CVE-2018-18074 [1]
(It's not clear to me that an https-to-http redirect is very feasible,
so this seems like a pretty difficult vulnerability to harness,
but it's probably worth fixing anyway.)

Since it's difficult [2] to upgrade just individual parts of the lockfile,
and since it's not all that important to only upgrade `requests`,
this commit upgrades everything.
In particular, pyyaml is upgraded to 3.13 and jenkins-job-builder
is upgraded from 3e7ad9692655450fe26371770ec87a17e2a0b23a to
1940ed63e06949d4224d64e12afae437d9d0c089.

[1]: psf/requests#4716,
     https://github.com/CruGlobal/jenkins-jobs/network/alert/Pipfile.lock/requests/open

[2]: pypa/pipenv#966
     (Which is way too long of a thread, but the gist is
     pipenv now has a --selective-upgrade option but it doesn't work right)
@mattdrees
Copy link
Member Author

The Pipfile isn't really used on jenkins-lab or jenkins-prod; cru-ansible does its own dependency installation on jenkins. This is mainly used if we want to build/rebuild jobs from our laptops instead.

@mattdrees mattdrees requested a review from mikealbert October 29, 2018 23:21
@mattdrees
Copy link
Member Author

Thanks!

@mattdrees mattdrees merged commit 4d0f179 into master Oct 31, 2018
@mattdrees mattdrees deleted the update-requests-for-cve-2018-18074 branch October 31, 2018 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants