Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update the ecdsa key type to the latest spec (1.0.32). #508

Merged

Conversation

kommendorkapten
Copy link
Member

The old ecdsa key type is kept to be able to consume older metadata files.

Release Notes:

The go-tuf package now understands the ecdsa key type as specified by The Updateframework specification v1.0.32.

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).

Description of the changes being introduced by the pull request:
TUF spec v1.0.32 does not specify the ecdsa-sha2-nistp256 key type anymore. Instead the key type is ecdsa. See this PR for more details.
This fix adds ecdsa as a known key type, and the default to use when returning the "public data" for a key. The old format (ecdsa-sha2-nistp256) is still recognized as a valid key type.

Please verify and check that the pull request fulfills the following requirements:

  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

Copy link
Contributor

@rdimitrov rdimitrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @kommendorkapten 👍

@kommendorkapten kommendorkapten changed the title Update the ecdsa key type to the latest spec (1.0.32). fix: update the ecdsa key type to the latest spec (1.0.32). Jun 20, 2023
The old ecdsa key type is kept to be able to consume older metadata files.

Signed-off-by: Fredrik Skogman <[email protected]>
@rdimitrov rdimitrov changed the title fix: update the ecdsa key type to the latest spec (1.0.32). feat: Update the ecdsa key type to the latest spec (1.0.32). Jun 20, 2023
@rdimitrov rdimitrov changed the title feat: Update the ecdsa key type to the latest spec (1.0.32). fix: Update the ecdsa key type to the latest spec (1.0.32). Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants