Pin and verify tools in the OS image stemcell builder

Aperta
#806 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@vighes ci sta già lavorando.

Dal 12/11/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, ruby, shell

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Ruby
Stelle
52
Fork
124
Merge medio
1g 2h
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudfoundry/bosh-linux-stemcell-builder

Tutte le issue di cloudfoundry/bosh-linux-stemcell-builder

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.