Защитить связи TLS и mTLS, добавить OpenBao и сервисные политики
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user