fluent-plugin-amqp 0.12.0 → 0.13.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/lib/fluent/plugin/in_amqp.rb +3 -11
- data/lib/fluent/plugin/out_amqp.rb +3 -11
- 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: e93fe77ace14180d097374471e736a137036749d
|
4
|
+
data.tar.gz: 6cb705baeaa7630379a9796a0ebb72e8f4c3cba7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e426235e9caaa1b2f33ee7684820e48b2e73fcdb1c82bebe5e018e343924f6e61fcfb8064f4ff99b4e77bcc148e88f557290007e0d0bddb6c36108728f8bba9
|
7
|
+
data.tar.gz: 6bf70391454be18dc1ef97e157bc2dcd87ec8da28e95103e5a04c42d01feed1dcb22fc899ef922e3c1f5ee52af1a5161973634f4c4106bf08441722713f14cc5
|
@@ -60,7 +60,6 @@ module Fluent::Plugin
|
|
60
60
|
unless (@host || @hosts) && @queue
|
61
61
|
raise Fluent::ConfigError, "'host(s)' and 'queue' must be all specified."
|
62
62
|
end
|
63
|
-
check_tls_configuration
|
64
63
|
end
|
65
64
|
|
66
65
|
def start
|
@@ -136,14 +135,6 @@ module Fluent::Plugin
|
|
136
135
|
end
|
137
136
|
end
|
138
137
|
|
139
|
-
def check_tls_configuration()
|
140
|
-
if @tls
|
141
|
-
unless @tls_key && @tls_cert
|
142
|
-
raise Fluent::ConfigError, "'tls_key' and 'tls_cert' must be all specified if tls is enabled."
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
138
|
def get_connection_options()
|
148
139
|
hosts = @hosts ||= Array.new(1, @host)
|
149
140
|
opts = {
|
@@ -151,10 +142,11 @@ module Fluent::Plugin
|
|
151
142
|
pass: @pass, user: @user, ssl: @ssl,
|
152
143
|
verify_ssl: @verify_ssl, heartbeat: @heartbeat,
|
153
144
|
tls: @tls,
|
154
|
-
tls_cert: @tls_cert,
|
155
|
-
tls_key: @tls_key,
|
156
145
|
verify_peer: @tls_verify_peer
|
157
146
|
}
|
147
|
+
# Include additional optional TLS configurations
|
148
|
+
opts[:tls_key] = @tls_key if @tls_key
|
149
|
+
opts[:tls_cert] = @tls_cert if @tls_cert
|
158
150
|
opts[:tls_ca_certificates] = @tls_ca_certificates if @tls_ca_certificates
|
159
151
|
return opts
|
160
152
|
end
|
@@ -46,6 +46,7 @@ module Fluent::Plugin
|
|
46
46
|
config_param :tls_verify_peer, :bool, default: true
|
47
47
|
config_param :content_type, :string, default: "application/octet"
|
48
48
|
config_param :content_encoding, :string, default: nil
|
49
|
+
config_param :auth_mechanism, :string, default: nil
|
49
50
|
|
50
51
|
config_section :header do
|
51
52
|
config_set_default :@type, DEFAULT_BUFFER_TYPE
|
@@ -110,7 +111,6 @@ module Fluent::Plugin
|
|
110
111
|
unless @key || @tag_key
|
111
112
|
raise Fluent::ConfigError, "Either 'key' or 'tag_key' must be set."
|
112
113
|
end
|
113
|
-
check_tls_configuration
|
114
114
|
end
|
115
115
|
|
116
116
|
def start
|
@@ -218,15 +218,6 @@ module Fluent::Plugin
|
|
218
218
|
h
|
219
219
|
end
|
220
220
|
|
221
|
-
|
222
|
-
def check_tls_configuration()
|
223
|
-
if @tls
|
224
|
-
unless @tls_key && @tls_cert
|
225
|
-
raise Fluent::ConfigError, "'tls_key' and 'tls_cert' must be all specified if tls is enabled."
|
226
|
-
end
|
227
|
-
end
|
228
|
-
end
|
229
|
-
|
230
221
|
def get_connection_options()
|
231
222
|
hosts = @hosts ||= Array.new(1, @host)
|
232
223
|
opts = {
|
@@ -236,7 +227,8 @@ module Fluent::Plugin
|
|
236
227
|
tls: @tls || nil,
|
237
228
|
tls_cert: @tls_cert,
|
238
229
|
tls_key: @tls_key,
|
239
|
-
verify_peer: @tls_verify_peer
|
230
|
+
verify_peer: @tls_verify_peer,
|
231
|
+
auth_mechanism: @auth_mechanism
|
240
232
|
}
|
241
233
|
opts[:tls_ca_certificates] = @tls_ca_certificates if @tls_ca_certificates
|
242
234
|
return opts
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-amqp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiromi Ishii
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2019-02-24 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: fluentd
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
169
|
rubyforge_project:
|
170
|
-
rubygems_version: 2.5.
|
170
|
+
rubygems_version: 2.5.1
|
171
171
|
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: AMQP input/output plugin or fluentd
|