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(core): Requires unique kids #1905

Merged
merged 3 commits into from
Feb 5, 2025
Merged

fix(core): Requires unique kids #1905

merged 3 commits into from
Feb 5, 2025

Conversation

dmihalcik-virtru
Copy link
Member

@dmihalcik-virtru dmihalcik-virtru commented Feb 4, 2025

Proposed Changes

  • When loading KAS keys, validate that key identifiers are unique
  • This will be required as we move to a key ID - first (instead of alg first) method of selecting keys
  • While here, moved some of the 'legacy conversion' code into more testable functions and generally improved testing and handling/detection of error conditions, including increasing test coverage of loading/displaying EC keys

Checklist

  • I have added or updated unit tests
  • I have added or updated integration tests (if appropriate)
  • I have added or updated documentation

Testing Instructions

- When loading KAS keys, validate that key identifiers are unique
- This will be required as we move to a key ID - first (instead of alg first) method of selecting keys
@dmihalcik-virtru dmihalcik-virtru requested a review from a team as a code owner February 4, 2025 22:16
@dmihalcik-virtru dmihalcik-virtru requested review from a team as code owners February 5, 2025 14:41
Copy link
Contributor

@mkleene mkleene left a comment

Choose a reason for hiding this comment

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

looks good, the only thing I'd say suggest is that we could be a bit more fussy with the types and have a map[string]rsaKeyLIst or something that that it's clear that we will never fail to pull an RSA or ECC key out of the map.

@dmihalcik-virtru dmihalcik-virtru added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit c1b380c Feb 5, 2025
23 checks passed
@dmihalcik-virtru dmihalcik-virtru deleted the feature/unique-kids branch February 5, 2025 17:10
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.

4 participants