Skip to content

Commit c352cd7

Browse files
committed
Update README.md
1 parent 07faba2 commit c352cd7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,8 @@ This configures the store to look up CA certificates from the system default cer
945945

946946
In order to authenticate the client to the cluster, you need to pass in a certificate and key created for the client and trusted by the brokers.
947947

948+
**NOTE**: You can disable hostname validation by passing `verify_hostname: false`.
949+
948950
```ruby
949951
kafka = Kafka.new(
950952
["kafka1:9092"],

lib/kafka/client.rb

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ class Client
6565
# @param sasl_oauth_token_provider [Object, nil] OAuthBearer Token Provider instance that
6666
# implements method token. See {Sasl::OAuth#initialize}
6767
#
68+
# @param verify_hostname [Boolean, true] whether to verify that the host serving
69+
# the SSL certificate and the signing chain of the certificate have the correct domains
70+
# based on the CA certificate
71+
#
6872
# @return [Client]
6973
def initialize(seed_brokers:, client_id: "ruby-kafka", logger: nil, connect_timeout: nil, socket_timeout: nil,
7074
ssl_ca_cert_file_path: nil, ssl_ca_cert: nil, ssl_client_cert: nil, ssl_client_cert_key: nil,

0 commit comments

Comments
 (0)