-
Notifications
You must be signed in to change notification settings - Fork 18
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
🧹 Fixes double mql issues: Mondoo Linux Policy #415
Conversation
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
Signed-off-by: Manuel Weber <manuel@mondoo.com>
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 Manuel, cool Job
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 Manuel, few minor issues in Azure which might be interesting!
@@ -419,7 +419,7 @@ queries: | |||
&& properties.sourceAddressPrefix == /\*|0\.0\.0\.0|<nw>\/0|\/0|internet|any/ | |||
) | |||
allNsgTCP.all(properties.destinationPortRange != "*") | |||
props.disallowedPortsRDP { | |||
props.disallowedPortsRDPMondoo { |
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 Manuel. I couldn't get why you changed the Azure properties name as we already considered the uniqueness of properties's name in the first place.
Beside if you justify the reasoning, then the name should also be reflected in the query!!!
example:
allNsgTCP.none(destinationPortRange.any(fromPort <= disallowedPortRDP && toPort >= disallowedPortRDPMondoo))
@@ -2183,7 +2183,7 @@ queries: | |||
) | |||
) | |||
allNsgUDP.all(securityRules.all(properties.destinationPortRange != "*")) | |||
props.disallowedPortsUDP { | |||
props.disallowedPortsUDPMondoo { |
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.
same problem here, and overall!
Uses unique
uid:
for allprops.
values to make it different from other policies.