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
#716 (related to #245) introduces a persistent cache that tracks:
a) all policy entries in the repo
b) all attestations entries in the repo
c) the last verified entry for a particular ref
There are several open questions still regarding how the cache must operate to avoid unexpected / surprising behavior from the users' pov.
Should a user opt into using a persistent cache, perhaps via a gittuf.usePersistentCache option in their git config? Alternatively, should such an option be to opt out of using the cache?
Should the user have a flag (e.g., --ignore-cache) to not use the cache during verification?
Relevant log output if the discussion pertains to existing gittuf functionality
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Right. I agree having a local cache of such information is sensible.
In my view, so long as we end up with a solution that does not introduce any vulnerabilities / issues regardless of the repository / other user behavior, this is a positive.
One other thing we may want to consider is that a user may want to receive this information from another device for some reason. I think a sensible reason for doing so is when a user moves to a new laptop, they may not want to redo all of the checking for each of their repos. While this may happen naturally if they copy all file system state over, it may not happen in other cases. It could also (in theory) be the case that for a large repo like the Linux kernel, one decides to go from some later verification point which has been validated by a very large number of people you trust. (I'm not arguing this is a good model in all cases, I'm just saying that people will want this to happen, I think.)
The cache as it is implemented is just a file on disk that could be easily moved over. I think using someone else's cached states is interesting, and perhaps ties into #190 as well to bootstrap trust for the cache itself?
Add a description
#716 (related to #245) introduces a persistent cache that tracks:
a) all policy entries in the repo
b) all attestations entries in the repo
c) the last verified entry for a particular ref
There are several open questions still regarding how the cache must operate to avoid unexpected / surprising behavior from the users' pov.
gittuf.usePersistentCache
option in their git config? Alternatively, should such an option be to opt out of using the cache?--ignore-cache
) to not use the cache during verification?Relevant log output if the discussion pertains to existing gittuf functionality
Code of Conduct
The text was updated successfully, but these errors were encountered: