Skip to content

UI incorrectly displays "No SBOM" at top-level for multi-artefact images #22790

@alee-x

Description

@alee-x

Expected behavior and actual behavior:
When there are multiple artefacts for a tag, if any artefact has a SBOM the repo artefact list should indicate that a SBOM exists in the same way it does for tags with single artefacts. If this is not possible/desired, this should at least be called out in the Harbor documentation.
Screenshot of UI behaviour for single artefact tag (good/expected):

Image

Actual behavior:
When there are multiple artefacts for a tag, the repo artefact list always displays "No SBOM", even when there is one. The user has to click through to the specific OCI index artefact's list to see if any SBOMs exist.
Screenshot of UI behaviour for multiple artefact tag (bad):

Image

Screenshot of UI when clicked through to the OCI index artefact's list showing that there are SBOMs:

Image

Steps to reproduce the problem:

  1. Build multi-arch container (or container with attached provenance artefact).
  2. Push to Harbor.
  3. Go to the project repo in Harbor, select checkbox for the multi-arch image you've just pushed, and click "Generate SBOM". It will look like either nothing has happened or it has silently failed.
  4. Refresh the page, the "SBOM" column will now say "No SBOM" (or sometimes will just be blank).
  5. For the image in question, click on the folder icon ("Click to view this OCI index's artifact list") next to it.
  6. See that there are SBOMs for at least one artefact.

This also happens with "Generate SBOM on push" project setting enabled.

Versions:
Please specify the versions of following systems.

  • harbor version: v2.14.2-3a2df66d
  • docker engine version: version 27.4.1, build b9d17ea
  • docker-compose version: v2.32.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions