embulk-input-remote 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10dbe52e92593a8e9836bb00d63351ff80dea30c
4
- data.tar.gz: bded1e4ef86b18c20ba77b179b842cd9b7d5d70c
3
+ metadata.gz: 88e5bc21e8eeb0d61376ec7626a8d443d8fe5c4b
4
+ data.tar.gz: 0a06f9cd98e4f64d52879be8ec29bff2d5e5c57c
5
5
  SHA512:
6
- metadata.gz: b34d1a75751fb95afeba5c5fa9ac8b419c3ac244296c8e62b5b93811b29f8579ebd57eaebc639066dd66501205dcd1620299a273b8efefed0b93693fd7344104
7
- data.tar.gz: 82d625edc95d9665ff27ad32a3cb9d22deeb354e98862a1eb7550e4d530188baf196ed6bfe7e878e6f5e8833c1b822770e2d6879e9fd36ed9ce341a8c66b9114
6
+ metadata.gz: 6adb21a1630eacf828830737604aed526e6e539f5235451b801cd4b2c925c57091e09a491cc662a32d0e8fda36ad1aded80ff9d393af717e5ea8a9b8c0af3141
7
+ data.tar.gz: 965b336e050e0f5e26c0cca10866957dd518e70e98b1ca1f2bca28247321895cf2b1d90458aa8d32bb66c33675720edbd0e89640efd1bb52d4fe7b16fb8952f8
data/README.md CHANGED
@@ -23,6 +23,7 @@ This plugin load data from Remote hosts by SCP
23
23
  - **type**: public_key or password (string, default: public_key)
24
24
  - **key_path**: Path of secret key (If you choose type "public_key") (string, default: "~/.ssh/id_rsa or id_dsa")
25
25
  - **password**: SSH password (If you choose type "password") (string)
26
+ - **skip_host_key_verification**: If the option is true, HostKey verification will be skipped (boolean, default: false)
26
27
 
27
28
  ## Example
28
29
 
data/build.gradle CHANGED
@@ -13,7 +13,7 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.8"
16
+ version = "0.1.9"
17
17
 
18
18
  dependencies {
19
19
  compile "org.embulk:embulk-core:0.7.10"
@@ -26,12 +26,4 @@ in:
26
26
  - {name: time, type: timestamp, format: '%Y-%m-%d %H:%M:%S'}
27
27
  - {name: purchase, type: timestamp, format: '%Y%m%d'}
28
28
  - {name: comment, type: string}
29
- #out: {type: stdout}
30
- out:
31
- type: file
32
- path_prefix: {{ env.PROJECT_ROOT }}/example/csv/sample_
33
- file_ext: csv
34
- formatter:
35
- type: csv
36
- delimiter: "\t"
37
- newline: CRLF
29
+ out: {type: stdout}
@@ -6,6 +6,7 @@ import net.schmizz.sshj.connection.channel.direct.Session;
6
6
  import net.schmizz.sshj.signature.SignatureDSA;
7
7
  import net.schmizz.sshj.signature.SignatureECDSA;
8
8
  import net.schmizz.sshj.signature.SignatureRSA;
9
+ import net.schmizz.sshj.transport.verification.PromiscuousVerifier;
9
10
  import net.schmizz.sshj.xfer.InMemoryDestFile;
10
11
  import net.schmizz.sshj.xfer.LocalDestFile;
11
12
 
@@ -40,6 +41,9 @@ public class SSHClient implements Closeable {
40
41
  }
41
42
 
42
43
  public void connect(String host, Map<String, String> authConfig) throws IOException {
44
+ if (Boolean.valueOf(authConfig.get("skip_host_key_verification"))) {
45
+ client.addHostKeyVerifier(new PromiscuousVerifier());
46
+ }
43
47
  client.loadKnownHosts();
44
48
  client.connect(host);
45
49
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinichi Ishimura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-14 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -62,7 +62,7 @@ files:
62
62
  - classpath/bcpkix-jdk15on-1.51.jar
63
63
  - classpath/bcprov-jdk15on-1.51.jar
64
64
  - classpath/ecc-25519-java-1.0.1.jar
65
- - classpath/embulk-input-remote-0.1.8.jar
65
+ - classpath/embulk-input-remote-0.1.9.jar
66
66
  - classpath/jzlib-1.1.3.jar
67
67
  - classpath/sshj-0.15.0.jar
68
68
  homepage: https://github.com/kamatama41/embulk-input-remote