1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00

google-comute-image.nix: set umask 077 when downloading private keys from the metadata server.

This commit is contained in:
Russell O'Connor 2015-01-05 15:01:49 -05:00
parent e548a4330d
commit b19ab1f046

View file

@ -135,6 +135,8 @@ in
path = [ pkgs.wget ];
script =
''
# When dealing with cryptographic keys, we want to keep things private.
umask 077
wget="wget --retry-connrefused -t 6 --waitretry=10"
# Don't download the SSH key if it has already been downloaded
if ! [ -e /root/.ssh/authorized_keys ]; then