Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Mods
GCP
Loading policies...

Policy: GCP > CIS v4.0 > 6 - Cloud SQL Database Services > 6.02 - PostgreSQL Database > 6.02.05 - Ensure 'Log_min_messages' Database Flag for Cloud SQL PostgreSQL Instance is set at minimum to 'Warning'

Configures auditing against a CIS Benchmark item.

Level: 1

The log_min_messages flag defines the minimum message severity level that is considered as an error statement. Messages for error statements are logged with the SQL statement. Valid values include DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, INFO, NOTICE, WARNING, ERROR, LOG, FATAL, and PANIC. Each severity level includes the subsequent levels mentioned above. ERROR is considered the best practice setting. Changes should only be made in accordance with the organization's logging policy.

Targets

This policy targets the following resource types:

  • GCP > SQL > Instance

Primary Policy

This policy is used with the following primary policy:

  • GCP > CIS v4.0 > 6 - Cloud SQL Database Services > 6.02 - PostgreSQL Database

Controls

Setting this policy configures this control:

  • GCP > CIS v4.0 > 6 - Cloud SQL Database Services > 6.02 - PostgreSQL Database > 6.02.05 - Ensure 'Log_min_messages' Database Flag for Cloud SQL PostgreSQL Instance is set at minimum to 'Warning'

Policy Specification

Schema Type
string
Default
Per GCP > CIS v4.0 > 6 - Cloud SQL Database Services
Valid Values [YAML]
  • Per GCP > CIS v4.0 > 6 - Cloud SQL Database Services
    
  • Skip
    
  • Check: Benchmark
    

Category

  • CIS > Controls v7 > 06 Maintenance, Monitoring, and Analysis of Audit Logs > 6.03 Enable Detailed Logging

In Your Workspace

  • Policy Settings by Type report

Developers

    Category URI
    • tmod:@turbot/cis#/control/categories/v070603
  • Policy Type URI
    • tmod:@turbot/gcp-cisv4-0#/policy/types/r060205
  • GraphQL
    • query policyType(id: "tmod:@turbot/gcp-cisv4-0#/policy/types/r060205") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/gcp-cisv4-0#/policy/types/r060205'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/gcp-cisv4-0#/policy/types/r060205'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/gcp-cisv4-0#/policy/types/r060205"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-cisv4-0#/policy/types/r060205"
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
39
Mods
130
Resource Types
2,226
Policies
1,100
Controls
35
Quick Actions
83
IAM