Skip to content

[Backport staging-22.11] python3Packages.certifi: Update and use system ca-bundle - #205191

Merged
vcunat merged 5 commits into
staging-22.11from
backport-205127-to-staging-22.11
Dec 19, 2022
Merged

vcunat merged 5 commits into
staging-22.11from
backport-205127-to-staging-22.11

Conversation

@github-actions

@github-actions github-actions Bot commented Dec 8, 2022

Copy link
Copy Markdown
Contributor

Bot-based backport to staging-22.11, triggered by a label in #205127.

  • Before merging, ensure that this backport complies with the Criteria for Backporting.
    • Even as a non-commiter, if you find that it does not comply, leave a comment.

We update that one more reliably and it allows ties in with module based
configuration applied through `security.pki`.

Also allow overwriting the CA bundle used through `NIX_SSL_CERT_FILE`
as is common throughout nixpkgs.

Fixes: CVE-2022-23491
(cherry picked from commit 8d7cc9c)
The where() function in certifi has been patched to allow more consumers
of the certifi package to use the system ca-bundle.

(cherry picked from commit 8456141)
@mweinelt mweinelt added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Dec 8, 2022
@ofborg
ofborg Bot requested review from SuperSandro2000 and fabaff December 8, 2022 23:27
@ofborg ofborg Bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Dec 8, 2022
@vcunat
vcunat marked this pull request as draft December 9, 2022 09:39
@github-actions github-actions Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Dec 9, 2022
For tests that require a working ca-bundle via certifi we need to setup
`NIX_SSL_CERT_FILE`, which is kindly provided by cacerts setup-hook.

(cherry picked from commit 35750ba)
@vcunat
vcunat force-pushed the backport-205127-to-staging-22.11 branch from bca60e3 to c2f855b Compare December 9, 2022 15:23
@vcunat
vcunat marked this pull request as ready for review December 9, 2022 15:36
@vcunat

vcunat commented Dec 9, 2022

Copy link
Copy Markdown
Member

I think I picked all the closely related commits so far. I omitted a commit-revert pair.

@vcunat

vcunat commented Dec 9, 2022

Copy link
Copy Markdown
Member

Maybe we can wait anyway for staging-next to progress further. It seems possible that more unintended consequences get discovered.

@mweinelt

Copy link
Copy Markdown
Member

Yeah, unfortunately I'm not confident about the fixes being comprehensive either..

@vcunat
vcunat marked this pull request as draft December 10, 2022 17:58
@vcunat
vcunat marked this pull request as ready for review December 19, 2022 09:33
@vcunat
vcunat merged commit 688945a into staging-22.11 Dec 19, 2022
@vcunat
vcunat deleted the backport-205127-to-staging-22.11 branch December 19, 2022 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants