Why it matters
Without connection records you cannot tell who connected, from where, or when a credential was first misused.
How to fix it
Set the log_connections 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.2: PostgreSQL log_connections is on
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.
This check is written from the same template as PostgreSQL does not log connections (Azure), which lists every variant with its benchmark control.
Related checks
- MySQL lists every database to every user
Google CloudSeverity: Low
cloud.database.flag.mysql-skip-show-database - PostgreSQL does not log disconnections
Google CloudSeverity: Low
cloud.database.flag.pg-log-disconnections - MySQL allows LOAD DATA LOCAL
Google CloudSeverity: Low
cloud.database.flag.mysql-local-infile - PostgreSQL error logging is more verbose than DEFAULT
Google CloudSeverity: Low
cloud.database.flag.pg-log-error-verbosity - PostgreSQL keeps logs for three days or fewer
AzureSeverity: Low
cloud.database.flag.azure-pg-log-retention - PostgreSQL logs statement text by duration
Google CloudSeverity: Low
cloud.database.flag.pg-log-min-duration-statement
Terms: CSPM (cloud security posture management), CIS Benchmarks, Least privilege
All cloud posture checks · The whole catalogue · How this works in TrustIvan · Documentation