Description
On Tencent Cloud CDB, internet_service = 1 enables an internet path to the database. Security groups and network settings determine which clients can reach it.
Potential impact
A public path allows outside clients to attempt logins. Exposed credentials can permit reads or changes within the database account’s privileges.
Remediation
If internet access is unnecessary, test private connections for applications and administrators before setting internet_service = 0. If it is required, limit security groups to approved clients and enforce strong authentication and least-privilege database access.
Examples
Only the internet service setting changes on this instance. Supply supported engine and capacity settings, then check that required connections succeed and unapproved sources are denied.
Before
resource "tencentcloud_mysql_instance" "app_db" {
internet_service = 1
engine_version = "5.7"
charge_type = "POSTPAID"
slave_deploy_mode = 0
instance_name = "tf-example-mysql"
mem_size = 4000
volume_size = 200
}
After
resource "tencentcloud_mysql_instance" "app_db" {
internet_service = 0
engine_version = "5.7"
charge_type = "POSTPAID"
slave_deploy_mode = 0
instance_name = "tf-example-mysql"
mem_size = 4000
volume_size = 200
}