Pin and verify tools in the OS image stemcell builder

Đang mở
#806 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@vighes đang làm issue này rồi.

Từ ngày 12/11/2026.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, ruby, shell
Lĩnh vực
build-system, devops, security

Hướng nghiên cứu

Start with the amd64 and arm64 Meta4 download and build steps in ci/docker/os-image-stemcell-builder/Dockerfile, then the argument handling in ci/tasks/build-docker-args.sh. Read stemcell_builder/stages/bosh_go_agent/apply.sh to see how Meta4 fetches the agent. Done means each downloaded tool has a pinned version or commit and a checksum check that fails the image build, with the arm64 path built from a commit SHA.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

Harden the tools installed in the os-image-stemcell-builder image. The builder currently downloads the amd64 Meta4 binary without a checksum and builds the arm64 fallback from a release tag selected by releases/latest. The BOSH agent stage uses this Meta4 binary to download the agent from a metalink. A compromised Meta4 binary could undermine the agent integrity check.

Review the other tools downloaded by the image, including Syft, yq, and ruby-install, and apply the same integrity and pinning approach where applicable.

Affected areas

  • ci/docker/os-image-stemcell-builder/Dockerfile
  • ci/tasks/build-docker-args.sh
  • stemcell_builder/stages/bosh_go_agent/apply.sh

Acceptance criteria

  • Pin the amd64 Meta4 download to a specific version and verify its checksum against a trusted value before use. Fail the image build if verification fails.
  • Build arm64 Meta4 from a pinned immutable commit SHA instead of a release tag.
  • Pin and verify the other tools downloaded by the builder image using appropriate trusted checksums or immutable source revisions.
  • Cover the changes with appropriate checks for both amd64 and arm64 builder paths.

Requested by @vighes in the PR discussion.

Related PR: https://github.com/cloudfoundry/bosh-linux-stemcell-builder/pull/768

Ngôn ngữ chính
Ruby
Star
52
Fork
124
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudfoundry/bosh-linux-stemcell-builder

Tất cả issue của cloudfoundry/bosh-linux-stemcell-builder

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.