Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS key changes cleanups #901

Merged
merged 2 commits into from
Oct 28, 2024
Merged

TLS key changes cleanups #901

merged 2 commits into from
Oct 28, 2024

Conversation

igaw
Copy link
Collaborator

@igaw igaw commented Oct 28, 2024

A couple of small fixes to make the recent TLS key handling work in all cases.

The first commit addresses the problem that the TLS key would always added to the config output. This doesn't make sense if the user only provided --tls on the command line. Thus we can rip out all the export code triggered from the nvme_dump_config path.

Second commit addresses the problem that the JSON output was not identically with the input. The TLS keys got additional encoded. That's unnecessary and nvme-cli already disabled this for the JSON output, so we should properly also do this in libnvme.

igaw added 2 commits October 28, 2024 17:18
The config output should only contain the entries which were also
provided by the user via the command line. Thus we should not lookup the
keys used in the keystore when only --tls is used.

Signed-off-by: Daniel Wagner <[email protected]>
TLS keys are using a base64 encoding thus the additional slash encoding
will corrupt the key. nvme-cli already uses this option for the rest, so
it should be fine here too.

Signed-off-by: Daniel Wagner <[email protected]>
@igaw igaw merged commit 6f13888 into linux-nvme:master Oct 28, 2024
15 checks passed
@igaw igaw deleted the tls-keys-fixes branch October 28, 2024 17:15
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