ЛР 7: mTLS, OpenBao и проверка компрометации worker

This commit is contained in:
celis
2026-11-13 04:25:27 +03:00
parent 20afc2c790
commit 1991fcd737
114 changed files with 11918 additions and 127 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
install -o postgres -g postgres -m 600 /run/identity/tls.key /tmp/pg.key
exec docker-entrypoint.sh postgres \
-c ssl=on -c ssl_min_protocol_version=TLSv1.2 \
-c ssl_cert_file=/run/identity/tls.crt -c ssl_key_file=/tmp/pg.key \
-c hba_file=/etc/lab/pg_hba.conf -c ident_file=/etc/lab/pg_ident.conf \
-c password_encryption=scram-sha-256 -c max_connections=100 -c shared_buffers=128MB
+3
View File
@@ -0,0 +1,3 @@
local all messenger peer map=operator
hostssl messenger all 0.0.0.0/0 scram-sha-256
hostssl messenger all ::/0 scram-sha-256
+1
View File
@@ -0,0 +1 @@
operator postgres messenger