Policy: GCP > CIS v2.0 > 6 - Cloud SQL Database Services > 6.01 - MySQL Database > 6.01.01 - Ensure That a MySQL Database Instance Does Not Allow Anyone To Connect With Administrative Privileges > Attestation
By setting this policy, you attest that you have manually verified that it complies with the relevant section of the CIS Benchmark.
From Google Cloud Console
1. Go to the Cloud SQL Instances page in the Google Cloud Platform Console using https://console.cloud.google.com/sql/
2. Select the instance to open its Overview page. 3. Select Access Control > Users
. 4. Click the More actions icon
for the user to be updated. 5. Select Change password
, specify a New password
, and click OK
.
From Google Cloud CLI
1. Set a password to a MySql instance:gcloud sql users set-password root --host=<host> --instance=<instance_name> --prompt-for-password
2. A prompt will appear, requiring the user to enter a password:Instance Password:
3. With a successful password configured, the following message should be seen:Updating Cloud SQL user...done.
Once verified, enter the date that this attestation expires. Note that the date can not be further in the future than is specified in GCP > CIS v2.0 > Maximum Attestation Duration. Set to a blank value to clear the attestation.
Resource Types
This policy targets the following resource types:
Primary Policy
This policy is used with the following primary policy:
Controls
- GCP > CIS v2.0
- GCP > CIS v2.0 > 6 - Cloud SQL Database Services > 6.01 - MySQL Database > 6.01.01 - Ensure That a MySQL Database Instance Does Not Allow Anyone To Connect With Administrative Privileges
- GCP > CIS v2.0 > 6 - Cloud SQL Database Services
- GCP > CIS v2.0 > 6 - Cloud SQL Database Services > 6.01 - MySQL Database
Policy Specification
Schema Type |
|
---|
Category
In Your Workspace
Developers
- tmod:@turbot/cis#/control/categories/v070402
- tmod:@turbot/gcp-cisv2-0#/policy/types/r060101Attestation
- turbot graphql policy-type --id "tmod:@turbot/gcp-cisv2-0#/policy/types/r060101Attestation"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-cisv2-0#/policy/types/r060101Attestation"
Get Policy TypeGet Policy Settings