cyberark / conjur-policy-parser

Parser library for Conjur Policy YAML
MIT License
0 stars 1 forks source link

Validate CIDR value doesn't include bits to the right of the netmask #30

Closed micahlee closed 4 years ago

micahlee commented 4 years ago

When validating CIDR values, we should also verify that the CIDR notation doesn't include any address bits to the right of the netmask.

For example, 10.0.0.0/24 is a valid CIDR value, while 10.0.0.1/24 is not.