More Info:

Ensure that SQL Instances are not configured with Barred Usernames

Risk Level

Low

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “SQL Instances Should Not Be Configured with Barred Usernames” in GCP using GCP console, follow these steps:

  1. Open the Google Cloud Console and select the project where the SQL instance is located.
  2. In the left navigation menu, select SQL.
  3. Select the SQL instance that you want to remediate.
  4. In the SQL instance details page, click on the “Users” tab.
  5. Review the list of users and check if there are any barred usernames (e.g., root, admin, etc.).
  6. If there are any barred usernames, click on the username to select it.
  7. Click on the “Delete” button to remove the user from the SQL instance.
  8. Repeat steps 6 and 7 for all barred usernames.
  9. Once all barred usernames have been removed, click on the “Add user account” button to create a new user account with a strong password.
  10. Follow the prompts to create a new user account, ensuring that the username and password meet the recommended security standards.
  11. Once the new user account has been created, click on the “Done” button to save the changes.

By following these steps, you will have successfully remediated the misconfiguration “SQL Instances Should Not Be Configured with Barred Usernames” in GCP using GCP console.