-
Notifications
You must be signed in to change notification settings - Fork 77
Add ssh public key for Inband management. #520
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
Conversation
|
depends on RackHD/on-tasks#369 |
23b1637 to
098702a
Compare
|
👍 |
|
BUILD on-http #2785 : UNSTABLE
|
johren
left a comment
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.
A couple of things about the private and public keys. We do not need to encrypt or redact public keys. These can be freely shared with anyone.
Private keys, on the other hand, should never be shared with anyone. Therefore, we should not be asking the user to give us their private key. The only private keys we should be handling are those that we generate for ourselves.
lib/serializables/v1/ssh.js
Outdated
| } | ||
| if (this.publicKey) { | ||
| this.publicKey = 'REDACTED'; | ||
| } |
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.
Public keys do not need to be encrypted or redacted. These can be safely revealed to anyone.
lib/serializables/v1/ssh.js
Outdated
| } | ||
| if (self.publicKey) { | ||
| self.publicKey = encryption.encrypt(self.publicKey); | ||
| } |
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.
Public key does not need to be encrypted.
| } | ||
| ).should.eventually.have.property('publicKey').that.equals('REDACTED'); | ||
| }); | ||
|
|
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.
Public key does not need to be encrypted or redacted.
| 'publicKey' | ||
| ).and.not.equal('fake-public-key'); | ||
| }); | ||
|
|
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.
Public key does not need to be encrypted.
098702a to
f79d93a
Compare
Public key is required for ssh connection for Inband management, and private key is optional.
This is related with ODR-972.
@RackHD/corecommitters @panpan0000 @iceiilin @benbp