logstash-input-http 3.8.1-java → 3.9.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dce1f0dc68aea9fe3fc036bff6c20eca4c1c08df2986f7ac7fb0a292a764dda5
4
- data.tar.gz: 1e9f85e289e7e22c1a95f60bffe5d405eaaca68dce14ede91e76ba639e6163bb
3
+ metadata.gz: b85bff2b0ad545235fc5cbd1a88150a61619a7eaf171b63cd11b7c3dcd9b3791
4
+ data.tar.gz: 07b01fec1dff355856c98639dffd2b18507172ecaa6244391840e495f28ca99a
5
5
  SHA512:
6
- metadata.gz: 7e3193fa2cc9427c7b7442d5fd88eab306bb424e260903e4999a925f199f682f08dda7ee71418248b01dc4f42eb81c93414876ff11933d9e546794a12349ae3f
7
- data.tar.gz: c3024943b402622bfa87bc592267ca879e01e0abac707b75918e1dde4cd6d4522a48d364e3b21bcb1236613e2ad6aea1b7428a47735931119fcffb5d3311ca0f
6
+ metadata.gz: 3e061352f4247ebd3d7fc046631ad03cd355615571fb13f007568e66326ce23b169d1e03e0a9cd4c81e0e3479d77da795e26e76bf0e6d47e0d7cc83493968ac0
7
+ data.tar.gz: cb2196c5d0cbb47609fa0fcc42cb3f54bc0eed3dadf47fb1f90bbecc214611ebd2bffcf7ba7afa53f39733025821b222b96f9575f8d420693c71996db12a0ba5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 3.9.1
2
+ - Correctly log the state of `ssl_enabled` during `run` [#180](https://github.com/logstash-plugins/logstash-input-http/pull/180)
3
+
4
+ ## 3.9.0
5
+ - Netty boss and worker groups are separated [#178](https://github.com/logstash-plugins/logstash-input-http/pull/178)
6
+ As a result, when shutdown requested incoming connections are closed first and improved graceful shutdown
7
+
1
8
  ## 3.8.1
2
9
  - bump netty to 4.1.109 [#173](https://github.com/logstash-plugins/logstash-input-http/pull/173)
3
10
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.8.1
1
+ 3.9.1
@@ -225,7 +225,7 @@ class LogStash::Inputs::Http < LogStash::Inputs::Base
225
225
 
226
226
  def run(queue)
227
227
  @queue = queue
228
- @logger.info("Starting http input listener", :address => "#{@host}:#{@port}", :ssl => "#{@ssl}")
228
+ @logger.info("Starting http input listener", :address => "#{@host}:#{@port}", :ssl_enabled => @ssl_enabled)
229
229
  @http_server.run()
230
230
  end
231
231
 
@@ -8,4 +8,4 @@ require_jar('io.netty', 'netty-common', '4.1.109.Final')
8
8
  require_jar('io.netty', 'netty-transport', '4.1.109.Final')
9
9
  require_jar('io.netty', 'netty-handler', '4.1.109.Final')
10
10
  require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.109.Final')
11
- require_jar('org.logstash.plugins.input.http', 'logstash-input-http', '3.8.1')
11
+ require_jar('org.logstash.plugins.input.http', 'logstash-input-http', '3.9.1')
@@ -544,6 +544,24 @@ describe LogStash::Inputs::Http do
544
544
  expect { subject.register }.to_not raise_exception
545
545
  end
546
546
 
547
+ context "during run" do
548
+ let(:http_server) do
549
+ http_server = double(:http_server)
550
+ allow(http_server).to receive(:close)
551
+ allow(http_server).to receive(:run)
552
+ http_server
553
+ end
554
+ before(:each) do
555
+ allow(subject).to receive(:create_http_server).and_return(http_server)
556
+ subject.register
557
+ end
558
+ it "should show ssl is disabled" do
559
+ #[2024-10-18T10:09:33,199][INFO ][logstash.inputs.http ][main][0d48] Starting http input listener {:address=>"0.0.0.0:3333", :ssl_enabled=>false}
560
+ expect(subject.logger).to receive(:info).with(/^Starting http input listener/, hash_including(:ssl_enabled => false))
561
+ subject.run(nil)
562
+ end
563
+ end
564
+
547
565
  context "and `ssl_` settings provided" do
548
566
  let(:ssc) { SelfSignedCertificate.new }
549
567
  let(:config) { { "port" => 0, "ssl_enabled" => false, "ssl_certificate" => ssc.certificate.path, "ssl_client_authentication" => "none", "cipher_suites" => ["TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"] } }
@@ -585,6 +603,24 @@ describe LogStash::Inputs::Http do
585
603
  expect { subject.register }.to_not raise_exception
586
604
  end
587
605
 
606
+ context "during run" do
607
+ let(:http_server) do
608
+ http_server = double(:http_server)
609
+ allow(http_server).to receive(:close)
610
+ allow(http_server).to receive(:run)
611
+ http_server
612
+ end
613
+ before(:each) do
614
+ allow(subject).to receive(:create_http_server).and_return(http_server)
615
+ subject.register
616
+ end
617
+ it "should show ssl is enabled" do
618
+ #[2024-10-18T10:09:33,199][INFO ][logstash.inputs.http ][main][0d48] Starting http input listener {:address=>"0.0.0.0:3333", :ssl_enabled=>true}
619
+ expect(subject.logger).to receive(:info).with(/^Starting http input listener/, hash_including(:ssl_enabled => true))
620
+ subject.run(nil)
621
+ end
622
+ end
623
+
588
624
  context "with ssl_verify_mode = none" do
589
625
  subject { LogStash::Inputs::Http.new(config.merge("ssl_client_authentication" => "none")) }
590
626
 
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.8.1
4
+ version: 3.9.1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-23 00:00:00.000000000 Z
11
+ date: 2024-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -20,8 +20,8 @@ dependencies:
20
20
  - !ruby/object:Gem::Version
21
21
  version: '2.99'
22
22
  name: logstash-core-plugin-api
23
- prerelease: false
24
23
  type: :runtime
24
+ prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
@@ -37,8 +37,8 @@ dependencies:
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  name: logstash-codec-plain
40
- prerelease: false
41
40
  type: :runtime
41
+ prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
@@ -54,8 +54,8 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: 0.3.4
56
56
  name: jar-dependencies
57
- prerelease: false
58
57
  type: :runtime
58
+ prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
@@ -71,8 +71,8 @@ dependencies:
71
71
  - !ruby/object:Gem::Version
72
72
  version: '1.2'
73
73
  name: logstash-mixin-ecs_compatibility_support
74
- prerelease: false
75
74
  type: :runtime
75
+ prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
@@ -85,8 +85,8 @@ dependencies:
85
85
  - !ruby/object:Gem::Version
86
86
  version: '1.0'
87
87
  name: logstash-mixin-normalize_config_support
88
- prerelease: false
89
88
  type: :runtime
89
+ prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
@@ -99,8 +99,8 @@ dependencies:
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  name: logstash-devutils
102
- prerelease: false
103
102
  type: :development
103
+ prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
@@ -113,8 +113,8 @@ dependencies:
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  name: logstash-codec-json
116
- prerelease: false
117
116
  type: :development
117
+ prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="
@@ -127,8 +127,8 @@ dependencies:
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  name: logstash-codec-json_lines
130
- prerelease: false
131
130
  type: :development
131
+ prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - ">="
@@ -141,8 +141,8 @@ dependencies:
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  name: manticore
144
- prerelease: false
145
144
  type: :development
145
+ prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - ">="
@@ -196,7 +196,7 @@ files:
196
196
  - vendor/jar-dependencies/io/netty/netty-handler/4.1.109.Final/netty-handler-4.1.109.Final.jar
197
197
  - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.109.Final/netty-transport-native-unix-common-4.1.109.Final.jar
198
198
  - vendor/jar-dependencies/io/netty/netty-transport/4.1.109.Final/netty-transport-4.1.109.Final.jar
199
- - vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/3.8.1/logstash-input-http-3.8.1.jar
199
+ - vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/3.9.1/logstash-input-http-3.9.1.jar
200
200
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
201
201
  licenses:
202
202
  - Apache License (2.0)
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  - !ruby/object:Gem::Version
220
220
  version: '0'
221
221
  requirements: []
222
- rubygems_version: 3.2.33
222
+ rubygems_version: 3.3.26
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: Receives events over HTTP or HTTPS