liveBook · Manning

Software bill of materials

As explained in Developer Experience on Kubernetes

A software bill of materials is a machine-readable inventory of the components and dependencies contained in a software artifact such as a container image.

A software bill of materials (SBOM) is a machine-readable inventory of the components and dependencies contained in a software artifact, such as a container image. Image-building workflows generate it alongside the artifact so security tools can inspect what the image contains. section 3.2.3 section 3.2.4

Container-image workflows use SBOMs in several practical ways:

  • Cloud Native Buildpacks include SBOM generation as one stage in a sequence of buildpacks used to containerize an application. section 3.2.3
  • The Pack CLI can download the SBOM for a locally built image into an output directory. section 3.2.3
  • ko embeds an SBOM in the built image, publishes it with registry images, and makes it available to vulnerability scanners. section 3.2.4

Inspecting an image SBOM

Build the Appointments image with Pack, then run `pack sbom download appointments:0.0.1-SNAPSHOT --output-dir image-sboms`. With ko, build locally using `ko build --local -B -t 0.0.1-SNAPSHOT`; the resulting image includes an SBOM, although a locally built image has not published it to a registry. section 3.2.3 section 3.2.4

pack sbom download appointments:0.0.1-SNAPSHOT \
  --output-dir image-sboms
 

Use the Pack command listing to inspect the concrete workflow for downloading an image SBOM. section 3.2.3

How Developer Experience on Kubernetes covers it

How deep it goes
Explains generation, retrieval, embedding, and publication, but does not detail SBOM formats or scanner implementation.
Examples
Demonstrates Pack SBOM download and ko image builds for the Java and Go Appointments services.
What you can do after
Apply it via Pack or ko to obtain image component inventories and feed them to vulnerability scanners.
How it connects
Connects SBOMs to container images, source-to-image builds, vulnerability scanning, Cloud Native Buildpacks, Pack, and ko.

Also explained in

Compare how 5 books explain software bill of materials →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Developer Experience on Kubernetes. The section links point to the parts of the book it draws on.