Skip to content

fix(build): install Debian packages from the 2026-12-01 snapshot to pick up security updates - #185

Merged
TN019 merged 1 commit into
mainfrom
fix/debian-snapshot-security-updates
Dec 1, 2026
Merged

TN019 merged 1 commit into
mainfrom
fix/debian-snapshot-security-updates

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Why

The release workflow for v1.0.0 failed at the Trivy step. The build image installs and upgrades Debian packages from the 2026-10-30 snapshot, and bookworm has published security updates since then (apt, PAM, zlib, zstd, the kernel headers and others). Trivy reported 256 high and 4 critical findings in gatepost-build:current, all with fixed versions available. The lab image builds on the same image and sources.

What changed

  • Dockerfile.build reads the debian and debian-security archives from the 2026-12-01 snapshot. The pinned libsodium-dev=1.0.18-1+deb12u1 is still the bookworm version.
  • CHANGELOG.md and CHANGELOG.zh-CN.md record the update under Unreleased.

How to verify

  • CI on this pull request builds the new image and runs lint and all four presets.
  • Run the release workflow on this branch (gh workflow run release.yml --ref fix/debian-snapshot-security-updates); the Trivy step should pass for both images.

背景

v1.0.0 的发布工作流在 Trivy 扫描这一步失败。构建镜像从 2026-10-30 的 Debian 快照安装并升级软件包,而 bookworm 之后又发布了一批安全更新(apt、PAM、zlib、zstd、内核头文件等)。Trivy 在 gatepost-build:current 里报出 256 个高危、4 个严重漏洞,都已有修复版本。实验室镜像基于同一个镜像和软件源。

改动

  • Dockerfile.build 的 debian 和 debian-security 两个软件源改用 2026-12-01 的快照。固定的 libsodium-dev=1.0.18-1+deb12u1 仍是 bookworm 当前版本。
  • CHANGELOG.md 和 CHANGELOG.zh-CN.md 的“未发布”部分记录了这次更新。

怎么验证

  • 本 PR 的 CI 会构建新镜像,并跑 lint 和四个构建预设。
  • 在本分支上运行发布工作流(gh workflow run release.yml --ref fix/debian-snapshot-security-updates),两个镜像的 Trivy 扫描都应通过。

@TN019
TN019 merged commit 8b2dd00 into main Dec 1, 2026
6 checks passed
@TN019
TN019 deleted the fix/debian-snapshot-security-updates branch December 1, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant