[bug] Currently verifier.go
uses an empty config.Opts when calling storage/*
Retrieve*
method -> ShortKey is not defined -> no object found
#1030
Labels
kind/bug
Categorizes issue or PR as related to a bug.
In looking through the
verifer.go
logic I see that RetrieveSignatures and RetrievePayloads is called with an empty config.StorageOpts:https://github.com/tektoncd/chains/blob/main/pkg/chains/verifier.go#L76
config.StorageOpts{} contains fields including
ShortKey
which is used in ~3 storage options retrieve calls:In contrast for example, in
signing.go
these values are set:https://github.com/tektoncd/chains/blob/main/pkg/chains/signing.go#L183
IIUC, this means that retrieving objects from these storage types will not work as the keys to lookup will not be correct - ShortKey won't be set (will be
""
) which leads to the key used for lookup to be incorrectThe text was updated successfully, but these errors were encountered: