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
A new entry is created based on the parameter proposed entry.
A leaf node is created by canonicalizing the entry
The original entry calls index keys.
In many entry types, logic is performed in Canonicalize to set up the entry, and it's not clear that IndexKeys does not have access to the canonicalized entry fields. This is also a problem if Canonicalize does some operation that may modify IndexKeys.
I realized this was the root cause to the bug that @priyawadhwa fixed from #800 where assumed that intoto entries populated the Content Hash (but only canonicalized ones did).
Shouldn't IndexKeys operate on the canonicalized entry?
The text was updated successfully, but these errors were encountered:
I'm not sure this is doable since we strip a lot of information during canonicalization, on purpose. It means the index entries aren't always verifiable or repairable, though.
Description
Version
The flow of creating a log entry is curious to me:
rekor/pkg/api/entries.go
Line 173 in 4b93499
In many entry types, logic is performed in
Canonicalize
to set up the entry, and it's not clear thatIndexKeys
does not have access to the canonicalized entry fields. This is also a problem if Canonicalize does some operation that may modify IndexKeys.I realized this was the root cause to the bug that @priyawadhwa fixed from #800 where assumed that intoto entries populated the Content Hash (but only canonicalized ones did).
Shouldn't
IndexKeys
operate on the canonicalized entry?The text was updated successfully, but these errors were encountered: