logstash-output-kafka 8.0.1 → 8.0.2
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/CHANGELOG.md +3 -0
- data/docs/index.asciidoc +19 -0
- data/lib/logstash/outputs/kafka.rb +3 -0
- data/logstash-output-kafka.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a181914a2d65e4d8e4011c8a24a901b834051f5acc2be484fdd32c0034979cc
|
4
|
+
data.tar.gz: 3f79fa8abe30f469a6e03054aad37b4ce838ca764e36428eac56c7cb9559a9d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f8fa45d8c098a15e6810a298898584d9141878c01c4e5bf2758cef1ca5f9412932669a72c0dfd6a0d7a2849707d7455b6fd1ff6f9584098f5a9ffff31af57ee
|
7
|
+
data.tar.gz: 81b440f669adad7221c8d561a6171afccd0f687ecff9539601bc1543d90dbf6a837b4033a6025a43e761690d14d64504f58a984b73b88b67bf09ccf8f8a2d2bd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 8.0.2
|
2
|
+
- Added support for `sasl_jaas_config` setting to allow JAAS config per plugin, rather than per JVM [#223](https://github.com/logstash-plugins/logstash-output-kafka/pull/223)
|
3
|
+
|
1
4
|
## 8.0.1
|
2
5
|
- Fixed issue with unnecessary sleep after retries exhausted [#216](https://github.com/logstash-plugins/logstash-output-kafka/pull/216)
|
3
6
|
|
data/docs/index.asciidoc
CHANGED
@@ -78,6 +78,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
|
|
78
78
|
| <<plugins-{type}s-{plugin}-request_timeout_ms>> |<<string,string>>|No
|
79
79
|
| <<plugins-{type}s-{plugin}-retries>> |<<number,number>>|No
|
80
80
|
| <<plugins-{type}s-{plugin}-retry_backoff_ms>> |<<number,number>>|No
|
81
|
+
| <<plugins-{type}s-{plugin}-sasl_jaas_config>> |<<string,string>>|No
|
81
82
|
| <<plugins-{type}s-{plugin}-sasl_kerberos_service_name>> |<<string,string>>|No
|
82
83
|
| <<plugins-{type}s-{plugin}-sasl_mechanism>> |<<string,string>>|No
|
83
84
|
| <<plugins-{type}s-{plugin}-security_protocol>> |<<string,string>>, one of `["PLAINTEXT", "SSL", "SASL_PLAINTEXT", "SASL_SSL"]`|No
|
@@ -298,6 +299,24 @@ A value less than zero is a configuration error.
|
|
298
299
|
|
299
300
|
The amount of time to wait before attempting to retry a failed produce request to a given topic partition.
|
300
301
|
|
302
|
+
[id="plugins-{type}s-{plugin}-sasl_jaas_config"]
|
303
|
+
===== `sasl_jaas_config`
|
304
|
+
|
305
|
+
* Value type is <<string,string>>
|
306
|
+
* There is no default value for this setting.
|
307
|
+
|
308
|
+
JAAS configuration setting local to this plugin instance, as opposed to settings using config file configured using `jaas_path`, which are shared across the JVM. This allows each plugin instance to have its own configuration.
|
309
|
+
|
310
|
+
If both `sasl_jaas_config` and `jaas_path` configurations are set, the setting here takes precedence.
|
311
|
+
|
312
|
+
Example (setting for Azure Event Hub):
|
313
|
+
[source,ruby]
|
314
|
+
output {
|
315
|
+
kafka {
|
316
|
+
sasl_jaas_config => "org.apache.kafka.common.security.plain.PlainLoginModule required username='auser' password='apassword';"
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
301
320
|
[id="plugins-{type}s-{plugin}-sasl_kerberos_service_name"]
|
302
321
|
===== `sasl_kerberos_service_name`
|
303
322
|
|
@@ -164,6 +164,8 @@ class LogStash::Outputs::Kafka < LogStash::Outputs::Base
|
|
164
164
|
# `jaas_path` and `kerberos_config`. If this is not desirable, you would have to run separate instances of Logstash on
|
165
165
|
# different JVM instances.
|
166
166
|
config :jaas_path, :validate => :path
|
167
|
+
# JAAS configuration settings. This allows JAAS config to be a part of the plugin configuration and allows for different JAAS configuration per each plugin config.
|
168
|
+
config :sasl_jaas_config, :validate => :string
|
167
169
|
# Optional path to kerberos config file. This is krb5.conf style as detailed in https://web.mit.edu/kerberos/krb5-1.12/doc/admin/conf_files/krb5_conf.html
|
168
170
|
config :kerberos_config, :validate => :path
|
169
171
|
|
@@ -376,6 +378,7 @@ class LogStash::Outputs::Kafka < LogStash::Outputs::Base
|
|
376
378
|
end
|
377
379
|
|
378
380
|
props.put("sasl.kerberos.service.name",sasl_kerberos_service_name) unless sasl_kerberos_service_name.nil?
|
381
|
+
props.put("sasl.jaas.config", sasl_jaas_config) unless sasl_jaas_config.nil?
|
379
382
|
end
|
380
383
|
|
381
384
|
end #class LogStash::Outputs::Kafka
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-kafka'
|
4
|
-
s.version = '8.0.
|
4
|
+
s.version = '8.0.2'
|
5
5
|
s.licenses = ['Apache-2.0']
|
6
6
|
s.summary = "Writes events to a Kafka topic"
|
7
7
|
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"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.
|
4
|
+
version: 8.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elasticsearch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|