fluent-plugin-kafka 0.7.2 → 0.7.3

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
- SHA1:
3
- metadata.gz: 12a2ab7f1bc8e9e7f247ac97f4a06876ff19ac0d
4
- data.tar.gz: e6a057a23d7a022ea73e668edb3665d01b22f93f
2
+ SHA256:
3
+ metadata.gz: 3700ac3c6331871e2aedab749485af0a85da5036516a529d648dae8a7a6b9b15
4
+ data.tar.gz: 3e228b9f8434435b19a46756a040a9103fff106ffcafbc3c2dfec186d6c3e619
5
5
  SHA512:
6
- metadata.gz: a6371e08ebba396eb95dfcd1d88bb42ddc879ad3b45fb1d4e7a4d60a75436e125afdc81408328c19402db4bf232c99bbf2a48b1190756064642c085d25391b6c
7
- data.tar.gz: c09f9e01261b4da1d8881c8eeb08bf5ce940358dff3f346ae4794ee93e2b6c113ad6156eee18eba1567f9247cdb36d28751a30b6504e15e15273e82c5c511ce0
6
+ metadata.gz: 26f9ecd9b37070352a23f9e689bf2ad36a830934953e5def18cd4e1097fa3e38145f67bf9ab43a5e4b4d10aa410e07e0de0b143f6a30154c21e287176a599050
7
+ data.tar.gz: fe61f987f8190529a2b7a3dfd40be7dfe97d30e44cb1274668b6f8a9216d9a0d43453bcf299ceeb5e9d45a7e10f46e1f3e2bd127b5644f812e3886d217034c53
@@ -5,8 +5,11 @@ rvm:
5
5
  - 2.2
6
6
  - 2.3.1
7
7
  - 2.4.1
8
+ - 2.5.0
8
9
  - ruby-head
9
10
 
11
+ before_install:
12
+ - gem update --system
10
13
  script:
11
14
  - bundle exec rake test
12
15
 
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.7.3 - 2018/05/30
2
+
3
+ * output: Use SSL endpoint when ssl_client_cert is true
4
+
1
5
  Release 0.7.2 - 2018/03/12
2
6
 
3
7
  * output: Fix the regression of get_kafka_client_log parameter
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = "fluent-plugin-kafka"
15
15
  gem.require_paths = ["lib"]
16
- gem.version = '0.7.2'
16
+ gem.version = '0.7.3'
17
17
  gem.required_ruby_version = ">= 2.1.0"
18
18
 
19
19
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -22,6 +22,12 @@ module Fluent
22
22
  File.read(path)
23
23
  end
24
24
  end
25
+
26
+ def pickup_ssl_endpoint(node)
27
+ ssl_endpoint = node['endpoints'].find {|e| e.start_with?('SSL')}
28
+ raise 'no SSL endpoint found on Zookeeper' unless ssl_endpoint
29
+ return [URI.parse(ssl_endpoint).host, URI.parse(ssl_endpoint).port].join(':')
30
+ end
25
31
  end
26
32
 
27
33
  module SaslSettings
@@ -90,7 +90,11 @@ DESC
90
90
  z = Zookeeper.new(@zookeeper)
91
91
  z.get_children(:path => @zookeeper_path)[:children].each do |id|
92
92
  broker = Yajl.load(z.get(:path => @zookeeper_path + "/#{id}")[:data])
93
- @seed_brokers.push("#{broker['host']}:#{broker['port']}")
93
+ if @ssl_client_cert
94
+ @seed_brokers.push(pickup_ssl_endpoint(broker))
95
+ else
96
+ @seed_brokers.push("#{broker['host']}:#{broker['port']}")
97
+ end
94
98
  end
95
99
  z.close
96
100
  log.info "brokers has been refreshed via Zookeeper: #{@seed_brokers}"
@@ -111,7 +111,11 @@ DESC
111
111
  z = Zookeeper.new(@zookeeper)
112
112
  z.get_children(:path => @zookeeper_path)[:children].each do |id|
113
113
  broker = Yajl.load(z.get(:path => @zookeeper_path + "/#{id}")[:data])
114
- @seed_brokers.push("#{broker['host']}:#{broker['port']}")
114
+ if @ssl_client_cert
115
+ @seed_brokers.push(pickup_ssl_endpoint(broker))
116
+ else
117
+ @seed_brokers.push("#{broker['host']}:#{broker['port']}")
118
+ end
115
119
  end
116
120
  z.close
117
121
  log.info "brokers has been refreshed via Zookeeper: #{@seed_brokers}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hidemasa Togashi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-13 00:00:00.000000000 Z
12
+ date: 2018-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.6.13
141
+ rubygems_version: 2.7.6
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Fluentd plugin for Apache Kafka > 0.8