Skip to content

Metadata API: from_securesystemslib_key() should handle sslib error #1818

Closed

Description

@jku

from #1785

from_securesystemslib_key() should raise ValueError if securesystemslib.FormatError happens in format_keyval_to_metadata().

from_securesystemslib_key() is a helper so that repository code does not need to figure out how to safely get a Key from a securesystemslib private key. The securesystemslib call done there is a bit useless (we could just probe the dictionary ourselves) but since we call the function we should make sure to handle FormatError

Activity

  1. MVrachev commented on Feb 8, 2022

    @MVrachev
    Collaborator

    I can take this one.
    If someone else was planning to work on this, please write a comment.

  2. self-assigned this
    on Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions