Jon Slusher
12/05/2025, 9:18 PMJon Slusher
12/05/2025, 9:21 PMauthentication:
type: scram-sha-512
username: "kc-test"
passwordSecret:
secretName: strimzi-connect-secrets
password: kc-test-password
bootstrapServers: <http://strimzi-kafka-bootstrap.staging.example.com:9096|strimzi-kafka-bootstrap.staging.example.com:9096>Jon Slusher
12/05/2025, 9:23 PM'connector' = 'kafka',
'topic' = 'debezium.sdlc-example.example.my_table',
'properties.bootstrap.servers' = '{BOOTSTRAP}',
'properties.security.protocol' = 'SASL_SSL',
'properties.sasl.mechanism' = 'SCRAM-SHA-512',
'properties.sasl.jaas.config' = 'org.apache.flink.kafka.shaded.org.apache.kafka.common.security.scram.ScramLoginModule required username=\"{KAFKA_SASL_USERNAME}\" password=\"{KAFKA_SASL_PASSWORD}\";',
With this configured as the bootstrap server:
BOOTSTRAP = "<http://strimzi-kafka-bootstrap.staging.example.com:9096|strimzi-kafka-bootstrap.staging.example.com:9096>"Jon Slusher
12/05/2025, 9:24 PM2025-12-05 21:05:24,581 WARN org.apache.flink.kafka.shaded.org.apache.kafka.clients.NetworkClient [] - [Producer clientId=producer-1] Bootstrap broker <http://strimzi-kafka-bootstrap.staging.example.com:9096|strimzi-kafka-bootstrap.staging.example.com:9096> (id: -1 rack: null) disconnected
2025-12-05 21:05:25,643 INFO org.apache.flink.kafka.shaded.org.apache.kafka.clients.NetworkClient [] - [Producer clientId=producer-1] Node -1 disconnected.
2025-12-05 21:05:25,644 INFO org.apache.flink.kafka.shaded.org.apache.kafka.clients.NetworkClient [] - [Producer clientId=producer-1] Cancelled in-flight API_VERSIONS request with correlation id 39 due to node -1 being disconnected (elapsed time since creation: 8ms, elapsed time since send: 8ms, request timeout: 30000ms)Jon Slusher
12/05/2025, 9:28 PMorg.apache.flink.connector.kafka.source.enumerator.KafkaSourceEnumerator [] - Discovered new partitions: [debezium.sdlc-example.example.my_table-61, debezium.sdlc-example.example.my_table-32, debezium.sdlc-example.example.my_table-65, debezium.sdlc-example.example.my_table-36, debezium.sdlc-example.example.my_table-3,Jon Slusher
12/05/2025, 11:07 PM23:06:29,132 INFO [SocketServer listenerType=ZK_BROKER, nodeId=2] Failed authentication with /172.26.15.0 (channelId=172.24.152.2:9096-172.26.15.0:8774-864) (SSL handshake failed) (org.apache.kafka.common.network.Selector) [data-plane-kafka-network-thread-2-ListenerName(SCRAM-9096)-SASL_SSL-8]Jaehyeon Kim
12/06/2025, 12:12 AMSSL handshake failed. I think you should add the truststore location and password.Jon Slusher
12/06/2025, 12:19 AMSASL_SCRAM and in the past it's indicated a malformed JAAS config string. If I'm using JAAS, why would I need to specify a truststore?Jon Slusher
12/06/2025, 12:20 AMJaehyeon Kim
12/06/2025, 12:29 AMJon Slusher
12/08/2025, 4:46 PMJon Slusher
12/08/2025, 4:48 PMIt is not likely that authentication works on the JobManager but not TaskManagers.I wouldn't think so either, but how is the jobManager seeing the topic and its partitions before spawning the taskManager?
Jon Slusher
12/08/2025, 10:35 PM'properties.ssl.truststore.location' = '/opt/flink/certs/ca.p12',
'properties.ssl.truststore.password' = '{CA_TRUSTSTORE_SECRET}',
'properties.ssl.truststore.type' = 'PKCS12',
I'm getting a different error now, but I verified that the certificate exists in the location I specified:
org.apache.flink.kafka.shaded.org.apache.kafka.common.errors.SslAuthenticationException: SSL handshake failed
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetJaehyeon Kim
12/08/2025, 10:59 PMJon Slusher
12/08/2025, 11:02 PMJon Slusher
12/08/2025, 11:46 PM'properties.ssl.truststore.location' = '/etc/ssl/certs/ca.crt',
'properties.ssl.truststore.type' = 'PEM',
but I'm getting the same error:
Caused by: org.apache.flink.kafka.shaded.org.apache.kafka.common.errors.SslAuthenticationException: SSL handshake failed
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetJon Slusher
12/08/2025, 11:59 PMca.crt file was exported from the cluster and I'm wondering if it needs to have intermediary certificates added or something :\Jon Slusher
12/09/2025, 12:02 AM/etc/ssl/certs/java/cacerts maybe?