-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
python-cryptography: Update to 3.3.2 #14744
Conversation
This fixes CVE-2020-36242 (buffer overflows caused by integer overflow in OpenSSL). Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Just wanted to add some notes for posterity (I'm sure @commodo is aware of these): Starting with 3.4, cryptography requires a Rust toolchain to build. There is a way to bypass this requirement for 3.4 but this will be removed in the next major release so I don't think it is worth updating to 3.4 (with this bypass) for now. There is some discussion in upstream of a 3.3 LTS release (pyca/cryptography#5799) but this hasn't been decided yet, and even if it happens it would only be supported until the end of 2021. I suppose the future of this package depends on the success of #13916 (or some other effort to bring Rust into the packages feed). |
I started update on 3.4.1 last week, but I stumbled over this Rust thing. But I didn't manage to finish this, or test it real-quick. If you want I can take this and finish it. Version 3.4.5 should be out now. |
Hmm? Do my patches need rebasing? note that upstream fixed many of the issues. My PR is down to 4 patches. |
so, they did not apply the CUSTOMIZATIONS additions; |
Yeah. Use the latest ones from: pyca/cryptography#4920 Upstream actually fixed some of the issues by killing 1.0.2 compatibility. I adjusted my PR as well. edit: just the first three. Last one is a test commit. |
Without knowing what will happen in the future, I don't think it is worth updating past 3.3, but if you want to update to 3.4 it's fine by me. If we update to 3.4, upstream moves on to 35 (new versioning scheme) and adds a 3.3 LTS branch, and we still don't have Rust available yet, then we may need to downgrade from 3.4 to 3.3 LTS. |
what usually happens with these packages, is that people will ask for newer versions, rarely for older; so, updating now may be a bit more annoying; so, i'll spin-up a PR for 3.4.5; and let's see where this takes us; |
created #14753 |
If people are annoyed that we don’t update to the newer version (and this is a big if), they will be even more annoyed if we have to downgrade because the newer version isn’t getting security updates. |
ok, so then 3.3.2 or 3.4.5? |
My preference would be 3.3.2 for now and we can keep your branch for later. |
ack |
So upstream has decided not to do an LTS branch (but they are going to make "backports easier" for CVE fixes). @commodo do you still have your 3.4 branch available? It would be nice to have it available for 21.02 if possible. (Or I'm also inclined to drop this package entirely. Apparently all the companies that are funding this project "are unwilling to appropriately invest in" having Rust support and thus we are unworthy of upstream's attention.) |
sorry, i don't have it around anymore;
dropping it would also mean getting rid of a few more packages that depend on this; i can re-do it in the next few days; |
I'm only half serious (I think) - while I understand that desire to switch to Rust, I'm annoyed that a critical piece of Python infrastructure can disregard all concern for downstream projects. If we dropped it perhaps more users will complain to upstream lol
Thanks for looking into it (no rush necessary). I don't think I will have time in the foreseeable future. |
python-cryptography isn't too bad [yet]; |
Maintainer: me, @commodo
Compile tested: armvirt-32, 2021-02-14 snapshot sdk
Run tested: none
Description:
This fixes CVE-2020-36242 (buffer overflows caused by integer overflow in OpenSSL).
Signed-off-by: Jeffery To jeffery.to@gmail.com