bomres is a Software Bill-of-Material (SBoM) Resolver specifically designed for Alpine-based container images. It allows to create a detailed SBOM based on two sets of information:
bomres processes, correlates and combines these information in conjunction with information provided by the apk package manager to generate a detailed SBoM, exposing more information about the image than provided by the package manager itself. In particular, the resulting SBoM contains information about the location of the source code of a package, patches applied by the Alpine community and security information.
bomres consists of two components:
The overall workflow is shown in the figure below:
bomres can be deployed in three different scenarios:
More detailed documentation on how to deploy each scenario to come soon.
Ubuntu 22.04.1 LTS
podman version 3.4.4
To run bomres as a containerized toolset, perform the following steps:
$ podman run --rm docker.io/bomres/base_os_alpine make > Makefile
$ make config
$ vim product/build/base_os/config/packages
$ vim product/build/base_os/config/settings
$ make build
$ make resolve
$ make download_source # Download all source code, including patches
To run bomres as a service
$ podman run -i -t -p 8082:8080 docker.io/bomres/alpine_resolver server
$ firefox http://localhost:8082/resolver/alpine/v1/ui/
The two docker images could be invoked inside another container
$ cd tools/base_os_alpine/test/podman
$ make run
bomres is current in early stages and primarily meant to demonstrate the concept. All contributions, PRs, issues, comments, are welcome.
Issue88 contains document how to to use metadata generated by containers directly from python. The design pattern is inspired by the Onion model.
bomres is available under the Apache 2.0 license.