From 9682c52c65b69d431cf92cea9bcf353d9dd1d219 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 10:59:43 +0900 Subject: [PATCH] =?UTF-8?q?build(release):=20=EC=9D=B4=EB=AF=B8=EC=A7=80?= =?UTF-8?q?=EB=A5=BC=20=EB=A7=8C=EB=93=A4=20=EB=95=8C=20OS=20=EB=B3=B4?= =?UTF-8?q?=EC=95=88=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=EB=A5=BC=20?= =?UTF-8?q?=EB=B0=9B=EB=8A=94=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: noble로 올린 release 수동 실행(run 101)의 이미지 검사가 HIGH 2건으로 실패한다. apt와 libapt-pkg6.0t64의 CVE-2026-109518이고, 고친 버전 2.8.4ubuntu0.1이 이미 나왔다. 가장 새로운 eclipse-temurin:21-jre-noble digest(2026-10-29)에는 아직 들어오지 않았다. 정책은 고칠 수 있는 High/Critical을 실패로 둔다(2026-11-11 소유자 결정). 고른 방법: 실행 단계에서 `apt-get update && apt-get upgrade`로 이미 나온 보안 수정을 받고 패키지 목록을 지운다. desktop에서 같은 digest에 그대로 해 보니 apt가 2.8.4ubuntu0.1이 되었다. 정책 문서에 같은 내용을 적는다. 버린 대안: 예외로 두기. 정책은 아직 고친 버전이 없는 것만 예외로 둔다. 기본 이미지가 따라올 때까지 기다리기. 그동안 release가 막힌다. 위험·한계: 같은 커밋이라도 빌드한 날에 따라 OS 패키지 버전이 달라질 수 있다. digest 고정은 시작점만 고정한다. SBOM이 그 빌드의 실제 버전을 남긴다. 검증: desktop 이미지 빌드, runner release 수동 실행(이 PR 본문에 적는다). --- .github/dependency-vulnerability-policy.md | 3 ++- Dockerfile | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/dependency-vulnerability-policy.md b/.github/dependency-vulnerability-policy.md index c2b12149..80a87906 100644 --- a/.github/dependency-vulnerability-policy.md +++ b/.github/dependency-vulnerability-policy.md @@ -24,7 +24,8 @@ GitHub dependency review와 dependency submission은 GitHub.com API에만 있어 릴리스 이미지(2026-11-11 소유자 결정): - 기본 이미지는 고칠 수 있는 최신 digest로 둔다(`Dockerfile`, 지금 `eclipse-temurin:21-jre-noble`). - OS 패키지의 High/Critical도 아래 표대로 막는다. 고친 버전이 있으면 새 digest로 고친다. + OS 패키지의 High/Critical도 아래 표대로 막는다. 최신 digest가 Ubuntu 보안 업데이트보다 늦을 수 있어 + 이미지를 만들 때 `apt-get upgrade`로 이미 나온 수정을 받는다(2026-11-12: apt CVE-2026-109518). - 아직 고친 버전이 없는 High/Critical만 `.trivyignore.yaml`에 이유와 `expired_at`을 달아 둔다. - 라이선스: 배포하는 의존성의 금지 라이선스(Trivy CRITICAL)만 막는다. 배포하는 것은 기본 조립의 jar이므로 `src/bootstrap/app/gradle.lockfile`의 `runtimeClasspath` 항목을 본다. 그 밖의 라이선스 결과(OS 패키지, diff --git a/Dockerfile b/Dockerfile index 5fc53fa5..e8205522 100644 --- a/Dockerfile +++ b/Dockerfile @@ -124,6 +124,16 @@ LABEL org.opencontainers.image.title="caskeleton" \ # A release image without source/version metadata is not an artifact this contract permits. RUN test -n "${BUILD_VERSION}" && test -n "${GIT_SHA}" && test -n "${SOURCE_URL}" +# ---- OS security updates ---------------------------------------------------- +# The release scan fails on a High or Critical OS finding that has a fix. The newest Temurin digest +# can lag the Ubuntu security updates: on 2026-11-12 it carried apt 2.8.3, and the scan failed on +# CVE-2026-109518, fixed in 2.8.4ubuntu0.1. The image takes the published updates when it is built +# and drops the package lists again. The digest above stays the starting point; what this adds is +# whatever the archive has fixed since that digest was made. +RUN apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends upgrade \ + && rm -rf /var/lib/apt/lists/* + # ---- Locale / timezone (D4) ------------------------------------------------- # C.UTF-8 is available in eclipse-temurin:21-jre-noble without installing extra packages. # Do NOT use en_US.UTF-8 — it requires the locales package and may not exist in a slim image.