logstash-filter-elasticsearch 3.15.0 → 3.15.1

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: c988a59e14c49b5b169b0b797cc2844d747d1cb67c7daef426d1008b10064c79
4
- data.tar.gz: 20febabc910c17435dca65e5d326e73ea48b3897743e19102101fba316a5e96c
3
+ metadata.gz: 4a80d8c888e4c85fad00861c48191031b12827b75d4f7adf2f82d3be8023ef4c
4
+ data.tar.gz: ecf9e2cf9c3d020bc5ece06d2b430bef230f60f2505847a534556fd95d72094f
5
5
  SHA512:
6
- metadata.gz: 6d22b647190c79c1ef8ce703a2212ca7bbedd2f6ce621b81a0bd305c9e523371eb1f6e6bc2435952c2d5d776779588aba7e45fb3e4e07227648f399ed41651b3
7
- data.tar.gz: 529b58bb8a8a7097cfc4c205044f2eb3d478300f9c6d5273446063afdf55402a5f76157f7e98e51bf4491a9ddc3a6e2ed572ae1fd4110737b2bbd2be829c52f7
6
+ metadata.gz: c02acdc7b189b40b9d53f32374c982a0239a2be8a5e6d10f4ec62ee99771822e3a8b0345e432f5fd488eaed02e8f9207b82b4226e29f310bbbfc2f786eafd6bc
7
+ data.tar.gz: 25cfab8d4069d7e30c5f1dd113857c24ce8c43ef7ed566b66230c64ead218398e28f504b7c0f5d864a8a6174cbf817e1f76faa22d996f15cfa0e298d3ed6e334
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.15.1
2
+ - Fixes a regression introduced in 3.15.0 which could prevent a connection from being established to Elasticsearch in some SSL configurations
3
+
1
4
  ## 3.15.0
2
5
  - Added SSL settings for: [#168](https://github.com/logstash-plugins/logstash-filter-elasticsearch/pull/168)
3
6
  - `ssl_enabled`: Enable/disable the SSL settings. If not provided, the value is inferred from the hosts scheme
@@ -317,7 +317,9 @@ class LogStash::Filters::Elasticsearch < LogStash::Filters::Base
317
317
  "to make sure your data is secure set `ssl_verification_mode => full`"
318
318
  ssl_options[:verify] = :disable
319
319
  else
320
- ssl_options[:verify] = :strict
320
+ # Manticore's :default maps to Apache HTTP Client's DefaultHostnameVerifier,
321
+ # which is the modern STRICT verifier that replaces the deprecated StrictHostnameVerifier
322
+ ssl_options[:verify] = :default
321
323
  end
322
324
  end
323
325
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-elasticsearch'
4
- s.version = '3.15.0'
4
+ s.version = '3.15.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Copies fields from previous log events in Elasticsearch to current events "
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -122,7 +122,7 @@ describe "SSL options" do
122
122
 
123
123
  it "should pass the flag to the ES client" do
124
124
  expect(::Elasticsearch::Client).to receive(:new) do |args|
125
- expect(args[:ssl]).to match hash_including(:enabled => true, :verify => :strict)
125
+ expect(args[:ssl]).to match hash_including(:enabled => true, :verify => :default)
126
126
  end.and_return(es_client_double)
127
127
 
128
128
  subject.register
@@ -199,7 +199,7 @@ describe "SSL options" do
199
199
  :truststore => ssl_truststore_path,
200
200
  :truststore_type => "jks",
201
201
  :truststore_password => "foo",
202
- :verify => :strict,
202
+ :verify => :default,
203
203
  :cipher_suites => ["TLS_DHE_RSA_WITH_AES_256_CBC_SHA256"],
204
204
  :protocols => ["TLSv1.3"],
205
205
  )
@@ -235,7 +235,7 @@ describe "SSL options" do
235
235
  :ca_file => ssl_certificate_authorities_path,
236
236
  :client_cert => ssl_certificate_path,
237
237
  :client_key => ssl_key_path,
238
- :verify => :strict,
238
+ :verify => :default,
239
239
  :cipher_suites => ["TLS_DHE_RSA_WITH_AES_256_CBC_SHA256"],
240
240
  :protocols => ["TLSv1.3"],
241
241
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.0
4
+ version: 3.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-10 00:00:00.000000000 Z
11
+ date: 2023-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
197
  requirements: []
198
- rubygems_version: 3.1.6
198
+ rubygems_version: 3.2.33
199
199
  signing_key:
200
200
  specification_version: 4
201
201
  summary: Copies fields from previous log events in Elasticsearch to current events