# Lab 7 PostgreSQL client authentication configuration. # Local Unix socket allowed only for postgres superuser (healthcheck & operator maintenance). local all postgres peer # Mandatory TLS + SCRAM-SHA-256 for all network connections to application DB. hostssl messenger all 0.0.0.0/0 scram-sha-256 hostssl messenger all ::/0 scram-sha-256 # Reject all plaintext TCP connections explicitly. hostnossl all all 0.0.0.0/0 reject hostnossl all all ::/0 reject