fluent-plugin-kafka 0.8.2 → 0.8.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
2
  SHA1:
3
- metadata.gz: abadce27fff22a0dcbe761409b60c6768a05cd5e
4
- data.tar.gz: d3babee5ea772f2b25fb3d48517c744995df5592
3
+ metadata.gz: a37f9f0d50de782ff77ec38e14fd671db38d56ab
4
+ data.tar.gz: 4e2cbcb586311c0df3cd551ce9a398d28d5019cb
5
5
  SHA512:
6
- metadata.gz: 1a797ad51c38545515c1e2fed6d3c9f6007b0a68a0cf45e19c6b187b8f78d4d9663159a674f7523263030f9baea289291a6b11940591533c2f14c071a81103f8
7
- data.tar.gz: 0b0944a0ffeff8c5d1c0277d0d7171562d076ce5079d32c7727b7431fd7d75695fd0e7fa2035c0ea2ee5a80282845c360cd3c842a0cfda286051e6b3825d1388
6
+ metadata.gz: 0cd05e42f6c17cdee15f2149bb770e7bd557e9d765c0d43ad973a6fc2f912b740700a6e6e0843cf850cf7e49294fb6e3e8b86e959c36d799943cfc2c15f18393
7
+ data.tar.gz: ea7e31b12abb1f9f1442c8c984f59e74119d7730c132c80355a6ef72322da419eef5326b36d8d8ed8691f95c86905f3059ebfe7cacbd72ad66f735f7e036e550
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.8.3 - 2018/12/16
2
+
3
+ * output: Add ssl_client_cert_chain parameter
4
+
1
5
  Release 0.8.2 - 2018/12/07
2
6
 
3
7
  * output: Add idempotent 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.8.2'
16
+ gem.version = '0.8.3'
17
17
  gem.required_ruby_version = ">= 2.1.0"
18
18
 
19
19
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -10,6 +10,8 @@ module Fluent
10
10
  :desc => "a PEM encoded client cert to use with and SSL connection. Must be used in combination with ssl_client_cert_key."
11
11
  config_param :ssl_client_cert_key, :string, :default => nil,
12
12
  :desc => "a PEM encoded client cert key to use with and SSL connection. Must be used in combination with ssl_client_cert."
13
+ config_param :ssl_client_cert_chain, :string, :default => nil,
14
+ :desc => "an extra PEM encoded cert to use with and SSL connection."
13
15
  config_param :ssl_ca_certs_from_system, :bool, :default => false,
14
16
  :desc => "this configures the store to look up CA certificates from the system default certificate store on an as needed basis. The location of the store can usually be determined by: OpenSSL::X509::DEFAULT_CERT_FILE."
15
17
  }
@@ -84,16 +84,17 @@ DESC
84
84
  logger = @get_kafka_client_log ? log : nil
85
85
  if @scram_mechanism != nil && @username != nil && @password != nil
86
86
  @kafka = Kafka.new(seed_brokers: @seed_brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
87
- ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key), ssl_ca_certs_from_system: @ssl_ca_certs_from_system,
88
- sasl_scram_username: @username, sasl_scram_password: @password, sasl_scram_mechanism: @scram_mechanism, sasl_over_ssl: @sasl_over_ssl)
87
+ ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key), ssl_client_cert_chain: read_ssl_file(@ssl_client_cert_chain),
88
+ ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_scram_username: @username, sasl_scram_password: @password,
89
+ sasl_scram_mechanism: @scram_mechanism, sasl_over_ssl: @sasl_over_ssl)
89
90
  elsif @username != nil && @password != nil
90
91
  @kafka = Kafka.new(seed_brokers: @seed_brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
91
- ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key), ssl_ca_certs_from_system: @ssl_ca_certs_from_system,
92
- sasl_plain_username: @username, sasl_plain_password: @password)
92
+ ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key), ssl_client_cert_chain: read_ssl_file(@ssl_client_cert_chain),
93
+ ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_plain_username: @username, sasl_plain_password: @password)
93
94
  else
94
95
  @kafka = Kafka.new(seed_brokers: @seed_brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
95
- ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key), ssl_ca_certs_from_system: @ssl_ca_certs_from_system,
96
- sasl_gssapi_principal: @principal, sasl_gssapi_keytab: @keytab)
96
+ ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key), ssl_client_cert_chain: read_ssl_file(@ssl_client_cert_chain),
97
+ ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_gssapi_principal: @principal, sasl_gssapi_keytab: @keytab)
97
98
  end
98
99
  log.info "initialized kafka producer: #{@client_id}"
99
100
  rescue Exception => e
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.2
4
+ version: 0.8.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-12-07 00:00:00.000000000 Z
12
+ date: 2018-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd