Skip to content

Set the StorageOpts's key for OCI artifact to be the full identifier #476

@chuangw6

Description

@chuangw6

Feature request

There is a clear need in Grafeas backend storage to get the full identifier for an OCI artifact, that is IMAGE_URL@IMAGE_DIGEST.

Currently, the StorageOpts key is set to be just the first 12 chars of the digest for OCI artifact. That means in grafeas backend implementation, we have to do some extra work to loop over all the images generated from a taskrun, and compare the first 12 chars of every single image's digest to the key field of StorageOpts in order to find the full representation IMAGE_URL@IMAGE_DIGEST. That's not good.

Therefore, it would be great if the StorageOpts key is set to be the full representation IMAGE_URL@IMAGE_DIGEST for OCI artifact beforehand instead of just first 12 chars of the digest.

Use case

When creating grafeas occurrences, we need to set the resourceUri field to be the full path of an image.

Thanks @wlynch for the idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions