Skip to content

Select and add SSH keys within instance create form #1818

Closed

Description

@benjaminleonard

Console implementation of this 3056 when it is added to Omicron.

The current implementation automatically retrieves and inserts a user's SSH keys into the instances they create. However, it would be beneficial for users to have control over which keys are added, as well as the ability to pass an SSH key not associated with their account.

I propose adding an option to the instance_create API that accepts an array of attached SSH keys identified by name or ID, or a custom SSH key provided as a string (which will not be linked to the user's account).

For an enhanced user experience, we could also include an option that automatically incorporates a user's SSH keys. This would be particularly useful for the CLI, where retrieving SSH keys and adding them as an option is more cumbersome.

It might be reasonable to defer implementation until after FCS. In the meantime, I could work on adding a console message to inform users that all their SSH keys will be injected into the instance (where cloud-init is supported).

Activity

  1. david-crespo commented on Dec 15, 2023

    @david-crespo
  2. david-crespo commented on Dec 16, 2023

    @david-crespo
    Collaborator

    Love that the checkbox design is very compact but it could get arbitrarily tall unless we put it in a box that can scroll.

    image

  3. benjaminleonard commented on Dec 18, 2023

    @benjaminleonard
    ContributorAuthor

    Considered a few solutions but perhaps the simplest would be a "More ↓" if there's more than x number of keys.

  4. david-crespo commented on Dec 18, 2023

    @david-crespo
    Collaborator

    Yeah, that works. 99.9% of the time there should not be more than a few keys.

  5. david-crespo commented on Dec 18, 2023

    @david-crespo
    Collaborator

    Hm, how do we handle what to check by default? Check none by default? That's the only thing that feels logical, but it could also lead people to accidentally make instances that don't have any SSH keys if they expect keys injected by default.

  6. charliepark commented on Dec 19, 2023

    @charliepark
    Contributor

    Will assume a "check all / uncheck all" button would be overkill for now, assuming there won't be more than a few keys in most cases, but it could be a nice affordance if we find that's not the case.

  7. added this to the 6 milestone on Jan 10, 2024
  8. self-assigned this
    on Jan 16, 2024
  9. david-crespo commented on Feb 1, 2024

    @david-crespo
    Collaborator

    Closed by #1867

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions