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.