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

No SSH pub key content or fingerprint in WebUI #4555

Open
webteam-app opened this issue Nov 9, 2022 · 2 comments
Open

No SSH pub key content or fingerprint in WebUI #4555

webteam-app opened this issue Nov 9, 2022 · 2 comments
Milestone

Comments

@webteam-app
Copy link

Bug originally filed by nobuto at https://bugs.launchpad.net/bugs/1994943

MAAS can manage SSH keys for a user, but it doesn't show the content of public keys nor fingerprint. That makes key management hard like users are not able to distinguish keys precisely other than the comment.

Would be nice to a capability to reveal either the full content of a pub key or a fingerprint (ssh-keygen -l).

For the record, an API request can reveal the full content.

$ maas admin sshkeys read
Success.
Machine-readable output follows:
[
{
"key": "ssh-ed25519 (...) ubuntu@maas",
"id": 1,
"keysource": "",
"resource_uri": "/MAAS/api/2.0/account/prefs/sshkeys/1/"
}
]

@tmerten
Copy link
Collaborator

tmerten commented Jan 12, 2023

(targets 3.4 now)

In terms of UX this is currently showing the head of the key, whereas the tail usually has the useful info to distinguish the keys.

We could either show the tail or show head and tail and cut out the middle. Personally I have a tendency to the latter.

@tmerten tmerten added this to the MAAS 3.4.0 milestone Jan 12, 2023
@nobuto-m
Copy link

There is a way to generate a fingerprint as a part of OpenSSH (ssh-keygen -l) so the column width doesn't have to be the full length of the key content (head or tail is not a correct way of distinguishing keys from a technical point of view).

I prefer seeing a key comment if exists, a fingerprint if not. Then the full content in a hover pop-up or something.

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

No branches or pull requests

3 participants