Skip to content

nvme: move key commands into new keys plugin - #3664

Open
dwsuse wants to merge 6 commits into
linux-nvme:masterfrom
dwsuse:keys
Open

nvme: move key commands into new keys plugin#3664
dwsuse wants to merge 6 commits into
linux-nvme:masterfrom
dwsuse:keys

Conversation

@dwsuse

@dwsuse dwsuse commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

nvme: move key commands into new keys plugin

Consolidate gen-dhchap-key, check-dhchap-key, gen-tls-key,
check-tls-key, and tls-key into a "keys" plugin as gen-dhchap,
check-dhchap, gen-tls, check-tls, import, export, and revoke.

Splits tls-key's bundled --import/--export/--revoke modes into
separate subcommands, each with only the options it needs.

No backwards compatibility with the old command names is kept.

Fixes: #3656

dwsuse added 3 commits July 28, 2026 11:11
Consolidate gen-dhchap-key, check-dhchap-key, gen-tls-key,
check-tls-key, and tls-key into a "keys" plugin as gen-dhchap,
check-dhchap, gen-tls, check-tls, import, export, and revoke.

Splits tls-key's bundled --import/--export/--revoke modes into
separate subcommands, each with only the options it needs.

No backwards compatibility with the old command names is kept.

Signed-off-by: Daniel Wagner <dwagner@suse.com>
check-tls and check-dhchap mixed format validation with keyring mutation
behind an --insert flag. Move insertion into dedicated insert-tls
commands, and make check-tls/check-dhchap pure, read-only checks that
also report whether a matching key is already loaded, reading key data
from stdin when not given inline.

Signed-off-by: Daniel Wagner <dwagner@suse.com>
Standalone CLI end-to-end test for the "keys" plugin. Needs no device.
Restricted to gen-dhchap/gen-tls/check-dhchap/check-tls (no keyring
access), so it only needs OpenSSL, not a working kernel keyring.

Signed-off-by: Daniel Wagner <dwagner@suse.com>
Updated the library symbols and nvme keys plugin to use TP4201
Enhancements for Post-Quantum Crypto Algorithms new naming scheme:
KX-HMAC- instead of DH-HMAC-.

Signed-off-by: Daniel Wagner <dwagner@suse.com>
dwsuse and others added 2 commits July 28, 2026 17:30
Try to avoid breaking users of these deprecated commands. The new
commands support most of the old commands feature but not all. So it's
not a perfect match but still better than just breaking users.

Signed-off-by: Daniel Wagner <dwagner@suse.com>
TP4201 switches the prefix to KX. Add a the --kxchap-* version of the
arguments and hide the existing one. No need to break the existing
users.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
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.

update tls/keys commands

1 participant