Azure ACR HTTPS not enabled for webhook misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC2_AZURE_28
Category - Subcategory
Public Exposure - Encryption And Protocols
Provider
AZURE
Severity
MEDIUM
Framework
Terraform, Terraform Plan
Mapped CSPM/KSPM Rule
5290ede6-4164-467d-9e3a-f55f23593765
Impact
Ensure that Azure Container Instances are configured with a managed identity. This configuration is crucial to augment the security of the container instance through the provision of an identity for Azure resources. It gives the developer the ability to manage credentials directly through Azure instead of creating and maintaining security credentials manually. If not set properly, security credentials may be exposed or misused, which can lead to a significant security risk such as unauthorized access or data breach. Thus, having the container instance managed by Azure greatly enhances the security and compliance of your operations.
How to Fix
Resource: azurerm_container_group
Arguments: identity.type
To fix the issue, you need to enable the managed identity for Azure Container Instances by adding a identity block with type set. [source,go]
resource "azurerm_container_group" "example" { name = "example-continst" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name os_type = "Linux"
identity {
type = "SystemAssigned"
}
container { // other configurations } }
Last updated
Was this helpful?
