logstash-input-tcp 6.0.5-java → 6.0.6-java

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
  SHA256:
3
- metadata.gz: 0cb08a389f60e23d92944fa9d34519326425c8c794da67134dd6f36ce5c156e6
4
- data.tar.gz: 8e3c0728570dcf17e9f38330a9118576f08343730cfa06935b99c2cbb1ef4ccf
3
+ metadata.gz: 4dbdf0afaf0e9956001477eff23f9dcc7bdeaa82bffdb696ab66657000802662
4
+ data.tar.gz: 94b90ca185e259f016ed8a40b8303306ffd00bc9f50256db510cd29a448510f7
5
5
  SHA512:
6
- metadata.gz: 899df3894b0a24fe75dfa054be9a30fd3b43208bce377d215778c2f162bfdb541679e8aa7d173e915798b7dfbef07bb0274b6d0fc066b524e387c174fb6d1b13
7
- data.tar.gz: 61ec0890ccbcc36e4554aca9bbbcb0c8adeaeb322419c8e3e47b1a9c3deb6ffef195efe77664cac13761cdb5c452c1be08953b292355bf67fa58ff544b359d85
6
+ metadata.gz: 8d2572a98f74bf028d2c2ac5bcfeddd651090fb96af903faec94dea3c8ac373f69bfb823fdd9c14e0b5f2711f1e05e7c8b8203e10d3f2ca004217f176df37f37
7
+ data.tar.gz: b9856bbd395f4080ceaa8029bcb4f348704c3f65d82c5564ee1e7130b40f3f32a931c9939f003cac81e244490544463e6139cf7d8800ba2d80cf6b902aba3d07
@@ -1,3 +1,9 @@
1
+ ## 6.0.6
2
+ - Updated Netty dependencies. Additionally, this release removes the dependency on `tcnative` +
3
+ `boringssl`, using JVM supplied ciphers instead. This may result in fewer ciphers being available if the JCE
4
+ unlimited strength jurisdiction policy is not installed. (This policy is installed by default on versions of the
5
+ JDK from u161 onwards)[#157](https://github.com/logstash-plugins/logstash-input-tcp/pull/157)
6
+
1
7
  ## 6.0.5
2
8
  - Fix potential startup crash that could occur when multiple instances of this plugin were started simultaneously [#155](https://github.com/logstash-plugins/logstash-input-tcp/pull/155)
3
9
 
@@ -1,4 +1,5 @@
1
1
  require 'openssl'
2
+ require "logstash/util/loggable"
2
3
 
3
4
  # Simulate a normal SslOptions builder:
4
5
  #
@@ -12,10 +13,12 @@ require 'openssl'
12
13
  # .set_ssl_certificate_authorities(@ssl_certificate_authorities.to_java(:string))
13
14
  # .build.toSslContext()
14
15
  class SslOptions
16
+ include LogStash::Util::Loggable
15
17
 
16
18
  java_import 'io.netty.handler.ssl.ClientAuth'
17
19
  java_import 'io.netty.handler.ssl.SslContextBuilder'
18
20
  java_import 'java.security.cert.X509Certificate'
21
+ java_import 'javax.crypto.Cipher'
19
22
  java_import 'org.bouncycastle.asn1.pkcs.PrivateKeyInfo'
20
23
  java_import 'org.bouncycastle.jce.provider.BouncyCastleProvider'
21
24
  java_import 'org.bouncycastle.openssl.PEMKeyPair'
@@ -70,6 +73,8 @@ class SslOptions
70
73
  def toSslContext
71
74
  return nil unless @ssl_enabled
72
75
 
76
+ # Check key strength
77
+ logger.warn("JCE Unlimited Strength Jurisdiction Policy not installed - max key length is 128 bits") unless Cipher.getMaxAllowedKeyLength("AES") > 128
73
78
  # create certificate object
74
79
  cf = java.security.cert.CertificateFactory.getInstance("X.509")
75
80
  cert_chain = []
@@ -341,8 +341,7 @@ describe LogStash::Inputs::Tcp do
341
341
  "port" => port,
342
342
  "ssl_enable" => true,
343
343
  "ssl_cert" => certificate_file.path,
344
- "ssl_key" => key_file.path,
345
- "ssl_extra_chain_certs" => certificate_file.path
344
+ "ssl_key" => key_file.path
346
345
  }
347
346
  end
348
347
 
@@ -368,7 +367,6 @@ describe LogStash::Inputs::Tcp do
368
367
  File.unlink(certificate_file.path)
369
368
  File.unlink(key_file.path)
370
369
  end
371
-
372
370
  end
373
371
 
374
372
  context "with pkcs#8 keys" do
data/version CHANGED
@@ -1 +1 @@
1
- 6.0.5
1
+ 6.0.6
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-tcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.5
4
+ version: 6.0.6
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-02 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +178,7 @@ files:
178
178
  - logstash-input-tcp.gemspec
179
179
  - spec/inputs/tcp_spec.rb
180
180
  - spec/spec_helper.rb
181
- - vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.0.5/logstash-input-tcp-6.0.5.jar
181
+ - vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.0.6/logstash-input-tcp-6.0.6.jar
182
182
  - version
183
183
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
184
184
  licenses: