python-tuf/tuf/api
Martin Vrachev 922c5d28e5 Add support for unrecognized fields in Metadata
The Document formats section (chapter 4) of the
specification says the following:

"All of the formats described below include the ability to add more
attribute-value fields to objects for backward-compatible format
changes. Implementers who encounter undefined attribute-value pairs in
the format must include the data when calculating hashes or verifying
signatures and must preserve the data when re-serializing."

I initially thought it's applicable only to the SIGNED fields as
"undefined attribute-value pairs in the format must include the data
when calculating hashes or verifying signatures"
This doesn't mean that the sentence before that excludes "Metadata" as a
possible place for additional fields.
The other maintainers agreed with me and we are going to add support for
'unrecognized_fields" inside "Metadata".

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2022-02-14 12:12:54 +02:00
..
serialization Make (De)SerializationError a RepositoryError 2022-01-19 16:52:19 +02:00
__init__.py tuf/api: Expose tuf.api as a package 2020-10-15 14:35:14 +01:00
exceptions.py exceptions: rename FetcherHTTPError 2022-02-04 11:03:12 +02:00
metadata.py Add support for unrecognized fields in Metadata 2022-02-14 12:12:54 +02:00