You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Select and add SSH keys within instance create form #1818
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).
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.
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.
Activity
david-crespo commentedon Dec 15, 2023
david-crespo commentedon Dec 16, 2023
Love that the checkbox design is very compact but it could get arbitrarily tall unless we put it in a box that can scroll.
benjaminleonard commentedon Dec 18, 2023
Considered a few solutions but perhaps the simplest would be a "More ↓" if there's more than x number of keys.
david-crespo commentedon Dec 18, 2023
Yeah, that works. 99.9% of the time there should not be more than a few keys.
david-crespo commentedon Dec 18, 2023
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.
charliepark commentedon Dec 19, 2023
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.
david-crespo commentedon Feb 1, 2024
Closed by #1867