Description
Ensure every Autonomous Database on shared infrastructure either uses a private endpoint inside a VCN, or uses the Secure access from allowed IPs and VCNs only option with an access control list (ACL) of trusted IP addresses, CIDR ranges, or VCNs. The ACL must never contain 0.0.0.0/0.
Rationale
A database with unrestricted public access can be reached from anywhere, which exposes it to password attacks and exploitation of any vulnerability. Placing the database on a private endpoint, or limiting the public endpoint to known networks, keeps it away from untrusted sources and protects the data it holds.
Impact
Only trusted networks can connect to the database
Reduces exposure to password attacks and scanning
Clients outside the allowed networks lose access
Default Value
When Secure access from everywhere is selected at creation, the database can be reached from any IP address.
Pre-Requisites
Permission to manage autonomous-databases in the compartment
A list of trusted IP ranges or VCNs, or a VCN and subnet for a private endpoint
Test Plan
Sign in to the OCI Console at https://cloud.oracle.com.
Open the navigation menu, select Oracle Database, and select Autonomous Database. Choose the compartment and select the database.
In the Network section, check the Access type.
If it is Allow secure access from everywhere, or the access control list includes 0.0.0.0/0, follow the implementation steps.
Implementation Steps
Sign in to the OCI Console at https://cloud.oracle.com.
Open the navigation menu, select Oracle Database, and select Autonomous Database. Select the database.
From More actions, select Update network access (or select Edit next to Access control list).
Select Secure access from allowed IPs and VCNs only and add the trusted IP addresses, CIDR ranges, or VCNs, or select Private endpoint access only and choose the VCN and subnet.
Save the changes and confirm that approved clients can still connect.
Backout Plan
Sign in to the OCI Console at https://cloud.oracle.com.
Open the database, select Update network access, restore the previous access type and rules, and save.
Reference