Policy: GCP > SQL > Instance > Root User Host
Configure whether a MySQL GCP > SQL > Instance may have a root or anonymous database user that can log in from any host.
A user is unrestricted when its name is root, % or empty and its host is %, 0.0.0.0/0, ::/0 or empty.
If set to Enforce: Delete unrestricted, each unrestricted user is deleted from the instance. A user with no name is not deleted and keeps the instance in alarm; remove it with the MySQL client.
Note: Deleting a database user is irreversible. Applications that connect as a deleted user, such as root@%, lose access, and views, stored routines and triggers that name it as their definer can stop working.
Targets
This policy targets the following resource types:
Controls
Setting this policy configures this control:
Policy Specification
Schema Type | |
|---|---|
Default | |
Valid Values [YAML] |
|
Examples [YAML] |
|
Category
In Your Workspace
Developers
- tmod:@turbot/turbot#/control/categories/security
- tmod:@turbot/gcp-sql#/policy/types/instanceRootUserHost
- turbot graphql policy-type --id "tmod:@turbot/gcp-sql#/policy/types/instanceRootUserHost"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-sql#/policy/types/instanceRootUserHost"
Get Policy TypeGet Policy Settings
Category URI
Policy Type URI
GraphQL
CLI