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

fix(azure): properly check ports in AVD-AZU-0058 and AVD-AZU-0050 #268

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

nikpivkin
Copy link
Contributor

@nikpivkin nikpivkin commented Oct 9, 2024

@nikpivkin nikpivkin marked this pull request as ready for review October 9, 2024 05:57
@nikpivkin nikpivkin requested a review from simar7 as a code owner October 9, 2024 05:57
Comment on lines -52 to +55
port_range_includes(from, to, port) if from <= port <= to
port_range_includes(from, to, port) if {
from.value <= port
port <= to.value
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious is this valid:

if from.value <= port <= to.value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kind of expression doesn't work in Rego: https://play.openpolicyagent.org/p/2RS5HYLT5d

@simar7 simar7 added this pull request to the merge queue Oct 10, 2024
Merged via the queue into aquasecurity:main with commit e0baac7 Oct 10, 2024
5 checks passed
@nikpivkin nikpivkin deleted the azure-network branch October 10, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(misconf): “AVD-AZU-0048” and “AVD-AZU-0050 ” checks are triggered for any port
2 participants