Skip to content

Return NotFound for an empty key history object - #52

Open
FlorianFranzen wants to merge 1 commit into
trussed-dev:mainfrom
FlorianFranzen:feat/empty-key-history
Open

FlorianFranzen wants to merge 1 commit into
trussed-dev:mainfrom
FlorianFranzen:feat/empty-key-history

Conversation

@FlorianFranzen

Copy link
Copy Markdown
Contributor

GET DATA for the key history object now answers NotFound while no retired certificate exists, like a YubiKey without one. Some clients (yubikey.rs) read this object while enumerating certificates through a slot table that maps a pseudo-slot onto it and abort when the content does not parse as a certificate.

Tested in command_response.ron: absent on a fresh card; after a certificate is stored for a retired slot, the object appears with one certificate counted.

FlorianFranzen added a commit to FlorianFranzen/piv-authenticator that referenced this pull request Oct 16, 2026
- 2a1fbc7 Return NotFound for an empty key history object
FlorianFranzen added a commit to FlorianFranzen/piv-authenticator that referenced this pull request Oct 16, 2026

This branch has not been deployed

No deployments
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.

1 participant