-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(misconf): Update Azure network schema for new checks #9791
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
Merged
nikpivkin
merged 25 commits into
aquasecurity:main
from
yagreut:reut-update-azure-network
Nov 19, 2025
Merged
Changes from 9 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0bf9dc9
update network schema for new checks
yagreut 9210c10
Removed related resource resolution from the ARM adapter
yagreut 5ee7a00
lint fix
yagreut b5d68da
lint fix
yagreut 4e10dfd
lint fix
yagreut e0d2efa
use network. NetworkInterface
yagreut 960e332
add support for ip_forwarding_enabled
yagreut 045b842
require enabled
yagreut ddca880
require enabled in arm
yagreut e784086
create metadata via NewUnmanagedMetadata()
yagreut 1bfd206
Removed explicit empty/default value initializations from the test
yagreut fd83746
check all IP configurations
yagreut 5389c7e
Update pkg/iac/adapters/terraform/azure/network/adapt.go
yagreut 2b908fa
expect false when not set
yagreut ae5bb25
lint fix
yagreut bff9bac
return an empty slice instead of nil
yagreut 9be4468
Changed the Terraform to use a literal string
yagreut bb8d408
lint fix
yagreut 6f86175
return an empty slice
yagreut 3149828
lint fix
yagreut 47cfe0e
use var and return empty slice
yagreut 9cb856a
refactor: simplify az network parsing
nikpivkin 98fb9a1
refactor: skip network interface parsing for arm
nikpivkin 2750501
Merge remote-tracking branch 'origin' into reut-update-azure-network
nikpivkin 2a4ceb6
refactor network and fix app service parsing
nikpivkin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We have two options for handling the network interface in ARM:
Option 1:
If you do not plan to add checks that require the presence of a network interface, for example:
we can simply skip adding them during parsing.
Option 2: Otherwise, we should create metadata via
NewUnmanagedMetadata(), so that we can skip unmanaged networks in checks, for example:Personally, I prefer Option 1, but I’m not sure how these interfaces will be used.