Alon Bar-Lev has posted comments on this change.
Change subject: Wrap validation of fingerprint in each connect using
EngineSSHClient
......................................................................
Patch Set 3: (2 inline comments)
....................................................
File
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ssh/EngineSSHClient.java
Line 50: super.connect();
Line 51: if (_vds != null) {
Line 52: String actual = getHostFingerprint();
Line 53: String expected = _vds.getSSHKeyFingerprint();
Line 54: if (!actual.equals(expected)) {
right. this is the whole point.
Line 55: throw new GeneralSecurityException(
Line 56: String.format(
Line 57: "Invalid fingerprint %s, expected %s",
Line 58: actual,
....................................................
File
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ssh/EngineSSHDialog.java
Line 17:
Line 18: protected SSHClient _getSSHClient() {
Line 19: EngineSSHClient client = new EngineSSHClient();
Line 20: client.setVds(_vds);
Line 21: return (SSHClient) client;
well I was about to fail where we had failed with the dialog and null pointer.
I suggest a change in dialog to always have ssh client, I will post that.
Line 22: }
Line 23:
Line 24: public void setVds(VDS vds) {
Line 25: _vds = vds;
--
To view, visit http://gerrit.ovirt.org/16126
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic01517a153406c8bafc672c20b0bf8686763a2f5
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches