More Info:

Ensure that Cloud SQL Admin Activity Audit Logging is configured properly across all projects.

Risk Level

Medium

Address

Security

Compliance Standards

NIST, HIPAA, ISO27001, HITRUST, SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the “Cloud SQL Admin Activity Audit Logging Should Be Enabled” misconfiguration for GCP using GCP console, please follow these steps:

  1. Open the Google Cloud Console and navigate to the Cloud SQL instances page.
  2. Select the instance you want to configure.
  3. Click on the “Edit” button at the top of the page.
  4. Scroll down to the “Database flags” section.
  5. Click on the “Add database flag” button.
  6. In the “Flag name” field, enter “log_admin_operations”.
  7. In the “Flag value” field, enter “on”.
  8. Click on the “Save” button at the bottom of the page.

This will enable Cloud SQL Admin Activity Audit Logging for the selected instance. The logs will be stored in Stackdriver Logging, which you can access from the Cloud Console.

Additional Reading: