Skip to content

claude-code: use only the system CA store - #576509

Merged
adamcstephens merged 1 commit into
NixOS:masterfrom
zimbatm:cacert-claude-code
Oct 20, 2026
Merged

adamcstephens merged 1 commit into
NixOS:masterfrom
zimbatm:cacert-claude-code

Conversation

@zimbatm

@zimbatm zimbatm commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Set CLAUDE_CODE_CERT_STORE=system by default in the wrapper. Claude Code then trusts only the system store (SSL_CERT_FILE or /etc/ssl/certs) and not the Mozilla roots bundled in Bun. A cacert update now also updates the trust of claude-code. Users can still override the value.

Related to: #576485
Related to: #576544

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

Things done

Set CLAUDE_CODE_CERT_STORE=system by default in the wrapper.
Claude Code then trusts only the system store (SSL_CERT_FILE or
/etc/ssl/certs) and not the Mozilla roots bundled in Bun.
A cacert update now also updates the trust of claude-code.
Users can still override the value.

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
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 20, 2026
@adamcstephens
adamcstephens added this pull request to the merge queue Oct 20, 2026
Merged via the queue into NixOS:master with commit d7e59f8 Oct 20, 2026
36 checks passed
@zimbatm zimbatm added the backport release-26.05 Backport PR automatically label Oct 20, 2026
@nixpkgs-ci

nixpkgs-ci Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. 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