You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure these issues are related; #872 is more about attestation lookup failing for entries created before payloadHash was part of the type.
I agree with your assessment that v.env.Payload returns the base64-encoded payload as a string, which isn't the correct thing to compute the index key against. I think we should change the digest computation to be off of the []byte returned from v.env.DecodeB64Payload() instead of taking the hash over the base64 string.
Description
Currently at head, we cannot use the search index to find entries by payloadHash, which should be indexed:
rekor/pkg/types/intoto/v0.0.1/entry.go
Lines 77 to 78 in 744339f
Version
I spun up a local rekor instance and uploaded an intoto attestation. I logged what keys were added. Check out the payloadHash in all cases:
The entry:
The indexed keys:
Note that the payload hashes do NOT match
The text was updated successfully, but these errors were encountered: