Why aren't certificates from security.pki used in the cacert package or some fetchers? #101119
Labels
0.kind: bug
Something is broken
1.severity: security
Issues which raise a security issue, or PRs that fix one
6.topic: fetch
Describe the bug
Some fetchers (at least
fetchgit
) do not use extra certificates set in the nixos optionsecurity.pki.certificates
orcertificateFiles
. This causes builds to fail when used with a TLS intercepting proxysee also #89526
To Reproduce
Steps to reproduce the behavior:
be behind a TLS intercepting proxy
Set the nixos option
security.pki.certificates
to include the MITM certs and switchObserve that a user can use curl and git and successfully navigate through the proxy
Observe that builtins.fetchurl works
Observe that
fetchgit
failsModify the
cacert
package to include the MITM certs inca-bundle.crt
Observe that
fetchgit
worksExpected behavior
The certs used for fetchers should be consistent. And if the MITM certs aren't used, then documentation should explain what a user must do to use them in fetchers.
Metadata
The text was updated successfully, but these errors were encountered: