Skip to content

secrets: Sort and filter credentials in the list command - #779

Open
ABuljko wants to merge 2 commits into
Nitrokey:mainfrom
ABuljko:secrets-list-sort-and-filter
Open

secrets: Sort and filter credentials in the list command#779
ABuljko wants to merge 2 commits into
Nitrokey:mainfrom
ABuljko:secrets-list-sort-and-filter

Conversation

@ABuljko

@ABuljko ABuljko commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
  • Add --pattern, --kind, --touch-button, --pin-protected, --pws filters and --sort/--reverse to nitropy nk3 secrets list
  • Fix UnicodeDecodeError on names that are not valid UTF-8, restore --hexa
  • Add device-free tests, wired into make test

Fixes: #498

@ABuljko
ABuljko marked this pull request as ready for review August 7, 2026 09:37
@ABuljko
ABuljko requested a review from a team as a code owner August 7, 2026 09:37
@ABuljko
ABuljko requested review from daringer, james-knippes, mmerklinger, robin-nitrokey and sosthene-nitrokey and removed request for a team August 7, 2026 09:37
ABuljko added 2 commits August 7, 2026 11:46
- Fix UnicodeDecodeError in list ListItem.__str__ decodes labels
  without a fallback, but labels are arbitrary byte strings
- Restored --hexa
- Add device-free tests and run them from the test target
- Add --pattern, --kind, --touch-button, --pin-protected and --pws
  filters, combined with a logical AND
- Add --sort (label, kind) and --reverse; label sorting is now case
  insensitive
@ABuljko
ABuljko force-pushed the secrets-list-sort-and-filter branch from 4a07b55 to 86dcb57 Compare August 7, 2026 09:53
@daringer daringer self-assigned this Aug 19, 2026
@robin-nitrokey
robin-nitrokey removed their request for review August 19, 2026 13:27
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.

secrets: Sort and filter credentials

2 participants