Files
mtusi2026lab7/security/postgres/pg_hba.conf

14 lines
587 B
Plaintext

# PostgreSQL authentication rules for MTUSI Lab7.
#
# Local Unix socket is accessible only inside the DB container.
# This rule preserves local maintenance during the TLS transition.
local all all trust
# Explicitly reject all unencrypted TCP connections.
hostnossl all all 0.0.0.0/0 reject
hostnossl all all ::/0 reject
# Require TLS and password authentication for TCP clients.
hostssl all all 0.0.0.0/0 scram-sha-256
hostssl all all ::/0 scram-sha-256