Skip to content
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

Merged
merged 15 commits into from
Jul 1, 2024

Conversation

mm-weber
Copy link
Contributor

Uses unique uid: for all props. values to make it different from other policies.

Signed-off-by: Manuel Weber <[email protected]>
@mm-weber mm-weber requested a review from HRouhani July 1, 2024 07:35
Copy link
Contributor

@HRouhani HRouhani left a 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

@HRouhani HRouhani merged commit b093b64 into main Jul 1, 2024
7 checks passed
@HRouhani HRouhani deleted the manuel/fix-props-across-cnspec-policies branch July 1, 2024 08:47
@github-actions github-actions bot locked and limited conversation to collaborators Jul 1, 2024
Copy link
Contributor

@HRouhani HRouhani left a 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 {
Copy link
Contributor

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 {
Copy link
Contributor

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants