Защитить связи TLS и mTLS, добавить OpenBao и сервисные политики

This commit is contained in:
2026-12-04 06:42:44 +03:00
parent cb7824c14c
commit d4f64bed85
25 changed files with 1151 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
mkdir -p /tmp/db-tls
cp /tls/cert.crt /tmp/db-tls/server.crt
cp /tls/key.key /tmp/db-tls/server.key
chown -R postgres:postgres /tmp/db-tls
chmod 600 /tmp/db-tls/server.key
exec /usr/local/bin/docker-entrypoint.sh postgres -c ssl=on -c ssl_cert_file=/tmp/db-tls/server.crt -c ssl_key_file=/tmp/db-tls/server.key -c hba_file=/etc/pg_hba.conf