forked from mtusi2026/mtusi2026lab7
lab7: PKI, mTLS infra, OpenBao non-dev, hardening, lifecycle scripts
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user