logstash-mixin-http_client 4.0.3 → 5.0.0

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
  SHA1:
3
- metadata.gz: 997861fb27c7f41617d640e9526db40c9750fc27
4
- data.tar.gz: becffe860628916c9829ac650fff941067a35009
3
+ metadata.gz: 3407598b8fe0c863cdf83991df712acadb5156d2
4
+ data.tar.gz: 597f3f3b3dfd3da2db551b4071c429c44fc1b4a0
5
5
  SHA512:
6
- metadata.gz: 51baa92d069a19d4885fd97755da05aa3e2b409536ce4d8d68fb32e33777d1dd9d7e4729e6bb41f1c458e6615d098162fb8c4fc82dfb68c98abf9932cefd045f
7
- data.tar.gz: 2415d592ecaa660f4fbc1f0e5f0706881377ad52909f58f66d1b8c9efe7ebf24b03ef6a641ce11d7b964f078ab8c83db3bc8d79fa3646fc3d3d1af134b6b97e6
6
+ metadata.gz: c6d5cafaeb158d80ec39b621127676eeee1dfbb2494835ec59e7e98f4c7f3735023d7b8ba0086fc9376279b996195f5452fac13c03eb9c33d94c1450e917df0a
7
+ data.tar.gz: 1d511a3e32b178592bb27772f4de3edae4638911f2a61cf0e9da995f5bec5ded738ad728c599062ce6201d7dcf7155a3fd1c0799ad88d42843aa1ff96077ae24
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 5.0.0
2
+ - Obsolete ssl_certificate_verify option that didn't actually work
3
+
1
4
  ## 4.0.3
2
5
  - Raise configuration error when user supplies a trust/keystore without a password
3
6
 
@@ -52,9 +52,7 @@ module LogStash::PluginMixins::HttpClient
52
52
  # See https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.html#setValidateAfterInactivity(int)[these docs for more info]
53
53
  config :validate_after_inactivity, :validate => :number, :default => 200
54
54
 
55
- # Set this to false to disable SSL/TLS certificate validation
56
- # Note: setting this to false is generally considered insecure!
57
- config :ssl_certificate_validation, :validate => :boolean, :default => true
55
+ config :ssl_certificate_validation, :obsolete => "This option did not work in a meaningful way and has been removed! Please use the correct truststore"
58
56
 
59
57
  # If you need to use a custom X.509 CA (.pem certs) specify the path to that here
60
58
  config :cacert, :validate => :path
@@ -119,7 +117,7 @@ module LogStash::PluginMixins::HttpClient
119
117
  @proxy
120
118
  end
121
119
 
122
- c[:ssl] = {verify: @ssl_certificate_validation}
120
+ c[:ssl] = {}
123
121
  if @cacert
124
122
  c[:ssl][:ca_file] = @cacert
125
123
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-mixin-http_client'
3
- s.version = '4.0.3'
3
+ s.version = '5.0.0'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "AWS mixins to provide a unified interface for Amazon Webservice"
6
6
  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"
@@ -148,26 +148,5 @@ describe LogStash::PluginMixins::HttpClient do
148
148
 
149
149
  include_examples("raising a configuration error")
150
150
  end
151
-
152
- describe "ssl certificate validation" do
153
- subject { Dummy.new(conf).send(:client_config) }
154
-
155
- context "when set to true" do
156
- let(:conf) { basic_config.merge("ssl_certificate_validation" => true)}
157
-
158
- it "should set [:ssl][:verify] to true" do
159
- expect(subject[:ssl][:verify]).to eql(true)
160
- end
161
- end
162
-
163
- context "when set to false" do
164
- let(:conf) { basic_config.merge("ssl_certificate_validation" => false)}
165
-
166
- it "should set [:ssl][:verify] to true" do
167
- expect(subject[:ssl][:verify]).to eql(false)
168
- end
169
- end
170
- end
171
-
172
151
  end
173
152
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-mixin-http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-21 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement