fluent-plugin-kafka 0.8.0 → 0.8.1

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: faa29645a4c13d7400459f16cbf7720e3bf8a3cc
4
- data.tar.gz: 56a4b88bbfc9f42efe9f87bc845552bc17b1f019
3
+ metadata.gz: 7dd4c51d1a923bc770c5c5a0a57778c573e0a042
4
+ data.tar.gz: e55b05ba6214d79a4020ac505b535ca618d8355e
5
5
  SHA512:
6
- metadata.gz: 13253507831d6f1e07e0937f3b4d01e01ffa2ea60605ad3cb1c326f3a4606c3a1173d07d3688250b8866ae3a20a69662c05e688ba746cc677c448a643082e528
7
- data.tar.gz: 4fb3eb6ed6ffd61b12efa4e8da930a573b5420a4681885a66b54c9052a5907bc39ad6c17d6d65d7aefaa9f8546fe8453cee199ad52a48a1d4a799636b8f0165f
6
+ metadata.gz: 9b659a098b6c7ec810434a6c0db350c01992d419c0809862eb705346cb1035b19adf6c73c45fff121ce764b38a84df6c29688cc090b9157f31264975b0c20f0b
7
+ data.tar.gz: 2be308b6ab267b1cc0e73f38b728d6d6fd94c59c6c30069562e55dc72f3e0752762d14506e315d5d094d8b4dbbc719b1960b40c091609a5262aabcac9a527658
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.8.1 - 2018/11/20
2
+
3
+ * input: Support SASL without SSL
4
+
1
5
  Release 0.8.0 - 2018/10/18
2
6
 
3
7
  * output: Support SASL without SSL
data/README.md CHANGED
@@ -41,12 +41,25 @@ If you want to use zookeeper related parameters, you also need to install zookee
41
41
 
42
42
  Set path to SSL related files. See [Encryption and Authentication using SSL](https://github.com/zendesk/ruby-kafka#encryption-and-authentication-using-ssl) for more detail.
43
43
 
44
- #### SASL authentication
44
+ #### SASL authentication
45
+
46
+ ##### with GSSAPI
45
47
 
46
48
  - principal
47
49
  - keytab
48
50
 
49
- Set principal and path to keytab for SASL/GSSAPI authentication. See [Authentication using SASL](https://github.com/zendesk/ruby-kafka#authentication-using-sasl) for more details.
51
+ Set principal and path to keytab for SASL/GSSAPI authentication.
52
+ See [Authentication using SASL](https://github.com/zendesk/ruby-kafka#authentication-using-sasl) for more details.
53
+
54
+ ##### with Plain/SCRAM
55
+
56
+ - username
57
+ - password
58
+ - scram_mechanism
59
+ - sasl_over_ssl
60
+
61
+ Set username, password, scram_mechanism and sasl_over_ssl for SASL/Plain or Scram authentication.
62
+ See [Authentication using SASL](https://github.com/zendesk/ruby-kafka#authentication-using-sasl) for more details.
50
63
 
51
64
  ### Input plugin (@type 'kafka')
52
65
 
@@ -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.8.0'
16
+ gem.version = '0.8.1'
17
17
  gem.required_ruby_version = ">= 2.1.0"
18
18
 
19
19
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -20,6 +20,8 @@ class Fluent::KafkaInput < Fluent::Input
20
20
  config_param :topics, :string, :default => nil,
21
21
  :desc => "Listening topics(separate with comma',')"
22
22
  config_param :client_id, :string, :default => 'kafka'
23
+ config_param :sasl_over_ssl, :bool, :default => true,
24
+ :desc => "Set to false to prevent SSL strict mode when using SASL authentication"
23
25
  config_param :partition, :integer, :default => 0,
24
26
  :desc => "Listening partition"
25
27
  config_param :offset, :integer, :default => -1,
@@ -177,7 +179,7 @@ class Fluent::KafkaInput < Fluent::Input
177
179
  @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
178
180
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
179
181
  ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_scram_username: @username, sasl_scram_password: @password,
180
- sasl_scram_mechanism: @scram_mechanism)
182
+ sasl_scram_mechanism: @scram_mechanism, sasl_over_ssl: @sasl_over_ssl)
181
183
  elsif @username != nil && @password != nil
182
184
  @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
183
185
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
@@ -12,6 +12,8 @@ class Fluent::KafkaGroupInput < Fluent::Input
12
12
  config_param :topics, :string,
13
13
  :desc => "Listening topics(separate with comma',')."
14
14
  config_param :client_id, :string, :default => 'kafka'
15
+ config_param :sasl_over_ssl, :bool, :default => true,
16
+ :desc => "Set to false to prevent SSL strict mode when using SASL authentication"
15
17
  config_param :format, :string, :default => 'json',
16
18
  :desc => "Supported format: (json|text|ltsv|msgpack)"
17
19
  config_param :message_key, :string, :default => 'message',
@@ -153,7 +155,7 @@ class Fluent::KafkaGroupInput < Fluent::Input
153
155
  @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
154
156
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
155
157
  ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_scram_username: @username, sasl_scram_password: @password,
156
- sasl_scram_mechanism: @scram_mechanism)
158
+ sasl_scram_mechanism: @scram_mechanism, sasl_over_ssl: @sasl_over_ssl)
157
159
  elsif @username != nil && @password != nil
158
160
  @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
159
161
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
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.8.0
4
+ version: 0.8.1
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-10-19 00:00:00.000000000 Z
12
+ date: 2018-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd