Nifcloud RDB Has Public DB Access

  • Query id: fb387023-e4bb-42a8-9a70-6708aa7ff21b
  • Query name: Nifcloud RDB Has Public DB Access
  • Platform: Terraform
  • Severity: High
  • Category: Networking and Firewall
  • URL: Github

Description

The rdb has public db access
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"
  publicly_accessible = true
}

Code samples without security vulnerabilities

Negative test num. 1 - tf file
resource "nifcloud_db_instance" "negative" {
  identifier          = "example"
  instance_class      = "db.large8"
  publicly_accessible = false
}