Skip to content

beamPackages: inject cacert trust stores for deps that bundle root CA stores - #576652

Merged
happysalada merged 5 commits into
NixOS:masterfrom
adamcstephens:push-znotrsxzlosx
Oct 21, 2026
Merged

happysalada merged 5 commits into
NixOS:masterfrom
adamcstephens:push-znotrsxzlosx

Conversation

@adamcstephens

@adamcstephens adamcstephens commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

hex, castore and certifi all bundle their own CA stores. Make them follow nixpkgs, regardless of how a package is built with our builders. hex has the latest trust store from #576626, but castore and certifi would need to be updated in apps. And certifi still doesn't have a new release with them updated.

Related to: #576544

LLM assisted.

Things done

Assisted-By: Claude Opus 5.5 low in claude-code/2.1.303
Assisted-By: Claude Opus 5.5 low in claude-code/2.1.303
Assisted-By: Claude Opus 5.5 low in claude-code/2.1.303
Assisted-By: Claude Opus 5.5 low in claude-code/2.1.303
Assisted-By: Claude Opus 5.5 low in claude-code/2.1.303
@nixpkgs-ci
nixpkgs-ci Bot requested review from a team and ericbmerritt October 21, 2026 02:47
@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 6.topic: erlang General-purpose, concurrent, functional high-level programming language labels Oct 21, 2026
@adamcstephens

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 576652
Commit: 6f736f3082a1db36d667d0d6b0bd8a7641ccf61a


aarch64-linux

⏩ 1 package marked as broken and skipped:
  • pinchflat
✅ 35 packages built:
  • akkoma
  • beam27Packages.mixFodDepsSetupHook (beam28Packages.mixFodDepsSetupHook, beam29Packages.mixFodDepsSetupHook, beamMinimal27Packages.mixFodDepsSetupHook, beamMinimal28Packages.mixFodDepsSetupHook, beamMinimal29Packages.mixFodDepsSetupHook)
  • beam27Packages.livebook
  • beam28Packages.expert
  • beam28Packages.hex
  • beam28Packages.livebook
  • beam29Packages.ex_doc
  • beam29Packages.expert
  • beam29Packages.hex
  • beam27Packages.ex_doc
  • beam29Packages.livebook
  • beamMinimal27Packages.ex_doc
  • beamMinimal27Packages.hex
  • beamMinimal27Packages.expert
  • beamMinimal27Packages.livebook
  • beamMinimal28Packages.ex_doc
  • beamMinimal28Packages.hex
  • beamMinimal28Packages.expert
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.ex_doc
  • beamMinimal29Packages.expert
  • beamMinimal29Packages.hex
  • beamMinimal29Packages.livebook
  • firezone-server (firezone-server-domain)
  • firezone-server-api
  • firezone-server-web
  • paseo-relay
  • beam27Packages.hex
  • beam27Packages.expert
  • plausible
  • protoc-gen-elixir
  • mobilizon
  • pleroma
  • pinchflat-ngx
  • beam28Packages.ex_doc

aarch64-darwin

⏩ 1 package marked as broken and skipped:
  • pinchflat
✅ 32 packages built:
  • akkoma
  • beam27Packages.mixFodDepsSetupHook (beam28Packages.mixFodDepsSetupHook, beam29Packages.mixFodDepsSetupHook, beamMinimal27Packages.mixFodDepsSetupHook, beamMinimal28Packages.mixFodDepsSetupHook, beamMinimal29Packages.mixFodDepsSetupHook)
  • beam28Packages.ex_doc
  • beam28Packages.expert
  • beam27Packages.ex_doc
  • beam28Packages.hex
  • beam29Packages.ex_doc
  • beam29Packages.expert
  • beam29Packages.hex
  • beam27Packages.hex
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.hex
  • beamMinimal27Packages.ex_doc
  • beamMinimal27Packages.livebook
  • beamMinimal28Packages.ex_doc
  • beamMinimal28Packages.hex
  • beamMinimal28Packages.expert
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.ex_doc
  • beamMinimal29Packages.hex
  • beamMinimal29Packages.expert
  • beamMinimal29Packages.livebook
  • paseo-relay
  • beam27Packages.expert
  • beamMinimal27Packages.expert
  • beam27Packages.livebook
  • protoc-gen-elixir
  • plausible
  • pleroma
  • mobilizon
  • pinchflat-ngx

@erictapen

Copy link
Copy Markdown
Member

Great! This means it doesn't fix the eMudhra issues in e.g. Mobilizon and Pleroma yet, though, I'll file a separate PR for these two applications.

@erictapen erictapen added backport release-26.05 Backport PR automatically 1.severity: security Issues which raise a security issue, or PRs that fix one labels Oct 21, 2026
@happysalada
happysalada added this pull request to the merge queue Oct 21, 2026
@adamcstephens

Copy link
Copy Markdown
Contributor Author

Great! This means it doesn't fix the eMudhra issues in e.g. Mobilizon and Pleroma yet, though, I'll file a separate PR for these two applications.

Do they have separate CA stores besides the ones this PR injects through buildMix?

Merged via the queue into NixOS:master with commit d85a99e Oct 21, 2026
39 checks passed
@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-576652-to-release-26.05 origin/release-26.05
cd .worktree/backport-576652-to-release-26.05
git switch --create backport-576652-to-release-26.05
git cherry-pick -x 84a7dc6172941a72eb80a459e2fc32e68d011109 af769820752c71bea3f5288d7b7e9be6a8dccf31 38c94b1183f44fb74ce33dae47e1f798280bd59f fdb7d51bd12101fdc6e6c44f3531c104b19a48ee 6f736f3082a1db36d667d0d6b0bd8a7641ccf61a

@erictapen

Copy link
Copy Markdown
Member

Do they have separate CA stores besides the ones this PR injects through buildMix?

No, and I realise I should have read your patches more carefully. They indeed fix the problem. But do we really want to modify the behaviour of e.g. mixRelease depending on the name being certifi or castore? That feels quite hacky to me.

For mixNixDeps I'm working on something similar to defaultCrateOverrides, where we curate a list of overrides for typical Mix deps. This way there would be just one place to add package specific behaviour. I don't have an idea yet for doing the same in mixFodDeps though.

@adamcstephens

Copy link
Copy Markdown
Contributor Author

I agree these are a bit hacky. Open to better solutions.

@erictapen

Copy link
Copy Markdown
Member

Most importantly it's fixed, that's good.

This still needs to be (manually) backported to 26.05.

@adamcstephens

Copy link
Copy Markdown
Contributor Author

#579058 backport

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: erlang General-purpose, concurrent, functional high-level programming language 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. 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