Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,22 @@ resource "azurerm_resource_group" "rg-aks" {
name = var.resource_group_name
location = var.location
}

# Sample NSG designed to raise a security alert. Delete for any real deployment.
resource "azurerm_network_security_group" "nsg-fail" {
name = "insecureNSG"
location = azurerm_resource_group.rg-aks.location
resource_group_name = azurerm_resource_group.rg-aks.name

security_rule {
name = "badrule"
priority = 100
direction = "Inbound"
access = "Allow"
protocol = "*"
source_port_range = "*"
destination_port_range = "*"
source_address_prefix = "*"
destination_address_prefix = "*"
}
}
Comment on lines +31 to +47

Check failure

Code scanning / checkov

Ensure that SSH access is restricted from the internet

Ensure that SSH access is restricted from the internet
Comment on lines +31 to +47

Check failure

Code scanning / checkov

Ensure that RDP access is restricted from the internet

Ensure that RDP access is restricted from the internet
Comment on lines +31 to +47

Check failure

Code scanning / checkov

Ensure that HTTP (port 80) access is restricted from the internet

Ensure that HTTP (port 80) access is restricted from the internet