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 recently added the rollback protection checks in ngclient and am now improving ngclient testing situation. With hindsight the order is wrong: I've found an issue with the rollback checks
TrustedMetadataSet now considers intermediate timestamp and snapshot valid even if it is expired or version does not match meta version: it only checks final validity when the next metadata type is loaded
Updater currently decides if it needs to download a new metadata version based whether the local metadata was loaded correctly by TrustedMetadataSet
as a result updater thinks it does not need to download a new version of e.g. snapshot but then targets update fails because the final snapshot is not the correct version...
This should not be too hard to fix, but I'm trying to think if we can somehow combine this with #1523: it feels like a similar issue
the decision to check meta version and expiry at "next" metadata update is correct: otherwise Updater could forget to do it
but updater does need a way to know if the just loaded metadata is a valid final metadata or just valid intermediate metadata: this applies to both snapshot and timestamp
Activity
jku commentedon Sep 2, 2021
Some findings:
so I guess this issue and #1523 are not related...
ngclient: Fix rollback checks
ngclient: Fix rollback checks
ngclient: Fix rollback checks
ngclient: Fix rollback checks
ngclient: Fix rollback checks