Why it matters
Verbose error logging writes statement detail and internals to the log, which then needs the same protection as the data.
How to fix it
Set the log_error_verbosity database flag as the benchmark recommends and restart if the engine requires it.
What TrustIvan reads
- Google Cloud: the collector reads what this check needs, so it passes or fails.
Cloud accounts are read with read-only access. These results describe configuration; they are not an attestation that a benchmark is met. The access to grant: Google Cloud.
Benchmark controls
- CIS Google Cloud Platform Foundation Benchmark 3.0.0, control
6.2.1: PostgreSQL log_error_verbosity is DEFAULT or stricter
Control numbers are the published ones; the titles are TrustIvan's own short descriptions. The benchmarks belong to their publishers, who do not endorse TrustIvan.
Related checks
- PostgreSQL does not log disconnections
Google CloudSeverity: Low
cloud.database.flag.pg-log-disconnections - PostgreSQL logs statement text by duration
Google CloudSeverity: Low
cloud.database.flag.pg-log-min-duration-statement - PostgreSQL does not log connections
Google CloudSeverity: Low
cloud.database.flag.pg-log-connections - PostgreSQL does not log statements that cause errors
Google CloudSeverity: Low
cloud.database.flag.pg-log-min-error-statement - MySQL lists every database to every user
Google CloudSeverity: Low
cloud.database.flag.mysql-skip-show-database - PostgreSQL logs fewer messages than WARNING
Google CloudSeverity: Low
cloud.database.flag.pg-log-min-messages
Terms: CSPM (cloud security posture management), CIS Benchmarks, Least privilege
All cloud posture checks · The whole catalogue · How this works in TrustIvan · Documentation