Author: Yannick Jaquier
Find more about me on social media.How to protect your database code from SQL injections
Kafka TLS/SSL encryption and Access Control Lists (ACLs) setup
Table of contents
- Preamble
- Kafka TLS/SSL encryption
- Access Control Lists (ACLs)
-
Issues encountered
- org.apache.kafka.common.errors.SslAuthenticationException: SSL handshake failed
- Error creating Kafka producer: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'server01.domain.com'. (_ssl.c:1028)
- Error creating Kafka producer: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1028)
- listenerName=ListenerName(CONTROLLER), securityProtocol=SASL_SSL, buffer=null, envelope=None) is not authorized
- References
Configure Kafka authentication to build Kafka client application
Table of contents
- Preamble
- Confluent Community Platform SASL/PLAIN setup for Kafka client application authentication
- Python consumer and producer Kafka client application
- Java consumer and producer Kafka client application
- Connecting to Oracle
-
Issues encountered
- java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment.
- KafkaTimeoutError: Failed to update metadata after 4999000.0 secs
- No serviceName defined in either JAAS or Kafka config
- org.apache.kafka.common.errors.SaslAuthenticationException: Failed to configure SaslClientAuthenticator
- Unexpected Kafka request of type METADATA during SASL handshake
- bootstrap.servers ignored and keeps trying to connect to localhost:9092
- Even with 'auto.offset.reset' set to 'earliest' you get no message
- References
Confluent Kafka REST API setup and testing
Table of contents
- Preamble
- Confluent Community Platform and Confluent Kafka REST API installation
- Data model creation
- Pushing from Oracle to Confluent Kafka REST API
- Pushing from Python to Confluent Kafka REST API
- Using curl for rapid testing
- Secure Standalone Confluent Kafka REST API Proxy
- Issues encountered
- References