name:Log Connections Disabled for PostgreSQL Database Instances
author:princechaddha
severity:medium
description:|
Ensure that the "log_connections" database flag is enabled for your Google Cloud PostgreSQL database instances. The "log_connections" flag causes each attempted connection to the database instance to be logged, including successful client authentication requests. This flag helps with monitoring and auditing database access. Only PostgreSQL database administrators can change this parameter at session start, and it cannot be changed after the session starts.
impact:|
If "log_connections" is not enabled, you may lose critical information about database connections, impacting monitoring and security auditing capabilities.
remediation:|
Enable the "log_connections" database flag for your PostgreSQL instances in Google Cloud. This can be done by updating the instance settings and applying the change.