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
1.0.0 blockersTo be addressed before 1.0.0 releasebacklogIssues to address with priority for current development goalsdiscussionDiscussions related to the design, implementation and operation of the project
I think Metadata API should not require its users to import securesystemlib exceptions to be able to call Metadata API methods, it just seems weird -- as a user of TUF I am not necessarily directly using securesystemslib at all, yet I need to handle exceptions from it
Current behavior:
sign(), from_file() and to_file() are documented to raise these exceptions
Expected behavior:
I should only need to import modules from tuf to be able to handle tuf exceptions. This could mean either
re-exporting the securesystemslib exceptions in tuf metadata or exceptions module or
handling the securesystemslib exceptions and raising something in python-tuf: this is what I think verify_delegate() does
I agree with the objective of the issue.
I think each of the cases should be solved separately as a securesystemslib exception can describe exactly what we want to tell the user in an eventual problem and other times the securesystemslib exception will be an implementational detail.
After some discussion last week and looking at this again: I think at least sign() should operate like the verify functions: handle the sslib exceptions and raise just a single exception (UnsignedMetadataError seems appropriate). I've been trying to imagine a scenario where a repository would like to handle the individual errors... and I cannot think of any, they don't seem useful.
1.0.0 blockersTo be addressed before 1.0.0 releasebacklogIssues to address with priority for current development goalsdiscussionDiscussions related to the design, implementation and operation of the project
Activity
MVrachev commentedon Nov 9, 2021
I agree with the objective of the issue.
I think each of the cases should be solved separately as a securesystemslib exception can describe exactly what we want to tell the user in an eventual problem and other times the securesystemslib exception will be an implementational detail.
jku commentedon Dec 21, 2021
After some discussion last week and looking at this again: I think at least sign() should operate like the verify functions: handle the sslib exceptions and raise just a single exception (UnsignedMetadataError seems appropriate). I've been trying to imagine a scenario where a repository would like to handle the individual errors... and I cannot think of any, they don't seem useful.