logstash-mixin-http_client 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/logstash/plugin_mixins/http_client.rb +9 -9
- data/logstash-mixin-http_client.gemspec +1 -1
- data/spec/plugin_mixin/http_client_spec.rb +25 -13
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 997861fb27c7f41617d640e9526db40c9750fc27
|
4
|
+
data.tar.gz: becffe860628916c9829ac650fff941067a35009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51baa92d069a19d4885fd97755da05aa3e2b409536ce4d8d68fb32e33777d1dd9d7e4729e6bb41f1c458e6615d098162fb8c4fc82dfb68c98abf9932cefd045f
|
7
|
+
data.tar.gz: 2415d592ecaa660f4fbc1f0e5f0706881377ad52909f58f66d1b8c9efe7ebf24b03ef6a641ce11d7b964f078ab8c83db3bc8d79fa3646fc3d3d1af134b6b97e6
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 4.0.3
|
2
|
+
- Raise configuration error when user supplies a trust/keystore without a password
|
3
|
+
|
1
4
|
## 4.0.2
|
2
5
|
- Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
|
3
6
|
|
@@ -19,7 +22,7 @@
|
|
19
22
|
* Default `automatic_retries` to 1 to fix connections to hosts with broken keepalive
|
20
23
|
* Add `non_idempotent_retries` option
|
21
24
|
# 2.0.0
|
22
|
-
* Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
25
|
+
* Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
23
26
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
24
27
|
* Dependency on logstash-core update to 2.0
|
25
28
|
# 1.0.2
|
@@ -127,24 +127,24 @@ module LogStash::PluginMixins::HttpClient
|
|
127
127
|
if @truststore
|
128
128
|
c[:ssl].merge!(
|
129
129
|
:truststore => @truststore,
|
130
|
-
:truststore_type => @truststore_type
|
130
|
+
:truststore_type => @truststore_type,
|
131
|
+
:truststore_password => @truststore_password.value
|
131
132
|
)
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
c[:ssl].merge!(truststore_password: @truststore_password.value)
|
133
|
+
|
134
|
+
if c[:ssl][:truststore_password].nil?
|
135
|
+
raise LogStash::ConfigurationError, "Truststore declared without a password! This is not valid, please set the 'truststore_password' option"
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
139
|
if @keystore
|
140
140
|
c[:ssl].merge!(
|
141
141
|
:keystore => @keystore,
|
142
|
-
:keystore_type => @keystore_type
|
142
|
+
:keystore_type => @keystore_type,
|
143
|
+
:keystore_password => @keystore_password.value
|
143
144
|
)
|
144
145
|
|
145
|
-
|
146
|
-
|
147
|
-
c[:ssl].merge!(keystore_password: @keystore_password.value)
|
146
|
+
if c[:ssl][:keystore_password].nil?
|
147
|
+
raise LogStash::ConfigurationError, "Keystore declared without a password! This is not valid, please set the 'keystore_password' option"
|
148
148
|
end
|
149
149
|
end
|
150
150
|
|
@@ -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
|
+
s.version = '4.0.3'
|
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"
|
@@ -85,21 +85,33 @@ describe LogStash::PluginMixins::HttpClient do
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
88
|
+
["keystore", "truststore"].each do |store|
|
89
|
+
describe "with a custom #{store}" do
|
90
|
+
let(:file) { Stud::Temporary.file }
|
91
|
+
let(:path) { file.path }
|
92
|
+
let(:password) { "foo" }
|
93
|
+
after { File.unlink(path)}
|
93
94
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
95
|
+
let(:conf) {
|
96
|
+
basic_config.merge(
|
97
|
+
store => path,
|
98
|
+
"#{store}_password" => password,
|
99
|
+
"#{store}_type" => "jks"
|
100
|
+
)
|
101
|
+
}
|
102
|
+
|
103
|
+
include_examples("setting ca bundles", store.to_sym, :jks)
|
101
104
|
|
102
|
-
|
105
|
+
context "with no password set" do
|
106
|
+
let(:password) { nil }
|
107
|
+
|
108
|
+
it "should raise an error" do
|
109
|
+
expect do
|
110
|
+
Dummy.new(conf).client_config
|
111
|
+
end.to raise_error(LogStash::ConfigurationError)
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
103
115
|
end
|
104
116
|
|
105
117
|
describe "with a client cert" do
|
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.
|
4
|
+
version: 4.0.3
|
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-
|
11
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.4.8
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: AWS mixins to provide a unified interface for Amazon Webservice
|