theupdateframework / tuf-on-ci

A TUF repository and signing tool
Other
20 stars 11 forks source link

Validation for online-sign and build-repository #343

Open jku opened 4 months ago

jku commented 4 months ago

I would like online sign and build-repository to do more data validation:

There is a CIRepository._validate_role() but that is very focused on the signing event use case: in particular it expects there to be a "previous repository version" (self.open_prev() opens that version of a specific metadata) which only makes sense in a signing event.

Possibly we can make a more generic validate_role() and a more specific validate_signing_event_role() that uses the generic method but does the comparison to previous version as well.

jku commented 4 months ago