fix: require TLS for the legacy-api DB connection
보안 리뷰 재지적(prefer는 평문 허용). DB 서버는 WP-09에서 TLS를 켠 상태로 구축하므로 처음부터 sslmode=require로 둔다(서버 인증서 검증은 WP-09에서 확정).
This commit is contained in:
1 parent
de771a5f1f
commit
390a903dbb
1 file changed
+1
-1
@@ -15,7 +15,7 @@ unset TOKEN
|
||||
ENV_FILE=/opt/selfheal/legacy-api.env
|
||||
umask 077
|
||||
{
|
||||
printf 'DB_DSN=postgres://app:%s@10.20.0.20:5432/app?sslmode=prefer\n' "${DB_PASSWORD}"
|
||||
printf 'DB_DSN=postgres://app:%s@10.20.0.20:5432/app?sslmode=require\n' "${DB_PASSWORD}"
|
||||
} > "$ENV_FILE"
|
||||
unset DB_PASSWORD
|
||||
docker compose --env-file "$ENV_FILE" -f compose.yaml up -d --pull always --remove-orphans
|
||||
|
||||
Reference in new issue
Block a user