logstash-input-http 3.2.0-java → 3.2.1-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 +3 -0
- data/VERSION +1 -1
- data/lib/logstash-input-http_jars.rb +1 -1
- data/lib/logstash/inputs/http.rb +20 -24
- data/spec/inputs/http_spec.rb +1 -0
- data/vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/3.2.1/logstash-input-http-3.2.1.jar +0 -0
- metadata +3 -3
- data/vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/3.2.0/logstash-input-http-3.2.0.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb71407dd95cdf4ed3a00e3a3052eb9ca98228aab5c4b0d5d850fab30f398612
|
4
|
+
data.tar.gz: 606cb730cbef12485216a22c367fe7e07c0f1f12b4e7e3d2227cb6ef32012a9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77dda823940c35650a14743778fda13e12abbfad0b718d386b410598dc187ee7aa6f0b08a665d95dfc507237c9d0f5ef878ec92394cf4a91e87544860da83da1
|
7
|
+
data.tar.gz: add1951942163b0908a6b0288f0945bc3a412e2eff9bd0819ef988b972031a9211304a4c58475ef04ee062f93cc649a7afcfe0fe352b82eb28792bffd5fdb2d1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 3.2.1
|
2
|
+
- Fix expensive SslContext creation per connection #93
|
3
|
+
|
1
4
|
## 3.2.0
|
2
5
|
- Add `request_headers_target_field` and `remote_host_target_field` configuration options with default to `host` and `headers` respectively #68
|
3
6
|
- Sanitize content-type header with getMimeType #87
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.1
|
@@ -4,4 +4,4 @@ require 'jar_dependencies'
|
|
4
4
|
require_jar('io.netty', 'netty-all', '4.1.18.Final')
|
5
5
|
require_jar('io.netty', 'netty-tcnative-boringssl-static', '2.0.7.Final')
|
6
6
|
require_jar('org.apache.logging.log4j', 'log4j-api', '2.6.2')
|
7
|
-
require_jar('org.logstash.plugins.input.http', 'logstash-input-http', '3.2.
|
7
|
+
require_jar('org.logstash.plugins.input.http', 'logstash-input-http', '3.2.1')
|
data/lib/logstash/inputs/http.rb
CHANGED
@@ -212,37 +212,33 @@ class LogStash::Inputs::Http < LogStash::Inputs::Base
|
|
212
212
|
def build_ssl_params
|
213
213
|
return nil unless @ssl
|
214
214
|
|
215
|
+
ssl_builder = nil
|
216
|
+
verify_mode_string = nil
|
217
|
+
|
215
218
|
if @keystore && @keystore_password
|
216
219
|
ssl_builder = org.logstash.plugins.inputs.http.util.JksSslBuilder.new(@keystore, @keystore_password.value)
|
217
|
-
if original_params.key?("verify_mode")
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
220
|
+
verify_mode_string = @verify_mode.upcase if original_params.key?("verify_mode")
|
221
|
+
else
|
222
|
+
begin
|
223
|
+
ssl_builder = org.logstash.plugins.inputs.http.util.SslSimpleBuilder.new(@ssl_certificate, @ssl_key, @ssl_key_passphrase.nil? ? nil : @ssl_key_passphrase.value)
|
224
|
+
.setCipherSuites(normalized_ciphers)
|
225
|
+
rescue java.lang.IllegalArgumentException => e
|
226
|
+
raise LogStash::ConfigurationError.new(e)
|
223
227
|
end
|
224
|
-
return ssl_builder
|
225
|
-
end
|
226
228
|
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
rescue java.lang.IllegalArgumentException => e
|
232
|
-
raise LogStash::ConfigurationError.new(e)
|
229
|
+
if client_authentication?
|
230
|
+
verify_mode_string = @ssl_verify_mode.upcase
|
231
|
+
ssl_builder.setCertificateAuthorities(@ssl_certificate_authorities)
|
232
|
+
end
|
233
233
|
end
|
234
234
|
|
235
|
-
ssl_builder.
|
235
|
+
ssl_context = ssl_builder.build()
|
236
|
+
ssl_handler_provider = org.logstash.plugins.inputs.http.util.SslHandlerProvider.new(ssl_context)
|
237
|
+
ssl_handler_provider.setVerifyMode(verify_mode_string)
|
238
|
+
ssl_handler_provider.setProtocols(convert_protocols)
|
239
|
+
ssl_handler_provider.setHandshakeTimeoutMilliseconds(@ssl_handshake_timeout)
|
236
240
|
|
237
|
-
|
238
|
-
if @ssl_verify_mode.upcase == "FORCE_PEER"
|
239
|
-
ssl_builder.setVerifyMode(org.logstash.plugins.inputs.http.util.SslBuilder::SslClientVerifyMode::FORCE_PEER)
|
240
|
-
elsif @ssl_verify_mode.upcase == "PEER"
|
241
|
-
ssl_builder.setVerifyMode(org.logstash.plugins.inputs.http.util.SslBuilder::SslClientVerifyMode::VERIFY_PEER)
|
242
|
-
end
|
243
|
-
ssl_builder.setCertificateAuthorities(@ssl_certificate_authorities)
|
244
|
-
end
|
245
|
-
ssl_builder
|
241
|
+
ssl_handler_provider
|
246
242
|
end
|
247
243
|
|
248
244
|
def ssl_key_configured?
|
data/spec/inputs/http_spec.rb
CHANGED
@@ -361,6 +361,7 @@ describe LogStash::Inputs::Http do
|
|
361
361
|
"ssl_certificate" => ssl_certificate.path,
|
362
362
|
"ssl_key" => ssl_key.path) }
|
363
363
|
it "should not raise exception" do
|
364
|
+
expect(subject).to receive(:build_ssl_params)
|
364
365
|
expect { subject.register }.to_not raise_exception
|
365
366
|
end
|
366
367
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,7 +141,7 @@ files:
|
|
141
141
|
- vendor/jar-dependencies/io/netty/netty-all/4.1.18.Final/netty-all-4.1.18.Final.jar
|
142
142
|
- vendor/jar-dependencies/io/netty/netty-tcnative-boringssl-static/2.0.7.Final/netty-tcnative-boringssl-static-2.0.7.Final.jar
|
143
143
|
- vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar
|
144
|
-
- vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/3.2.
|
144
|
+
- vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/3.2.1/logstash-input-http-3.2.1.jar
|
145
145
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
146
146
|
licenses:
|
147
147
|
- Apache License (2.0)
|