Ensure Alibaba cloud ALB ACL restricts public access

Error: Alibaba cloud ALB ACL does not restrict public access

Bridgecrew Policy ID: BC_ALI_NETWORKING_5
Checkov Check ID: CKV_ALI_29
Severity: LOW

Alibaba cloud ALB ACL does not restrict public access

Description

Disabling the public network access properly improves security by ensuring your Azure Database for Alibaba cloud ALB ACL configuration can only be accessed from a private endpoint.

Fix - Runtime

Fix - Buildtime

resource "alicloud_alb_acl_entry_attachment" "phew" {
  acl_id      = alicloud_alb_acl.fail.id
  entry       = "10.0.0.0/16"
  description = var.name
}