Skip to content

konflux: generate SBOM using syft and mobster#256

Merged
dbkreling merged 1 commit into
confidential-devhub:mainfrom
dbkreling:kata-5098-sbom-syft
Jul 8, 2026
Merged

konflux: generate SBOM using syft and mobster#256
dbkreling merged 1 commit into
confidential-devhub:mainfrom
dbkreling:kata-5098-sbom-syft

Conversation

@dbkreling

Copy link
Copy Markdown
Collaborator

Replace the empty SBOM placeholder with a proper SPDX 2.3 SBOM generated by syft and mobster, matching the approach used by osc-caa and other OSC components.

The RPM database and /etc/os-release are extracted from the QCOW2 guest image via virt-copy-out and transferred back to the Tekton pod. Syft scans the RPM database to produce a complete package inventory with PURLs, CPEs, and licenses. Mobster wraps the syft output with OCI image metadata and a reference to the osc-podvm-payload base image.

Ref: KATA-5098

@dbkreling

Copy link
Copy Markdown
Collaborator Author

/retest

Replace the empty SBOM placeholder with a proper SPDX 2.3 SBOM
generated by syft and mobster, matching the approach used by osc-caa
and other OSC components and aligned with the buildah-remote-oci-ta
task in konflux-ci/build-definitions.

The RPM database and /usr/lib/os-release are extracted from the QCOW2
guest image via virt-copy-out and transferred back to the Tekton pod.
Syft scans the RPM database to produce a complete package inventory
with PURLs, CPEs, and licenses. Mobster wraps the syft output with OCI
image metadata and a reference to the osc-podvm-payload base image.

Also updates the mobster image from v0.6.0 to v1.2.1 to match the
version used by buildah-remote-oci-ta.

Ref: KATA-5098

Signed-off-by: Daniel Kreling <dkreling@redhat.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dbkreling
dbkreling force-pushed the kata-5098-sbom-syft branch from b1d6529 to e8982d1 Compare July 4, 2026 00:09
@dbkreling

dbkreling commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator Author

As mentioned by @littlejawa on PR #254 (review) this implementation makes use of syft and mobster to create the SBOMs, similar to what we've been doing with other components.

@dbkreling
dbkreling requested a review from littlejawa July 4, 2026 10:24

@littlejawa littlejawa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@dbkreling
dbkreling merged commit c3f1a08 into confidential-devhub:main Jul 8, 2026
7 checks passed
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.

2 participants