-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add allow_port_from_internet matcher to azurerm_network_security_group #248
Conversation
…tocol as this also allows TCP Signed-off-by: Gavin Reynolds <gavin@chef.io>
Signed-off-by: Gavin Reynolds <gavin@chef.io>
Signed-off-by: Gavin Reynolds <gavin@chef.io>
…ationPortRange string properties as it modifies state. Use Array concatenation that does not modify the destinationPortRanges array and return that instead Signed-off-by: Gavin Reynolds <gavin@chef.io>
…ential source of confusion Signed-off-by: Gavin Reynolds <gavin@chef.io>
…llow_port_from_internet Signed-off-by: Gavin Reynolds <gavin@chef.io>
…variety of source address prefix(es) and destination port range(s) Signed-off-by: Gavin Reynolds <gavin@chef.io>
Integration tests pass:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gsreynolds !
Thanks @gsreynolds @skpaterson - This was a very important feature for Inspec users!
also below features:
|
Description
I need to write controls that match on arbitrary ports, not just SSH and RDP.
Additionally:
allow_ssh_from_internet
andallow_rdp_from_internet
matchers to useallow_port_from_internet
underneathmatches_port?
to create the Ruby Ranges and use.cover?
on to check if a port is included in a security rule)Issues Resolved
Related: #243, #244
Check List
rake lint
passes