Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Mods
GCP
Loading controls...
Mod
gcp-sqlgcp-sql
Version
5.15.0
Get Involved
Discuss on Slack

Control: 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.

The Root User Host control compares the instance's database users against the Root User Host policy for the resource (GCP > SQL > Instance > Root User Host), raises an alarm when a user named root, % or with no name can log in from any host, and takes the defined enforcement action.

Only MySQL instances are checked. Instances that are not running are skipped, because their users cannot be read, and so are on-premises instances. Read replicas and read pools are checked, but enforcement deletes users on the primary instance only. A user with no name cannot be deleted by enforcement and keeps the instance in alarm until it is removed with the MySQL client.

Resource Types

This control targets the following resource types:

  • GCP > SQL > Instance

Policies

The following policies can be used to configure this control:

  • GCP > SQL > Instance > Root User Host

Permissions

Cloud permissions used by this control and its actions:

  • cloudsql.users.delete

Category

  • Security

In Your Workspace

  • Controls by Resource report
  • Controls by Control Type report

Developers

    Control Type URI
    • tmod:@turbot/gcp-sql#/control/types/instanceRootUserHost
  • Category URI
    • tmod:@turbot/turbot#/control/categories/security
  • GraphQL
    • query controlType(id: "tmod:@turbot/gcp-sql#/control/types/instanceRootUserHost") { … }
    • query controls(filter: "controlTypeId:'tmod:@turbot/gcp-sql#/control/types/instanceRootUserHost'") { … }
  • CLI
    • Get Controls
    • turbot graphql controls --filter "controlTypeId:tmod:@turbot/gcp-sql#/control/types/instanceRootUserHost"
Guardrails
Guardrails Hub
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of practitioners love to discuss cloud governance & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy
45
Mods
164
Resource Types
2,707
Policies
1,345
Controls
131
Quick Actions
99
IAM