From ee14e1eff8eac309660c59c30af513c8012c75bd Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 22 Nov 2022 16:59:42 +0100 Subject: [PATCH 1/4] SCP connector missing authentication options to use a private key Signed-off-by: Andrea Cosentino --- kamelets/scp-sink.kamelet.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/kamelets/scp-sink.kamelet.yaml b/kamelets/scp-sink.kamelet.yaml index 798bec4f7..2bd3adf71 100644 --- a/kamelets/scp-sink.kamelet.yaml +++ b/kamelets/scp-sink.kamelet.yaml @@ -57,6 +57,26 @@ spec: x-descriptors: - urn:alm:descriptor:com.tectonic.ui:password - urn:camel:group:credentials + privateKeyFile: + title: Private Key File + description: Set the private key file so that the SFTP endpoint can do private key verification. + type: string + privateKeyPassphrase: + title: Private Key Passphrase + description: Set the private key file passphrase so that the SFTP endpoint can do private key verification. + type: string + strictHostKeyChecking: + title: Strict Host Checking + description: Sets whether to use strict host key checking. + type: string + default: no + useUserKnownHostsFile: + title: Use User Known Hosts File + description: If knownHostFile has not been explicit configured then use the host file from System.getProperty(user.home)/.ssh/known_hosts. + type: boolean + default: true + x-descriptors: + - 'urn:alm:descriptor:com.tectonic.ui:checkbox' dependencies: - "camel:core" - "camel:jsch" @@ -70,4 +90,8 @@ spec: parameters: username: "{{?username}}" password: "{{?password}}" + privateKeyFile: "{{?privateKeyFile}}" + privateKeyPassphrase: "{{?privateKeyPassphrase}}" + strictHostKeyChecking: "{{?strictHostKeyChecking}}" + useUserKnownHostsFile: "{{?useUserKnownHostsFile}}" strictHostKeyChecking: "no" From a5a4e7878dc6baec1e9b7e5113c3a842559937a5 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 22 Nov 2022 17:00:31 +0100 Subject: [PATCH 2/4] SCP connector missing authentication options to use a private key Signed-off-by: Andrea Cosentino --- .../resources/kamelets/scp-sink.kamelet.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml index 798bec4f7..2bd3adf71 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml @@ -57,6 +57,26 @@ spec: x-descriptors: - urn:alm:descriptor:com.tectonic.ui:password - urn:camel:group:credentials + privateKeyFile: + title: Private Key File + description: Set the private key file so that the SFTP endpoint can do private key verification. + type: string + privateKeyPassphrase: + title: Private Key Passphrase + description: Set the private key file passphrase so that the SFTP endpoint can do private key verification. + type: string + strictHostKeyChecking: + title: Strict Host Checking + description: Sets whether to use strict host key checking. + type: string + default: no + useUserKnownHostsFile: + title: Use User Known Hosts File + description: If knownHostFile has not been explicit configured then use the host file from System.getProperty(user.home)/.ssh/known_hosts. + type: boolean + default: true + x-descriptors: + - 'urn:alm:descriptor:com.tectonic.ui:checkbox' dependencies: - "camel:core" - "camel:jsch" @@ -70,4 +90,8 @@ spec: parameters: username: "{{?username}}" password: "{{?password}}" + privateKeyFile: "{{?privateKeyFile}}" + privateKeyPassphrase: "{{?privateKeyPassphrase}}" + strictHostKeyChecking: "{{?strictHostKeyChecking}}" + useUserKnownHostsFile: "{{?useUserKnownHostsFile}}" strictHostKeyChecking: "no" From f67dcf41103d33bb4dccd181a982dce0c328afcf Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 22 Nov 2022 17:06:38 +0100 Subject: [PATCH 3/4] SCP connector missing authentication options to use a private key Signed-off-by: Andrea Cosentino --- kamelets/scp-sink.kamelet.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/kamelets/scp-sink.kamelet.yaml b/kamelets/scp-sink.kamelet.yaml index 2bd3adf71..5ec1d7d8b 100644 --- a/kamelets/scp-sink.kamelet.yaml +++ b/kamelets/scp-sink.kamelet.yaml @@ -94,4 +94,3 @@ spec: privateKeyPassphrase: "{{?privateKeyPassphrase}}" strictHostKeyChecking: "{{?strictHostKeyChecking}}" useUserKnownHostsFile: "{{?useUserKnownHostsFile}}" - strictHostKeyChecking: "no" From 0b327c254d17a0e2fa8b9dce9f3122677b590037 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 22 Nov 2022 17:07:03 +0100 Subject: [PATCH 4/4] SCP connector missing authentication options to use a private key Signed-off-by: Andrea Cosentino --- .../src/main/resources/kamelets/scp-sink.kamelet.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml index 2bd3adf71..5ec1d7d8b 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml @@ -94,4 +94,3 @@ spec: privateKeyPassphrase: "{{?privateKeyPassphrase}}" strictHostKeyChecking: "{{?strictHostKeyChecking}}" useUserKnownHostsFile: "{{?useUserKnownHostsFile}}" - strictHostKeyChecking: "no"