Repository navigation
fix: PostgreSQL 18.6 with su-exec to clear Marketplace CVEs - #2
Merged
Merged
Conversation
* fix: replace gosu with su-exec to eliminate Go stdlib CVE gosu 1.19 is built with Go 1.24.6 which contains CVE-2025-68121 (fixed in 1.24.13). No newer gosu release available. su-exec is a minimal C alternative available in Alpine packages, providing the same CLI interface. Symlink gosu -> su-exec maintains compatibility with docker-entrypoint.sh. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: disable upstream CI, add SBOM workflow - Disable ci.yml and verify-templating.yml (upstream CI, not needed) - Add sbom.yml: build image, generate CycloneDX SBOM (Syft), scan vulnerabilities (Grype), upload artifact Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제
GCP Marketplace(
envector-sm)가 게시된 postgres 이미지에서 취약점을 통보했습니다(CVE-2026-10536, 11564, 11856, 18924, 19931 등). 이 이미지는 이 fork의release/v18.4로 빌드한 PostgreSQL 18.4입니다. 2026-10-13의 grype DB로 ARpostgres:1.5.0을 다시 스캔하니 HIGH/CRITICAL이 78건이었습니다.원인
채택한 해결 방안
release/v18.6은 upstream docker-library/postgres의 "Update 18 to 18.6" 커밋(e00e1bd3)입니다.release/v18.4와 비교하면18/alpine3.23/Dockerfile은 PostgreSQL 18.6과 그 sha256, upstream이 바꾼 LLVM 19 → 21만 다릅니다.선택 이유
검증 방법
18/alpine3.23/Dockerfile에 gosu 다운로드가 없고 su-exec를 쓰는 것을 확인했습니다.관련 문서
docs/runbooks/marketplace/gcp-infra-ops.md(Third-party Image Forks)