git.iko.soy/typeable/nixpkgs
on master help sign in
EC2: Don't blackhole 169.254.169.254

https://github.com/NixOS/nixops/issues/267

commit32b9ca3219e38b4a0b8d01156ac93c4c92413b08 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateTue 30 Jun 2015, 17:03 (11 years ago) parent16406e6
1 file changed−10
nixos/modules/virtualisation/ec2-data.nix−10
nixos/modules/virtualisation/ec2-data.nix−10
@@ -31,8 +31,6 @@ with lib;
3131
3232 script =
3333 ''
34− ip route del blackhole 169.254.169.254/32 || true
35−
3634 wget="wget -q --retry-connrefused -O -"
3735
3836 ${optionalString (config.networking.hostName == "") ''
@@ -67,14 +65,6 @@ with lib;
6765 (umask 077; echo "$key" > /etc/ssh/ssh_host_dsa_key)
6866 echo "$key_pub" > /etc/ssh/ssh_host_dsa_key.pub
6967 fi
70−
71− ${optionalString (! config.ec2.metadata) ''
72− # Since the user data is sensitive, prevent it from
73− # being accessed from now on. FIXME: remove at some
74− # point, since current NixOps no longer relies on
75− # metadata secrecy.
76− ip route add blackhole 169.254.169.254/32
77− ''}
7868 '';
7969
8070 serviceConfig.Type = "oneshot";