logstash-mixin-http_client 4.0.3 → 5.0.0
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/plugin_mixins/http_client.rb +2 -4
- data/logstash-mixin-http_client.gemspec +1 -1
- data/spec/plugin_mixin/http_client_spec.rb +0 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3407598b8fe0c863cdf83991df712acadb5156d2
|
4
|
+
data.tar.gz: 597f3f3b3dfd3da2db551b4071c429c44fc1b4a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d5cafaeb158d80ec39b621127676eeee1dfbb2494835ec59e7e98f4c7f3735023d7b8ba0086fc9376279b996195f5452fac13c03eb9c33d94c1450e917df0a
|
7
|
+
data.tar.gz: 1d511a3e32b178592bb27772f4de3edae4638911f2a61cf0e9da995f5bec5ded738ad728c599062ce6201d7dcf7155a3fd1c0799ad88d42843aa1ff96077ae24
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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] = {
|
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 = '
|
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
|
+
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-
|
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
|