oxidecomputer / oxidecomputer/console

"Add SSH Key" UI could provide more context and pointers

Open
#2,287 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
228
Forks
22
Avg merge
19h 42m
Merged PRs (30d)
32

Description

Currently, the "Add SSH Key" UI in the console looks like this:

2024-06-24-115435_1186x1760_scrot

I worked out what it wanted by trial and error against its validation logic. It might be nice to provide more proactive clues as to what it wants. For instance:

  • The name has to be a valid DNS name, which I'm separately reporting in Omicron since my key names aren't
  • The description is helpfully noted as optional, so we're good
  • The big mysterious public key box wants an openssh-style public key line

Maybe we could add guidance at the bottom, something like:

Example: ssh-rsa ......
(Link to where to find it on various platforms)

Or better yet, a file upload dialog to save me the trouble of doing cat ~/.ssh/id_rsa.pub | xclip -i and then middle-clicking the text box.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the console's Add SSH Key UI and inspect the existing validation logic to document the accepted name and public-key formats. Decide whether the scoped improvement is inline guidance, platform-specific pointers, or file upload; done means the selected guidance or upload flow is available without trial and error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.