Nifcloud RDB Has Common Private Network

  • Query id: 9bf57c23-fbab-4222-85f3-3f207a53c6a8
  • Query name: Nifcloud RDB Has Common Private Network
  • Platform: Terraform
  • Severity: Low
  • Category: Networking and Firewall
  • URL: Github

Description

The rdb has common private network
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - tf file
resource "nifcloud_db_instance" "positive" {
  identifier     = "example"
  instance_class = "db.large8"
  network_id     = "net-COMMON_PRIVATE"
}

Code samples without security vulnerabilities

Negative test num. 1 - tf file
resource "nifcloud_db_instance" "negative" {
  identifier     = "example"
  instance_class = "db.large8"
  network_id     = nifcloud_private_lan.main.id
}