NixOS / nixops

NixOps is a tool for deploying to NixOS machines in a network or cloud.
https://nixos.org/nixops
GNU Lesser General Public License v3.0
1.87k stars 365 forks source link

resources: Allow full access to nodes #1456

Closed roberth closed 3 years ago

roberth commented 3 years ago

The previous restriction seems rather arbitrary. By allowing full access to nodes, one can for example derive security group rules from the NixOS firewall options (or custom options), simplifying deployments substantially.

For context:

Without this, the security groups must be hand-written for each node, which is cumbersome and error-prone. Also note that it's easy to hit the max SGs per node, so using an SG per service does not scale. SGs themselves are much less limited at around 2500 per VPC, so you can get away with a security group per node. A particularly huge VPC could even use a naming scheme to deduplicate equivalent SGs, although you'd be hitting NixOps practical limitations such as evaluation performance well before that.