Skip to content

Initialize PKCS11 slots Before Getting Token Info#4803

Merged
Hayden-IO merged 3 commits into
sigstore:mainfrom
Kynson:main
Apr 7, 2026
Merged

Initialize PKCS11 slots Before Getting Token Info#4803
Hayden-IO merged 3 commits into
sigstore:mainfrom
Kynson:main

Conversation

@Kynson

@Kynson Kynson commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR is a backup for #4770. Some PKCS11 module (like YKCS11 from yubico key) requires initialization before calling GetTokenInfo. This PR can be tested with a yubico key and YKCS11.
Fixes #4768

Release Note

Fixed the issue where cosign crashes when running pkcs11-tool list-keys-uris with YKCS11 module.

Documentation

N/A

@codecov

codecov Bot commented Apr 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.76%. Comparing base (2ef6022) to head (64a0e8f).
⚠️ Report is 711 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4803      +/-   ##
==========================================
- Coverage   40.10%   37.76%   -2.35%     
==========================================
  Files         155      220      +65     
  Lines       10044    12918    +2874     
==========================================
+ Hits         4028     4878     +850     
- Misses       5530     7303    +1773     
- Partials      486      737     +251     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Hayden-IO Hayden-IO 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.

Thanks!

@Hayden-IO
Hayden-IO merged commit a6bd85f into sigstore:main Apr 7, 2026
29 checks passed
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.

PKCS11 Tool List Key URI not Initializing YKCS11 Correctly

2 participants