Azure Machine Learning Workspace is publicly accessible
Description
Disabling the public network access property improves security by ensuring your Azure Machine Learning Workspaces can only be accessed from a private endpoint. This configuration strictly disables access from any public address space outside of Azure IP range and denies all logins that match IP or virtual network-based firewall rules.
Code Example
go
resource "azurerm_machine_learning_workspace" "ckv_unittest_pass" {
name = "example-workspace"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
application_insights_id = azurerm_application_insights.example.id
key_vault_id = azurerm_key_vault.example.id
storage_account_id = azurerm_storage_account.example.id
public_network_access_enabled = false
identity {
type = "SystemAssigned"
}
encryption {
key_vault_id = azurerm_key_vault.example.id
key_id = azurerm_key_vault_key.example.id
}
}Remediation
Terraform
- Resource: azurerm_machine_learning_workspace
- Arguments: public_network_access_enabled
Rule Details
| Field | Value |
|---|---|
| ID | IAC-0651 |
| Severity | LOW |
| IaC Type | Terraform |
| Frameworks | Terraform |
| Checkov ID | CKV_AZURE_144 |