Files
mtusi2026lab7/infra/postgres/pg_hba.conf
T

10 lines
647 B
Plaintext

# 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