Commits
- Commit:
1f1ff8a7ba275d406fe6c87bfb37dcf9bd316dfb
- From:
- Jelmer Vernooij <jelmer@jelmer.uk>
- Via:
- GitHub <noreply@github.com>
- Date:
Merge pull request #998 from umarfarouk98/master
Deprecation notice about urllib3[secure]
- Commit:
5505a96d284c69287dc1f648fe39cace68a8cbfa
- From:
- V24 <55334829+umarfarouk98@users.noreply.github.com>
- Via:
- GitHub <noreply@github.com>
- Date:
removed urllib3[secure]
updated with urllib3
- Commit:
8bbabacd268c3c117df39dda33216ef0b9df8bea
- From:
- Jelmer Vernooij <jelmer@jelmer.uk>
- Date:
Require urllib>=1.23, because of CVE-2018-20060
- Commit:
48e2ef8c2f2c65a33ad3276458791c19ef208c1a
- From:
- Daniel Andersson <dandersson@users.noreply.github.com>
- Date:
Enable SSL verification for `urllib3`
By default, `urllib3` does not verify HTTPS requests.
As recommended in the `urllib3` documentation [0], SSL verification is
enabled by including the `certifi` package which comes with Mozilla's
root certificate bundle. This silences an `InsecureRequestWarning`
otherwise issued by `urllib3`.
Before Python 2.7.9, the `ssl` module lacks SNI support and may lag
behind in security updates [1, 2, 3, 4]. The recommended approach by
`urllib3` is to use pyOpenSSL as a replacement for those versions. This
silences `InsecurePlatformWarning` and `SNIMissingWarning` otherwise
issued by `urllib3` when run on these versions.
[0]: https://urllib3.readthedocs.io/en/latest/user-guide.html#certificate-verification
[1]: https://urllib3.readthedocs.io/en/latest/user-guide.html#certificate-verification-in-python-2
[2]: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-9365
[3]: https://www.python.org/dev/peps/pep-0476/
[4]: https://www.python.org/dev/peps/pep-0493/
- Commit:
221f073620265b581d3bf7d4a1eae96ccb469eb9
- From:
- Daniel Andersson <dandersson@users.noreply.github.com>
- Date:
Replace `urllib2` HTTP requests with `urllib3`
`dulwich.client.default_urllib2_opener` has been replaced by
`dulwich.client.default_urllib3_manager` with otherwise similar input
arguments, returning a `urllib3.PoolManager` or `urllib3.ProxyManager`,
depending on whether a proxy configuration is given.
The `opener` argument to `dulwich.client.HttpGitClient` that took a
`urllib2` opener instance has been replaced by a `pool_manager` argument
that takes a `urllib3` pool manager instance.
Initially tested with `urllib3` version 1.21, but anything later in the
1.x series should work.
Added a `requirements.txt` as a common convention for local setup with a
known working version. Pinned it to the latest available `urllib3`
version at the time.