Skip to content

role keyids still not ordered #1752

@jku

Description

@jku

We tried to fix issues with this in #1478 but apparently failed. Role keyids in data that we deserialize may be unsorted: We must preserve this order as it affects canonical json. Currently we put the keyids in a set which sorts them.

I suppose we have to make Role.keyids a list again: The only "ordered set" in python seems to be a OrderedDict with keys only -- and that would look weird in an API.

The downside of making Role.keyids a list is that now duplicates could be added to Role.keyids . This should not be a big worry as there is proper API for it: Root.add_key()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions