Kafka Connection Security Configuration Guide
caution
Kafka is used in all three images of this product: mingdaoyun-hap, mingdaoyun-hdp, and mingdaoyun-flink. Any adjustments to the security configuration must be applied to all of them accordingly.
Connection Configuration Parameters
| Environment Variable | Description | Default Value |
|---|---|---|
ENV_KAFKA_ENDPOINTS | Kafka broker address list. Multiple addresses should be separated by commas | 127.0.0.1:9092 |
ENV_KAFKA_SECURITY_PROTOCOL | Kafka security protocol mode | Empty |
ENV_KAFKA_SASL_MECHANISM | SASL authentication mechanism | Empty |
ENV_KAFKA_SASL_USERNAME | SASL username | Empty |
ENV_KAFKA_SASL_PASSWORD | SASL password | Empty |
ENV_KAFKA_SSL_CA_LOCATION | Kafka CA certificate path | Empty |
ENV_KAFKA_SSL_CLIENT_CA_LOCATION | Kafka client certificate path | Empty |
ENV_KAFKA_SSL_CLIENT_KEY_LOCATION | Kafka client private key path | Empty |
Security Protocol Modes
Kafka supports multiple security authentication modes, including Plaintext、SaslPlaintext、Ssl、SaslSsl.