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
Description of issue or feature request:
Subclasses of Key implement a from_dict deserialization interface to load known keys e.g. from TUF metadata. Some of the current implementations do basic input validation too.
Unless it is directly related to deserialization, I think, input validation should happen in __init__, to also be effective on manually created objects.
Description of issue or feature request:
Subclasses of
Key
implement afrom_dict
deserialization interface to load known keys e.g. from TUF metadata. Some of the current implementations do basic input validation too.Unless it is directly related to deserialization, I think, input validation should happen in
__init__
, to also be effective on manually created objects.Examples:
securesystemslib/securesystemslib/signer/_key.py
Lines 150 to 151 in 09e092e
securesystemslib/securesystemslib/signer/_sigstore_signer.py
Lines 42 to 46 in 09e092e
Current behavior:
Key implementations validate inputs in
from_dict
Expected behavior:
Key implementations validate inputs in
__init__
The text was updated successfully, but these errors were encountered: