More Info:

Ensure that the contained database authentication database flag for Cloud SQL on the SQL Server instance is set to off.

Risk Level

Medium

Address

Security

Compliance Standards

CISGCP, CBP

Triage and Remediation

Remediation

To remediate the “Database Authentication Flag Should Be Disabled” misconfiguration for GCP using GCP console, follow these steps:

  1. Open the Google Cloud Console and navigate to the Cloud SQL instances page.
  2. Select the instance you want to remediate.
  3. Click on the Edit button at the top of the page.
  4. Scroll down to the “Authorization” section.
  5. In the “Authorized networks” section, click on the “Add network” button.
  6. Add your IP address or the IP address range that should be authorized to access the instance.
  7. In the “Database flags” section, click on the “Add database flag” button.
  8. Add the flag “skip_grant_tables” and set its value to “on”.
  9. Click on the “Save” button to save the changes.

By following these steps, you have disabled the database authentication flag and added the authorized network to access the instance.