notification.kafka: add SASL authentication and TLS support (#8832)
* notification.kafka: add SASL authentication and TLS support (#8827) Wire sarama SASL (PLAIN, SCRAM-SHA-256, SCRAM-SHA-512) and TLS configuration into the Kafka notification producer and consumer, enabling connections to secured Kafka clusters. * notification.kafka: validate mTLS config * kafka notification: validate partial mTLS config, replace panics with errors - Reject when only one of tls_client_cert/tls_client_key is provided - Replace three panic() calls in KafkaInput.initialize with returned errors * kafka notification: enforce minimum TLS 1.2 for Kafka connections
This commit is contained in:
@@ -22,6 +22,17 @@ hosts = [
|
||||
topic = "seaweedfs_filer"
|
||||
offsetFile = "./last.offset"
|
||||
offsetSaveIntervalSeconds = 10
|
||||
# SASL Authentication
|
||||
sasl_enabled = false
|
||||
sasl_mechanism = "PLAIN" # PLAIN, SCRAM-SHA-256, SCRAM-SHA-512
|
||||
sasl_username = ""
|
||||
sasl_password = ""
|
||||
# TLS/SSL
|
||||
tls_enabled = false
|
||||
tls_ca_cert = "" # path to CA certificate PEM file
|
||||
tls_client_cert = "" # path to client certificate PEM file (for mTLS)
|
||||
tls_client_key = "" # path to client private key PEM file (for mTLS)
|
||||
tls_insecure_skip_verify = false
|
||||
|
||||
|
||||
[notification.aws_sqs]
|
||||
|
||||
Reference in New Issue
Block a user