Nifcloud LB Listener Use HTTP Port

  • Query id: 9f751a80-31f0-43a3-926c-20772791a038
  • Query name: Nifcloud LB Listener Use HTTP Port
  • Platform: Terraform
  • Severity: High
  • Category: Insecure Configurations
  • URL: Github

Description

The lb listener use http port
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - tf file
resource "nifcloud_load_balancer_listener" "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_listener" "negative" {
  load_balancer_name = "example"
  instance_port = 443
  load_balancer_port = 443
}