From 390a903dbb80433c9ad0e1da9d8834bd5d1d1f7d Mon Sep 17 00:00:00 2001 From: seonNoh Date: Thu, 24 Sep 2026 00:05:54 +0900 Subject: [PATCH] fix: require TLS for the legacy-api DB connection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 보안 리뷰 재지적(prefer는 평문 허용). DB 서버는 WP-09에서 TLS를 켠 상태로 구축하므로 처음부터 sslmode=require로 둔다(서버 인증서 검증은 WP-09에서 확정). --- vm/legacy-api/apply.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/legacy-api/apply.sh b/vm/legacy-api/apply.sh index 11e7ecf..d3d2b53 100755 --- a/vm/legacy-api/apply.sh +++ b/vm/legacy-api/apply.sh @@ -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