Skip to content

Conversation

@lanchongyizu
Copy link
Member

Fix ODR-972:
Since we use public key as privateKey to ssh into node, which makes ssh client throw
Error: privateKey value does not contain a (valid) private key
So it doesn't use user/password at all.

The solution is making ssh private key optional.

@RackHD/corecommitters @panpan0000 @benbp @iceiilin

@JenkinsRHD
Copy link
Contributor

BUILD on-tasks #1729 : FAILURE

@iceiilin
Copy link
Member

iceiilin commented Nov 3, 2016

👍

@lanchongyizu
Copy link
Member Author

test this please

@JenkinsRHD
Copy link
Contributor

BUILD on-tasks #1730 : FAILURE

@lanchongyizu
Copy link
Member Author

test this please

@keedya
Copy link
Contributor

keedya commented Nov 3, 2016

@lanchongyizu , how can the user upload the private keys?

@amymullins
Copy link
Member

@lanchongyizu as discussed in the email thread, we should be removing ssh validation instead of making it optional in the workflow. There is still a large security concern passing the private key in the payload.

@lanchongyizu
Copy link
Member Author

@keedya @amymullins Do you agree with removing private key from RackHD?

@lanchongyizu
Copy link
Member Author

lanchongyizu commented Nov 10, 2016

The comments from @johren in ODR-972:

This is my viewpoint on dealing with the SSH keys (both public and private):

  1. SSH PUBLIC keys should remain in the OS install payload. This option is to allow the client to specify a public key that they want installed on the compute node such that the client (not RackHD) can use their private key to access the node.
  2. RackHD does not need to have (and should not have) the client's private key.
  3. If RackHD needs to access the node with an SSH key pair (for inband management/ansible) we should generate a separate key pair for RackHD. RackHD will keep that private key and install
    the corresponding public key on the node.
    So, coming from this viewpoint, I'm fine with make ssh private key optional #369 and Add ssh public key for Inband management. on-http#520 (other than not needing to encrypt/redact the public key) as long as we are not asking the client to upload their own private keys. These private keys should be ones generated by RackHD.

@panpan0000
Copy link
Contributor

@lanchongyizu , so the title should be changed to "make ssh public key optional in bootstrap payload" ?

@lanchongyizu
Copy link
Member Author

@panpan0000 No, the Public Key has already been optional, this PR is to make the Private Key optional so that RackHD works fine no matter whether Private Key exists or not.

@anhou anhou merged commit 5e8425a into RackHD:master Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants