Files
mtusi2026lab7/security/postgres/pg_hba.conf
T
allerg1q c188a3beca
Skeleton contracts / contracts (pull_request) Blocked by required conditions
feat(lab7): implement secure messenger infrastructure with TLS, OpenBao and observability
2026-11-29 18:06:02 +03:00

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