Nifcloud LB Use HTTP Port

  • Query id: 94e47f3f-b90b-43a1-a36d-521580bae863
  • Query name: Nifcloud LB Use HTTP Port
  • Platform: Terraform
  • Severity: High
  • Category: Insecure Configurations
  • URL: Github

Description

The lb use http port
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - tf file
resource "nifcloud_load_balancer" "positive" {
  load_balancer_name = "example"
  instance_port      = 80
  load_balancer_port = 80
}

Code samples without security vulnerabilities

Negative test num. 1 - tf file
resource "nifcloud_load_balancer" "negative" {
  load_balancer_name = "example"
  instance_port      = 443
  load_balancer_port = 443
}