aboutsummaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-09-26 20:53:46 +0000
committerGerrit Code Review <gerrit@localhost>2024-09-26 20:53:46 +0000
commit14dc84ed03f1b7e5a41bb6fdce00916faab32b60 (patch)
tree430b988191e503c838e4ff79de2905bcbb8c5e4b /doc/manual
parent619a93bd54386714241fc0edfba2aa9b4c40355b (diff)
parent37b22dae04f2da214e6b9bef3427e134280642ca (diff)
Merge changes Iaa2e0e9d,Ia973420f into main
* changes: Fix passing custom CA files into the builtin:fetchurl sandbox [security] builtin:fetchurl: Enable TLS verification
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/rl-next/verify-tls.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/manual/rl-next/verify-tls.md b/doc/manual/rl-next/verify-tls.md
new file mode 100644
index 000000000..608f3347e
--- /dev/null
+++ b/doc/manual/rl-next/verify-tls.md
@@ -0,0 +1,10 @@
+---
+synopsis: "`<nix/fetchurl.nix>` now uses TLS verification"
+category: Fixes
+prs: [11585]
+credits: edolstra
+---
+
+Previously `<nix/fetchurl.nix>` did not do TLS verification. This was because the Nix sandbox in the past did not have access to TLS certificates, and Nix checks the hash of the fetched file anyway. However, this can expose authentication data from `netrc` and URLs to man-in-the-middle attackers. In addition, Nix now in some cases (such as when using impure derivations) does *not* check the hash. Therefore we have now enabled TLS verification. This means that downloads by `<nix/fetchurl.nix>` will now fail if you're fetching from a HTTPS server that does not have a valid certificate.
+
+`<nix/fetchurl.nix>` is also known as the builtin derivation builder `builtin:fetchurl`. It's not to be confused with the evaluation-time function `builtins.fetchurl`, which was not affected by this issue.