Skip to content

caddy: use only the system CA store - #576534

Merged
stepbrobd merged 1 commit into
NixOS:masterfrom
zimbatm:cacert-caddy
Oct 21, 2026
Merged

stepbrobd merged 1 commit into
NixOS:masterfrom
zimbatm:cacert-caddy

Conversation

@zimbatm

@zimbatm zimbatm commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Caddy imports golang.org/x/crypto/x509roots/fallback in cmd/x509rootsfallback.go. That bundle contains the eMudhra emSign roots, including emSign ECC Root CA - G3. Go uses it when no system roots load, for example in a container without /etc/ssl. It does not get cacert updates.

Remove the import, so that TLS uses only the system CA store. Also do this for caddy.withPlugins, where caddy is in the vendor directory. The file is removed in postConfigure, which goModules does not run, so vendorHash does not change.

Tested on x86_64-linux, plain and with a plugin (replace-response):

Note: the hash in plugins.test.nix is already out of date on master before this change; it is not touched here.

Related to: #576485
Related to: #576544

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

Things done

Caddy imports golang.org/x/crypto/x509roots/fallback in
cmd/x509rootsfallback.go. That bundle contains the eMudhra emSign roots,
including emSign ECC Root CA - G3. Go uses it when no system roots load,
for example in a container without /etc/ssl. It does not get cacert
updates.

Remove the import, so that TLS uses only the system CA store. Also do
this for caddy.withPlugins, where caddy is in the vendor directory.

Assisted-by: Claude Code (claude-opus-5)
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". llm-assisted Contributions that include code generation with LLMs labels Oct 20, 2026
@zimbatm zimbatm added the backport release-26.05 Backport PR automatically label Oct 20, 2026
@hesiod hesiod added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Oct 20, 2026
@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (710407f)

Command: nixpkgs-review pr 576534
Commit: 43a7ae3f9e374f1fde09022c81d4fb1326a67f60 (subsequent changes)
Merge: aa8dc98b54f2889e2b0e711ee4b89dd1059dd283

Triggered by @stepbrobd (81826728)
Logs: https://github.com/stepbrobd/nixpkgs-review-gha/actions/runs/39564780119/attempts/1


x86_64-linux

✅ 2 packages built:
  • caddy
  • styx

aarch64-linux

✅ 2 packages built:
  • caddy
  • styx

aarch64-darwin (sandbox = relaxed)

✅ 2 packages built:
  • caddy
  • styx

@stepbrobd
stepbrobd added this pull request to the merge queue Oct 21, 2026
Merged via the queue into NixOS:master with commit 2ffadc9 Oct 21, 2026
35 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Oct 21, 2026
@bitbloxhub bitbloxhub mentioned this pull request Oct 24, 2026
4 of 13 tasks
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: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 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.

4 participants