goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
23.19k stars 4.67k forks source link

Notation/Cosign accessory icon not matching in artifact details page #20485

Open MinerYang opened 2 months ago

MinerYang commented 2 months ago

Coisgn and Notation signatures icon mapping properly when list accessories

Screenshot 2024-05-27 at 17 18 25

However it's not matching when click into artifact details page due to it populate purely by artifact type when get artifact itself

Screenshot 2024-05-27 at 17 22 28
GET /api/v2.0/projects/test/repositories/golang/artifacts/sha256:739a25d452fa86aaa5194ca3b26daf71667d61bebeebd8adaefc2d90c14c8d00?with_tag=false&with_scan_overview=true&with_sbom_overview=true&with_label=true&with_immutable_status=true

icon: "sha256:0048162a053eef4d4ce3fe7518615bef084403614f8bca43b40ae2e762e11e06"
MinerYang commented 2 months ago

Will add this as a follow-up issue in 2.12 since would like to add an option as withIcon to avoid performance issue