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.84k stars 363 forks source link

`rules.*.protocol` is slightly confusing and silently accepts wrong values #718

Open deepfire opened 7 years ago

deepfire commented 7 years ago

https://nixos.org/nixops/manual/#opt-rules._.protocol:

The protocol (tcp, udp, or icmp) that this rule describes. Use "-1" to specify All.

This option happily accepts numeric protocol IDs -- 6 and 17 for TCP and UDP, for example. The first deployment even works -- the rules are provisioned.

However, this bites, when --check is passed and the rules defined and rules returned from boto don't match up

It would be nice if the following changes were introduced:

deepfire commented 7 years ago

cc @domenkozar

coretemp commented 6 years ago

This reminded me of: https://github.com/NixOS/nixops/issues/880