You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will break substituters that are listed as trusted with an equivalent URI.
Steps to reproduce the issue:
On NixOS, or Nix with multi-user setup, export NIX_REMOTE=daemon from an untrusted user.
Set ~/.config/nix/nix.conf to include substituters = https://cache.nixos.org. Notice the missing slash at the end of the URI
nix-shell -p hello will warn about ignoring the substituter https://cache.nixos.org.
This issue can be reproduced with other substituter schema, such as ssh://<host>?<param1>&<param2>, ssh-ng://<host>?<param1>&<param2>, by specifying multiple parameters in the query string and permute them. Though the URIs are equivalent modulo the permutations, they are considered different.
The text was updated successfully, but these errors were encountered:
Currently testing membership of a substituter URI in the set of substituters is by string comparison:
nix/src/nix-daemon/nix-daemon.cc
Line 548 in 5886bc5
This will break substituters that are listed as trusted with an equivalent URI.
Steps to reproduce the issue:
export NIX_REMOTE=daemon
from an untrusted user.~/.config/nix/nix.conf
to includesubstituters = https://cache.nixos.org
. Notice the missing slash at the end of the URInix-shell -p hello
will warn about ignoring the substituterhttps://cache.nixos.org
.This issue can be reproduced with other substituter schema, such as
ssh://<host>?<param1>&<param2>
,ssh-ng://<host>?<param1>&<param2>
, by specifying multiple parameters in the query string and permute them. Though the URIs are equivalent modulo the permutations, they are considered different.The text was updated successfully, but these errors were encountered: