app_function_application_insights_enabled bug resulting in false positives #7298
Labels
bug
provider/azure
Issues/PRs related with the Azure provider
severity/high
Bug capable of collapsing large parts of the execution.
Steps to Reproduce
prowler azure --check app_function_application_insights_enabled
Expected behavior
check is only looking for APPINSIGHTS_INSTRUMENTATIONKEY environment variable and not APPLICATIONINSIGHTS_CONNECTION_STRING, either or both means Application Insights is enabled, currently if only APPLICATIONINSIGHTS_CONNECTION_STRING exists Prowler will report it as a FAIL when it is actually a PASS.
Actual Result with Screenshots or Logs
n/a
How did you install Prowler?
Cloning the repository from github.com (git clone)
Environment Resource
workstation
OS used
Windows
Prowler version
5.4.0
Pip version
24.0
Context
suggested updates:
prowler\providers\azure\services\app\app_service.py
prowler\providers\azure\services\app\app_function_application_insights_enabled\app_function_application_insights_enabled.py
The text was updated successfully, but these errors were encountered: