logstash-input-http 3.3.5-java → 3.3.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: d808f555a1bc9473e63bc9960678f4f7b831c4c9492e0785f2c0d2c8bb1abbc2
4
- data.tar.gz: 8c0f90dec3c295d0ab0846a22a8b6e063af35d74f23a8b39f2c4f67af28321c0
3
+ metadata.gz: c16f35c7b0da36b5d3a34ae730e2e9386754b4f770d91ab95c426ea51d6088b6
4
+ data.tar.gz: b7e6c19a7405151badb060b4342ff5d01d419e70031c0887afba277e0749352e
5
5
  SHA512:
6
- metadata.gz: b1b5d0afe5761f5de22e94d2cbf905b3822712bc12bdb55762e4e29c8c19ea8945573326c2a2ca4126dcc6f629a8e3015a1f1446c1fa52f58e12895689a845ce
7
- data.tar.gz: a03254b131ccabbaca80dd76b01a35e4ab6f6474378516e8ff456eb57419550839d57206e884e271dbb86a843344a9aa79b83bd7af3d00977a6c8d866687a7df
6
+ metadata.gz: f1b3f4486a8877a4aa4af9bb2f03cee3bd69cf8d66fb5bfb709781a9e9b31376e8118ad8457fcd6bdfc7375e170860e83d16121696b123e923dfe3c25f88980e
7
+ data.tar.gz: 6e62fb8e3b112b60bcea52db6fb6c09a548c51e2563110bfa80703e5afa4c55a1ae31db921cfdc3dfeb87c9b9f29c3a522d93ab30bbd62b784ef8214a91572af
@@ -1,3 +1,10 @@
1
+ ## 3.3.6
2
+ - Fixes a regression introduced in 3.1.0's migration to the Netty back-end that broke some users'
3
+ browser-based workflows. When an instance of this plugin that is configured to require Basic
4
+ authentication receives a request that does not include authentication, it now appropriately
5
+ includes an `WWW-Authenticate` header in its `401 Unauthorized` response, allowing the browser
6
+ to collect credentials before retrying the request.
7
+
1
8
  ## 3.3.5
2
9
  - Updated jackson databind and Netty dependencies. Additionally, this release removes the dependency on `tcnative` +
3
10
  `boringssl`, using JVM supplied ciphers instead. This may result in fewer ciphers being available if the JCE
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.5
1
+ 3.3.6
@@ -3,4 +3,4 @@
3
3
  require 'jar_dependencies'
4
4
  require_jar('io.netty', 'netty-all', '4.1.49.Final')
5
5
  require_jar('org.apache.logging.log4j', 'log4j-api', '2.11.1')
6
- require_jar('org.logstash.plugins.input.http', 'logstash-input-http', '3.3.5')
6
+ require_jar('org.logstash.plugins.input.http', 'logstash-input-http', '3.3.6')
@@ -22,6 +22,10 @@ module LogStash module Inputs class Http
22
22
  end
23
23
  end
24
24
 
25
+ def requires_token
26
+ !!@auth_token
27
+ end
28
+
25
29
  def onNewMessage(remote_address, headers, body)
26
30
  @input.decode_body(headers, remote_address, body, @default_codec, @additional_codecs)
27
31
  end
@@ -279,6 +279,11 @@ describe LogStash::Inputs::Http do
279
279
  it "should respond with 401" do
280
280
  expect(response.code).to eq(401)
281
281
  end
282
+ it 'should include a WWW-Authenticate: Basic header' do
283
+ expect(response['WWW-Authenticate']).to_not be_nil
284
+
285
+ expect(response['WWW-Authenticate']).to start_with('Basic realm=')
286
+ end
282
287
  it "should not generate an event" do
283
288
  expect(logstash_queue).to be_empty
284
289
  end
@@ -295,6 +300,9 @@ describe LogStash::Inputs::Http do
295
300
  it "should respond with 401" do
296
301
  expect(response.code).to eq(401)
297
302
  end
303
+ it 'should not include a WWW-Authenticate header' do
304
+ expect(response['WWW-Authenticate']).to be_nil
305
+ end
298
306
  it "should not generate an event" do
299
307
  expect(logstash_queue).to be_empty
300
308
  end
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.3.5
4
+ version: 3.3.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-06-03 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,7 @@ files:
146
146
  - spec/inputs/http_spec.rb
147
147
  - vendor/jar-dependencies/io/netty/netty-all/4.1.49.Final/netty-all-4.1.49.Final.jar
148
148
  - vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.11.1/log4j-api-2.11.1.jar
149
- - vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/3.3.5/logstash-input-http-3.3.5.jar
149
+ - vendor/jar-dependencies/org/logstash/plugins/input/http/logstash-input-http/3.3.6/logstash-input-http-3.3.6.jar
150
150
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
151
151
  licenses:
152
152
  - Apache License (2.0)