Skip to content

nushell: eMudhra fixes - #576512

Merged
zimbatm merged 2 commits into
NixOS:masterfrom
zimbatm:cacert-nushell
Oct 21, 2026
Merged

zimbatm merged 2 commits into
NixOS:masterfrom
zimbatm:cacert-nushell

Conversation

@zimbatm

@zimbatm zimbatm commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Two fixes for the eMudhra intermediate compromise:

  • version check used update-informer's default ureq agent, which trusts only the compiled-in webpki-roots. Patch it to use nushell's own TLS config (tls_config), so it uses the system CA store like http get already does.
  • Bump webpki-roots to 1.0.10 (drops emSign ECC Root CA - G3) and rustls-webpki to 0.103.16 (blocks the eight revoked eMudhra intermediate SPKIs) through a Cargo.lock patch.

Both changes are already merged upstream, after the 0.116.1 release: nushell/nushell#19298 (version check uses nushell's own HTTP client and TLS config) and nushell/nushell#19308 (webpki-roots 1.0.10, webpki-root-certs 1.0.10, rustls-webpki 0.103.16). Drop both patches when nushell is updated to a release that contains them.

Tested on x86_64-linux: build with the full cargo test check phase, http get and version check with SSL_CERT_FILE set to an unrelated root fail, and with the system bundle they work.

Related to: #576485
Related to: #576544

Assisted-by: Claude Code (claude-opus-5)

Things done

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Oct 20, 2026
`http get` and the other network commands use rustls-platform-verifier,
which reads the system store (SSL_CERT_FILE, /etc/ssl/certs).
`version check` uses update-informer with a default ureq agent.
That agent uses the compiled-in webpki-roots list.
Give update-informer an HTTP client that uses nushell's own TLS config.
Then a cacert update applies to all TLS requests in nu.

Assisted-by: Claude Code (claude-opus-5)
eMudhra and Sectigo revoked eight eMudhra intermediates on 2026-10-18.
webpki-roots 1.0.10 removes emSign ECC Root CA - G3.
rustls-webpki 0.103.16 rejects the eight revoked intermediates.
nushell still links webpki-roots through ureq, so keep that list current.

Assisted-by: Claude Code (claude-opus-5)
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. llm-assisted Contributions that include code generation with LLMs labels Oct 20, 2026
@RossSmyth

Copy link
Copy Markdown
Contributor

May be worth asking upstream if they would consider this patch.

@hesiod
hesiod self-requested a review October 20, 2026 21:33
@hesiod hesiod added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Oct 20, 2026

@hesiod hesiod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have done a cursory check, seems to work as intended.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 20, 2026
@zimbatm zimbatm added the backport release-26.05 Backport PR automatically label Oct 20, 2026
@zimbatm

zimbatm commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

thanks. ^ I checked and nushell independently came up with fixes for the next release.

@zimbatm
zimbatm added this pull request to the merge queue Oct 21, 2026
Merged via the queue into NixOS:master with commit ecf9878 Oct 21, 2026
40 checks passed
@zimbatm
zimbatm deleted the cacert-nushell branch October 21, 2026 17:02
@nixpkgs-ci

nixpkgs-ci Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Backport failed for release-26.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-26.05
git worktree add -d .worktree/backport-576512-to-release-26.05 origin/release-26.05
cd .worktree/backport-576512-to-release-26.05
git switch --create backport-576512-to-release-26.05
git cherry-pick -x 12b92890b34d8e10b82f63ea3576a07400b5afc1 f25a239fa4cb9b0ebe64b35cca7b72695e86aa04

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 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: failed backport 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. backport release-26.05 Backport PR automatically llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants