sbmt-kafka_producer 3.2.1 → 3.2.2

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
  SHA256:
3
- metadata.gz: 7ef04b2d6c65a948b331f8391febd8071c8c8b89a731cf93502d6db81c3f1bf4
4
- data.tar.gz: '08994cb0a8a3fd85bda21025445aa100b522bc765e1587f41ee239ef69ad04f1'
3
+ metadata.gz: 3ea0a004bfc52e8ea17147e3790736b3a11a872a3f07e8c0d116f556e16d1547
4
+ data.tar.gz: a564730ca23fe349b675781d4c3baf2ba176b29276fb5898f6f4375f4ac3ff37
5
5
  SHA512:
6
- metadata.gz: 624be193d11ef46925a37ad8ba8060f9358165c73b5896209cf29ae3face7a3f614f85ed5e7b1551588eb15f0a203148c80c451fe198e531de040c2c24c4f5a1
7
- data.tar.gz: bf2b7570b5b994cd4fa5c38caf5703b0dc19730ba77edbf0bed7e8a3ef89576f4f74942956abaf571750d9a84fa4b14adf1268831da090f27fa40caf677c674a
6
+ metadata.gz: ad63b11408ba5e6cf902ed147cafcb36f384e59ba3464b70497f3cf14fe34527dd4e7ce9a0ec2e286839eb108c3c4e5163a225f7547712e8da1a747740a757ec
7
+ data.tar.gz: 224a37380c9a438b2bff12a98b75b4e61bcec1b35acd6301c47aca446a885359b0ea8054d39c417c4c42764ed28083cc4bc313072dd686e506769b10a8227704
data/CHANGELOG.md CHANGED
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
13
 
14
14
  ### Fixed
15
15
 
16
+ ## [3.2.2] - 2025-01-27
17
+
18
+ ### Fixed
19
+
20
+ - Kafka configuration was overwritten with the default authorization options (#2)
21
+
16
22
  ## [3.2.1] - 2024-12-26
17
23
 
18
24
  ### Fixed
data/README.md CHANGED
@@ -106,6 +106,18 @@ auth:
106
106
  sasl_mechanism: SCRAM-SHA-512
107
107
  ```
108
108
 
109
+ If you need to use another variant, use the low-level custom Kafka options `kafka_config:` of `config/kafka_producer.yml`. These options will overwrite the options in the auth section.
110
+
111
+ Example of SASL_SSL protocol auth via `kafka_config`:
112
+
113
+ ```yaml
114
+ kafka_config:
115
+ security.protocol: SASL_SSL
116
+ sasl.username: user
117
+ sasl.password: pwd
118
+ ssl.ca.pem: ca_cert
119
+ sasl.mechanism: SCRAM-SHA-512
120
+ ```
109
121
  ### `kafka` config section
110
122
 
111
123
  The `servers` key is required and should be in rdkafka format: without `kafka://` prefix, for example: `srv1:port1,srv2:port2,...`.
@@ -41,8 +41,8 @@ module Sbmt
41
41
  coerce_types auth: coerce_to(Auth)
42
42
 
43
43
  def to_kafka_options
44
- kafka.to_kafka_options
45
- .merge(auth.to_kafka_options)
44
+ auth.to_kafka_options
45
+ .merge(kafka.to_kafka_options)
46
46
  end
47
47
  end
48
48
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sbmt
4
4
  module KafkaProducer
5
- VERSION = "3.2.1"
5
+ VERSION = "3.2.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbmt-kafka_producer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuper Ruby-Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-27 00:00:00.000000000 Z
11
+ date: 2025-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config
@@ -426,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  - !ruby/object:Gem::Version
427
427
  version: '0'
428
428
  requirements: []
429
- rubygems_version: 3.1.6
429
+ rubygems_version: 3.5.21
430
430
  signing_key:
431
431
  specification_version: 4
432
432
  summary: Ruby gem for producing Kafka messages