Description
In an RDB security group’s description, identify the database and the applications that need access.
Potential impact
Reusing a group without knowing its purpose can grant unintended clients access to another database.
Remediation
Changing the description replaces the group. For a live database, prepare a separate group with a different name and the required rules. Attach it to the database and test the application connection before retiring the old group.
Examples
Both excerpts show app-db in east-11. The description records the purpose of application-server access. Configure the actual rules separately.
Before
hcl
resource "nifcloud_db_security_group" "db" {
group_name = "app-db"
availability_zone = "east-11"
}
After
hcl
resource "nifcloud_db_security_group" "db" {
group_name = "app-db"
availability_zone = "east-11"
description = "Security group for application server database access"
}