-
Notifications
You must be signed in to change notification settings - Fork 75
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
Authorized SSH keys for VM's based on cloud image #1150
Conversation
Updated the component to use TrashIcon |
Any update on this? |
Still on design-review phase |
@garrett do you mind looking at it once you find some time? |
4a8374b
to
2dcbda4
Compare
Updated the design a bit. Now we validate the ssh key upon the user input, and once it's a valid key, we confirm its validity by turning a text-input field into a text: Screencast.from.2023-09-11.14-26-14.webm |
9816bcd
to
84b2dad
Compare
@garrett updated the design: Screencast.from.2023-10-02.14-11-55.webm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel confident showing such an error. Reason is simple. Your |
6466235
to
770e3d2
Compare
|
9d048ee
to
7833a5a
Compare
Thanks! The tests need work though, they crash with firefox. Should be reproducible locally with |
Blocked by cockpit-project/cockpit#19442 |
13 is carriage return (enter) This is a CRLF issue. HTML 5 spec says that textareas should send both CR and LF. Interpretation between browsers may be different, as there are different ways it is interpreted:
It should be sending CRLF on a post. A guess: It might be normalized differently in JavaScript across browsers (as the CRLF normalization is specified to happen on a post, not necessarily JavaScript). |
In other words, the code should check for both CR and LF, not just one or the other. It may need to look for CRLF explicitly... or CR and/or LF. This might also vary not just on browser, but also on OS, as Windows famously uses different line endings than UNIX. |
cockpit-project/cockpit#19442 landed, so you should be able to bump the testlib SHA. We just did it this morning, so there should be near-zero chance of something regressing. |
ac36d74
to
56b4bdb
Compare
Test failures seem unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Unfortunately this has a conflict, otherwise I had accepted it. But one small test thing to add still.
45ce5b4
to
019c71a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Tests are still failing 😭
EDIT: nevermind, found the issue |
18a7457
to
3e81868
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers! Assuming green, let's land this at last 🎉
isSmall | ||
aria-label={_("Remove item")} | ||
icon={<TrashIcon />} | ||
onClick={() => removeitem(idx)} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added line is not executed by any test. Details
@skobyda Can you please add a proper screenshot for the release notes, and add an initial text? Thanks! |
Fixes #431
pkg/lib
These ssh keys are then passed to cloud-init's user-data config as "ssh_authorized_keys": https://cloudinit.readthedocs.io/en/latest/reference/examples.html#configure-instances-ssh-keys
Machines: Add SSH keys to VM creation dialog
The provided keys are stored in the
~/.ssh/authorized_keys
file of the designated non-root user, enabling immediate SSH access to the user account right after creating the VM.