Why it matters
Disconnection records give each session's end and duration, which an investigation needs alongside the connection records.
How to fix it
Set the log_disconnections database flag as the benchmark recommends and restart if the engine requires it.
What TrustIvan reads
- Microsoft Azure: the collector does not read this yet, so the check reports not assessed, never a pass.
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: Microsoft Azure.
Benchmark controls
- CIS Microsoft Azure Foundations Benchmark 2.1.0, control
4.3.4: PostgreSQL log_disconnections 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.
Variants of this check
One more check reads the same way and take the same fix; each has its own check ID and control.
- PostgreSQL does not log disconnections (Google Cloud,
cloud.database.flag.pg-log-disconnections; CIS Google Cloud Platform Foundation Benchmark 3.0.0 control6.2.3)
Related checks
- PostgreSQL does not log connections
AzureSeverity: Low
cloud.database.flag.azure-pg-log-connections - PostgreSQL keeps logs for three days or fewer
AzureSeverity: Low
cloud.database.flag.azure-pg-log-retention - PostgreSQL does not log checkpoints
AzureSeverity: Low
cloud.database.flag.azure-pg-log-checkpoints - MySQL allows LOAD DATA LOCAL
Google CloudSeverity: Low
cloud.database.flag.mysql-local-infile - PostgreSQL connection throttling is off
AzureSeverity: Low
cloud.database.flag.azure-pg-connection-throttling - MySQL lists every database to every user
Google CloudSeverity: Low
cloud.database.flag.mysql-skip-show-database
Terms: CSPM (cloud security posture management), CIS Benchmarks, Least privilege
All cloud posture checks · The whole catalogue · How this works in TrustIvan · Documentation