jku / repository-playground

Community artifact repository workflow experiments
Other
7 stars 4 forks source link

signer should validate everything possible before signing #95

Open jku opened 1 year ago

jku commented 1 year ago

I'm currently improving #30 and adding a lot of output.

What will be missing from that PR is validation: As part of SignerRepository.status() or in a separate SignerRepository.validate() we should go through the roles metadata and validate it: letting the user sign invalid metadata would be bad.

Examples of what to validate:

this requires careful analysis in the end but we can also start incrementally...

Many of these validation steps we will also want in the actual repo side -- I'm not sure if this needs code sharing or not