Skip to content

release: the SBOM names Docker's packages by Docker's repository (#621) - #667

Merged
aledbf merged 1 commit into
mainfrom
fix/621
Nov 23, 2026
Merged

aledbf merged 1 commit into
mainfrom
fix/621

Conversation

@aledbf

@aledbf aledbf commented Nov 23, 2026

Copy link
Copy Markdown
Member

Why

A scanner reading the release's SBOM has to find each package's advisories where they are published. Since #609 the image installs Docker's six packages from Docker's apt repository, and the SBOM still named them pkg:deb/ubuntu/..., so a scanner looked in Ubuntu's advisories and missed Docker's. Closes #621.

What

  • release.BOM names each .deb that versions.yaml pins by its repository. For example pkg:deb/docker/docker-ce@5:29.10.0-1~ubuntu.26.04~resolute?arch=amd64&repository_url=https://download.docker.com/linux/ubuntu, with the .deb's SHA-256 and its download URL as a distribution reference.
  • The vendor comes from a table of the repositories pinned. That table has one row, Docker's. A .deb pinned from a repository with no row is refused, so it cannot fall back to Ubuntu's name.
  • The release refuses an image whose package list lacks a pinned package, or has it at a version other than the pin. Both come from the image's dpkg database, so this checks what the build produced.

Verified

  • TestAReleaseShipsEveryPartAndSaysWhatItIs reads the machine.cdx.json that Pack writes and asserts docker-ce's purl, SHA-256 and URL, and that no pkg:deb/ubuntu/docker-ce is left.
  • TestAReleaseMissingAnythingIsRefused covers each refusal: docker-ce missing, another version, a version that only starts with the pin's, and a repository with no vendor.
  • Run against a real image's packages.txt (local _output, with buildx corrected to today's pin), all six came out pkg:deb/docker.
  • go tool task lint test mutate pass locally, with 33 mutants refused and 0 surviving.

🤖 Generated with Claude Code

Since #609 the image installs Docker's six packages from Docker's apt
repository, pinned in versions.yaml, and the SBOM still built their
purls from packages.txt as pkg:deb/ubuntu: a scanner looked for them in
Ubuntu's advisories and missed Docker's. Each .deb versions.yaml pins is
now pkg:deb/<vendor> with its repository_url, the .deb's SHA-256 and its
download URL, and the release refuses an image that did not record a
pinned package at the pinned version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit 704f278 into main Nov 23, 2026
14 checks passed
@aledbf
aledbf deleted the fix/621 branch November 23, 2026 17:44
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.

The release SBOM records Docker's packages as pkg:deb/ubuntu

1 participant