Skip to content

fix(images): Hermes 0.1.x base 改用 libexpat 2.9.0 並新增專用受控套件 profile #95

Backlog

Description

@derekhsu

現象

Debian trixie-security 把 LibreOffice 換成 4:26.8.3.1-0+deb13u1(#92)。libreoffice-core 這個版本依賴 libexpat1 (>= 2.9.0),但 Hermes 0.1.x base(agents/hermes-01x/Dockerfile.base)安裝並斷言 libexpat1 2.8.3-1。tools 映像建置時會 hold base 的受控套件,因此 PR #93 的 Images / Hermes Tools Verify 停在 apt 步驟:

libreoffice-core : Depends: libexpat1 (>= 2.9.0) but 2.8.3-1 is to be installed
E: Unable to correct problems, you have held broken packages.

調查結論(2026-12-03)

  • libexpat1 2.9.0-1~deb13u1 在 trixie 與 trixie-security 都有,amd64 與 arm64 都有(deb.debian.org 的 Packages 索引)。兩個架構的 SHA-256 與 Dockerfile.base(OpenClaw base)已經從 snapshot.debian.org 20261017T204620Z 安裝的檔案相同。
  • Hermes 0.1.x base 用受控清單的 shared profile。agents/hermes(0.0.x)與 Deep Agents Code base 也用 shared。直接把 shared 改成 2.9.0,會讓這兩個 base 與 CLI 對已發布 base 的檢查一起改變。
  • 另一個做法是從 snapshot.debian.org 安裝 LibreOffice 4:25.2.3-2+deb13u12。Debian security tracker 顯示有 4 個 CVE 只在 4:26.8.3.1-0+deb13u1(DSA-6675-1)修好,所以不採用。

範圍

  • agents/hermes-01x/Dockerfile.base:改裝 libexpat1 2.9.0-1~deb13u1,沿用 OpenClaw base 已審過的 snapshot URL 與 amd64/arm64 SHA-256;pyexpat 斷言改成 expat_2.9.0。
  • agents/hermes-01x/Dockerfile:最終映像的 pyexpat 斷言改成 expat_2.9.0。
  • 受控套件清單新增 Hermes 0.1.x 專用 profile,libexpat1=2.9.0-1~deb13u1:src/lib/sandbox-base-image/security-package-specs.ts、scripts/security/standalone-security-package-inventory.mts,以及相關測試與 helper。
  • shared profile、agents/hermes(0.0.x)、Deep Agents Code,以及 CLI 對已發布 base 的檢查都不變。
  • test/runtime/sandbox/sandbox-base-security-packages.test.ts 的 SECURITY_IMAGES 加入 agents/hermes-01x/Dockerfile.base。

不在範圍內

驗收

  • PR 上 Hermes 0.1.x 的 base 建置(含受控清單檢查與 pyexpat 斷言)通過。
  • agents/hermes(0.0.x)、Deep Agents Code 與 OpenClaw 的受控清單與 CLI 檢查不變。

Refs #92

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions