Ensure that Huawei Cloud Relational Database Service (RDS) instances do not have public IP addresses to prevent direct internet access to databases.
Risk
RDS instances with public IP addresses are accessible from the internet, exposing databases to potential brute-force attacks, SQL injection, and unauthorized data access.
Run this check with Prowler CLI
prowler huaweicloud --checks rds_public_access
Recommendation
Remove public IP addresses from RDS instances and use VPC peering or VPN for access.
Remediation
CLI
hcloud EIP DisassociatePublicips --publicip_id=<eip_id>
Other
- Log on to the Huawei Cloud console.
- Navigate to Relational Database Service.
- Select the instance.
- Click More > Unbind EIP.
- Confirm the unbinding.
Source Code
Resource Type
NotDefined