Skip to content

Metadata API: Missing key helper functions in Targets/Delegations #1469

Closed

Description

@jku

Root class has functionality to add and remove keys for delegated metadata (add_key()/remove_key()) but the other delegator Targets does not. It should provide same/similar functionality.

Some options:

  • Add Targets.add_key(self, role: str, key: Key) and Targets.remove_key(self, role: str, keyid: str)
  • Handle the same in Delegations object

I think the former option makes sense so that the Targets API matches Root as well as possible (and Delegations remains mostly a Targets implementation detail).

Activity

  1. changed the title [-]Metadata API: Missing key helper for Targets/Delegations[/-] [+]Metadata API: Missing key helper functions in Targets/Delegations[/+] on Jun 28, 2021
  2. added
    good first issue
    repository
    on Jun 29, 2021
  3. jku commented on Jun 30, 2021

    @jku
    MemberAuthor

    This could be fixed along with #1426 but also independently. In the latter case the implementation will be inefficient (as delegations.roles is just an array and lookups by rolename are not possible) but that's fine

  4. added
    backlog
    on Aug 18, 2021
  5. MVrachev commented on Aug 24, 2021

    @MVrachev
    Collaborator

    I want to work on this and will assign myself.
    I proposed a solution in the above pr #1537.

  6. self-assigned this
    on Aug 24, 2021
  7. added this to the Sprint 7 milestone on Sep 1, 2021
  8. modified the milestones: Sprint 7, Sprint 8 on Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

backloggood first issuerepository

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions