-
Notifications
You must be signed in to change notification settings - Fork 897
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
Private key is lost when key pairs are autogenerated #13102
Comments
I agree that this is currently not useful. The above does look useful. I would also like a call back so that the keypair can have the correct tagging applied as allowing everyone access to both the public and the private key is less than useful. By having a callback I could apply tags which control access. |
@Fryguy, @dclarizio I thought we handled the case where the user creates a KeyPair in MIQ. Is this an OpenStack-specific issue? Or, is this something that's a problem with all providers? |
We do not create key pairs in ManageIQ at the moment as far as I'm aware. We fetch them from the provider, and we don't get back the private part of the key pair when we do it. However, we've always wanted to have this feature and I would expect it to be implemented as is done here. |
@Fryguy, on the |
@Fryguy ManageIQ/Cloudforms should internally generates a key-pair and then submit the public key portion to OpenStack then allows user to download the private key. Without the ability to download the private key renders the feature The other thing we can do is to make the public key field mandatory. |
I was not aware we were creating native key pairs, and if that's the case, then yes, this is a bug, IMO, because without the private key, it's pointless. |
@blomquisg Assigned to you, but can you reassign? cc @bronaghs |
By not providing a public key on the form here, /auth_key_pair_cloud/new, at least with openstack the cloud provider generates a new public key pair. However then the private key is lost and only the fingerprint is saved making that key pair useless.
I fixed locally by doing
But i realize that might be somewhat controversial. If people are ok with this change, I'll submit a PR. Then some thought probably needs to go into UI around letting users retrieve it and optionally delete it.
If not then the public key field should probably be required.
The text was updated successfully, but these errors were encountered: