logstash-input-tcp 5.2.2-java → 5.2.6-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/logstash/inputs/tcp/compat_ssl_options.rb +9 -2
- data/logstash-input-tcp.gemspec +5 -1
- data/spec/inputs/tcp_spec.rb +29 -0
- data/vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/{5.2.2/logstash-input-tcp-5.2.2.jar → 5.2.6/logstash-input-tcp-5.2.6.jar} +0 -0
- data/version +1 -1
- metadata +22 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 540a6f7d6ae06f0f03b71ad02d2872060706cd3ef398baf26538dd0e56dc23aa
|
4
|
+
data.tar.gz: c96eb4cbf80fe8df8c4115e2da5259770306352315de1354ad2a423d5e08bbe8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 592a1308abe432552b0fef096ce40556c466ba6ac4d332fd677e299c9704e6c6edbfe255ca7c6dba0c55292e7155c39354d9a27b4317503346e0af7e1fd3f0b8
|
7
|
+
data.tar.gz: 2ca507f654bc2e236ce59805b7204265acc2492bc8fd8147759012a17d5ac903ce40fb3bcb6df98dc19552c74989176556e9c1e5c6ef69d0a9e66d80acf8cefc
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
## 5.2.6
|
2
|
+
- Ensure correct jar paths when building plugin from a non-standard directory
|
3
|
+
|
4
|
+
## 5.2.5
|
5
|
+
- Update Log4j dependency to 2.17
|
6
|
+
|
7
|
+
## 5.2.4
|
8
|
+
- Update Log4j dependency to 2.16, ensuring this plugin's runtime relies only on log4j-api instead
|
9
|
+
of providing its own log4j-core [#189](https://github.com/logstash-plugins/logstash-input-tcp/pull/189)
|
10
|
+
|
11
|
+
## 5.2.3
|
12
|
+
- Skip empty lines while reading certificate files [#144](https://github.com/logstash-plugins/logstash-input-tcp/issues/144)
|
13
|
+
|
1
14
|
## 5.2.2
|
2
15
|
- Fixed race condition where data would be accepted before queue was configured [#142](https://github.com/logstash-plugins/logstash-input-tcp/pull/142)
|
3
16
|
|
@@ -127,12 +127,19 @@ class SslOptions
|
|
127
127
|
|
128
128
|
private
|
129
129
|
def fetch_certificates_from_file(file, cf)
|
130
|
-
fis = FileInputStream.new(file)
|
130
|
+
fis = java.io.FileInputStream.new(file)
|
131
131
|
|
132
132
|
while (fis.available > 0) do
|
133
|
-
|
133
|
+
cert = generate_certificate(cf, fis)
|
134
|
+
yield cert if cert
|
134
135
|
end
|
135
136
|
ensure
|
136
137
|
fis.close if fis
|
137
138
|
end
|
139
|
+
|
140
|
+
def generate_certificate(cf, fis)
|
141
|
+
cf.generateCertificate(fis)
|
142
|
+
rescue Java::JavaSecurityCert::CertificateException => e
|
143
|
+
raise e unless e.cause.message == "Empty input"
|
144
|
+
end
|
138
145
|
end
|
data/logstash-input-tcp.gemspec
CHANGED
@@ -31,7 +31,11 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_runtime_dependency 'logstash-codec-json_lines'
|
32
32
|
s.add_runtime_dependency 'logstash-codec-multiline'
|
33
33
|
|
34
|
-
|
34
|
+
# 5.x branch of this plugin provides support for LS5&6.
|
35
|
+
# To use LS7+, you must use v6+ of this plugin.
|
36
|
+
s.add_runtime_dependency 'logstash-core', '< 7.0.0'
|
37
|
+
|
38
|
+
s.add_development_dependency 'logstash-devutils', '~> 1.0'
|
35
39
|
s.add_development_dependency 'flores', '~> 0.0.6'
|
36
40
|
s.add_development_dependency 'stud', '~> 0.0.22'
|
37
41
|
end
|
data/spec/inputs/tcp_spec.rb
CHANGED
@@ -382,6 +382,35 @@ describe LogStash::Inputs::Tcp do
|
|
382
382
|
ssc.delete
|
383
383
|
end
|
384
384
|
end
|
385
|
+
|
386
|
+
context "with multiple certificates with empty spaces in them" do
|
387
|
+
let(:ssc) { SelfSignedCertificate.new }
|
388
|
+
let(:certificate_file) { ssc.certificate }
|
389
|
+
let(:key_file) { ssc.private_key}
|
390
|
+
let(:ssc_2) { SelfSignedCertificate.new }
|
391
|
+
let(:certificate_file_2) { ssc.certificate }
|
392
|
+
let(:config) do
|
393
|
+
{
|
394
|
+
"host" => "127.0.0.1",
|
395
|
+
"port" => port,
|
396
|
+
"ssl_enable" => true,
|
397
|
+
"ssl_cert" => certificate_file.path,
|
398
|
+
"ssl_key" => key_file.path
|
399
|
+
}
|
400
|
+
end
|
401
|
+
before(:each) do
|
402
|
+
File.open(certificate_file.path, "a") do |file|
|
403
|
+
path = ssc_2.certificate.path
|
404
|
+
file.puts("\n")
|
405
|
+
file.puts(IO.read(path))
|
406
|
+
file.puts("\n")
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
410
|
+
it "should register without errors" do
|
411
|
+
expect { subject.register }.to_not raise_error
|
412
|
+
end
|
413
|
+
end
|
385
414
|
end
|
386
415
|
end
|
387
416
|
|
Binary file
|
data/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.2.
|
1
|
+
5.2.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: 5.2.
|
4
|
+
version: 5.2.6
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,17 +103,31 @@ dependencies:
|
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- - "
|
106
|
+
- - "<"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
108
|
+
version: 7.0.0
|
109
|
+
name: logstash-core
|
110
|
+
prerelease: false
|
111
|
+
type: :runtime
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "<"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 7.0.0
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '1.0'
|
109
123
|
name: logstash-devutils
|
110
124
|
prerelease: false
|
111
125
|
type: :development
|
112
126
|
version_requirements: !ruby/object:Gem::Requirement
|
113
127
|
requirements:
|
114
|
-
- - "
|
128
|
+
- - "~>"
|
115
129
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0'
|
130
|
+
version: '1.0'
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
132
|
requirement: !ruby/object:Gem::Requirement
|
119
133
|
requirements:
|
@@ -164,7 +178,7 @@ files:
|
|
164
178
|
- logstash-input-tcp.gemspec
|
165
179
|
- spec/inputs/tcp_spec.rb
|
166
180
|
- spec/spec_helper.rb
|
167
|
-
- vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/5.2.
|
181
|
+
- vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/5.2.6/logstash-input-tcp-5.2.6.jar
|
168
182
|
- version
|
169
183
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
170
184
|
licenses:
|
@@ -188,8 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
202
|
- !ruby/object:Gem::Version
|
189
203
|
version: '0'
|
190
204
|
requirements: []
|
191
|
-
|
192
|
-
rubygems_version: 2.6.13
|
205
|
+
rubygems_version: 3.1.6
|
193
206
|
signing_key:
|
194
207
|
specification_version: 4
|
195
208
|
summary: Reads events from a TCP socket
|