sbom.adoc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. = Software Bills of Materials (SBOMs)
  2. Every OliveTin release publishes SBOMs so you can see exactly which third-party components ship in it.
  3. == Release SBOM
  4. Each GitHub release has two release assets, both describing the same contents:
  5. * `OliveTin-<version>-sbom.cdx.json` - CycloneDX JSON
  6. * `OliveTin-<version>-sbom.spdx.json` - SPDX JSON
  7. One SBOM covers every archive, `.deb`, `.rpm`, `.apk` and MSI in the release, because they all contain the same two things:
  8. * *The OliveTin service binary.* Go modules are read from the built binary's build info, so the list only includes modules that are actually compiled in. Build tools such as golangci-lint are left out.
  9. * *The web UI.* The npm runtime dependencies come from `frontend/package-lock.json`. Development dependencies such as Vite and ESLint are left out.
  10. The SBOM is generated by `var/sbom/generate.sh`, which GoReleaser runs during the release.
  11. == Container image SBOMs
  12. Container images get their SBOM as a BuildKit attestation, one for each platform (`linux/amd64`, `linux/arm64`). It covers the Fedora base image packages as well as the OliveTin binary. To view it:
  13. [source,shell]
  14. ----
  15. docker buildx imagetools inspect ghcr.io/olivetin/olivetin:<version> --format '{{ json .SBOM }}'
  16. ----
  17. NOTE: The image attestation does not list the web UI's npm dependencies, because the image only contains the minified bundle. Use the release SBOM for those.
  18. == Scanning for vulnerabilities
  19. Any SBOM-aware scanner can read these files, for example:
  20. [source,shell]
  21. ----
  22. grype sbom:OliveTin-<version>-sbom.cdx.json
  23. ----