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
The text was updated successfully, but these errors were encountered:
brainrake
changed the title
deploy_nixos leaks .gitignored files into the world-readable nix store
deploy_nixos leaks files from the working directory into the world-readable nix store
Sep 21, 2022
Describe the bug
deploy_nixos
evaulates an expression that has./.
as src and leaks the contents of the working directory into the world-readable nix store. The working directory may contain (.gitignored) secrets so this is a security issue.https://github.com/tweag/terraform-nixos/blob/646cacb12439ca477c05315a7bfd49e9832bc4e3/deploy_nixos/nixos-instantiate.sh#L22
To Reproduce
Use
deploy_nixos
moduleExpected behavior
Don't leak files from working directory.
Environment
The text was updated successfully, but these errors were encountered: