Skip to content

Add support for storing multiple signing keys in different YK slots - #759

Merged
renatav merged 8 commits into
masterfrom
renatav/support-multiple-yk-slots
Jul 17, 2026
Merged

Add support for storing multiple signing keys in different YK slots#759
renatav merged 8 commits into
masterfrom
renatav/support-multiple-yk-slots

Conversation

@renatav

@renatav renatav commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Description (e.g. "Related to ...", etc.)

See #758

Code review checklist (for code reviewer to complete)

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Commit messages are meaningful (see this for details)
  • Tests have been included and/or updated, as appropriate
  • Docstrings have been included and/or updated, as appropriate
  • Changelog has been updated, as needed (see CHANGELOG.md)

renatav added 7 commits July 11, 2026 00:37
Let setup-signing-key/setup-test-key target any PIV slot instead of
always hardcoding SIGNATURE, add a list-slots command to see what's
free/occupied, and make get-roles check every occupied slot
_slot_occupied only checked for a certificate, missing a slot that
holds a key without one (e.g. an interrupted setup(), or a slot
provisioned by another tool) - such a slot would be silently
overwritten even without --force. Now checks get_slot_metadata first
(reflects the key directly), falling back to the certificate check
on firmware that doesn't support it (pre-5.3, e.g. YubiKey 4).
…fault

Reset-based setup now generates a random management key and stores it
in the card's PIN-protected data object
@renatav
renatav marked this pull request as ready for review July 15, 2026 13:31
@renatav
renatav requested a review from n-dusan July 15, 2026 14:36

@n-dusan n-dusan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good. tests were very helpful for the review, thanks.

let's add a changelog entry. do we need to update the platform following these changes?

@renatav

renatav commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

@n-dusan I don't think we need to update platform, but let's not merge this is until we've released other TAF fixes

@renatav

renatav commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

Turns out no urgent TAF fixes are necessary. I've updated them Changelog and will merge this.

@renatav
renatav merged commit f6fb1b7 into master Jul 17, 2026
10 checks passed
@renatav
renatav deleted the renatav/support-multiple-yk-slots branch July 17, 2026 18:17
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.

2 participants