Skip to content

Commit

Permalink
Enable SASL authentication in backup code
Browse files Browse the repository at this point in the history
Pass SASL related connection parameters to KafkaAdminClient so backup
code can access Kafka also with SASL authentication.
  • Loading branch information
tvainika committed Oct 3, 2023
1 parent 8d4b05c commit d9e9d29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions karapace/kafka_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def kafka_admin_from_config(config: Config) -> KafkaAdminClient:
bootstrap_servers=config["bootstrap_uri"],
client_id=config["client_id"],
security_protocol=config["security_protocol"],
sasl_mechanism=config["sasl_mechanism"],
sasl_plain_username=config["sasl_plain_username"],
sasl_plain_password=config["sasl_plain_password"],
ssl_cafile=config["ssl_cafile"],
ssl_certfile=config["ssl_certfile"],
ssl_keyfile=config["ssl_keyfile"],
Expand Down

0 comments on commit d9e9d29

Please sign in to comment.