VAYUFailure Labs
Colour theme
Investigate a failure

VAYU FAILURE LABS · DISCLOSED SYNTHETIC SCENARIO

Browse all labs

Kafka TLS certificate chain

LAB 03 · KAFKA

The broker is reachable.
TLS still cannot build trust.

Synthetic case7–9 minutesMedium difficulty

THE FAILURE

A Kafka consumer fails before fetching metadata with SSLHandshakeException: PKIX path building failed.

THE CONSTRAINT

DNS resolves and TCP connects to the TLS listener. Rotating SASL credentials changed nothing.

YOUR JOB

Separate network reachability, authentication, and certificate-chain trust before changing client secrets.

CLIENT EXCERPT

Relevant security settings

consumer.py
consumer = Consumer({
    "bootstrap.servers": "orders-kafka.internal:9093",
    "security.protocol": "SSL",
    "ssl.ca.location": "/app/certs/platform-root.pem",
    "group.id": "daily-orders",
})
consumer.list_topics(timeout=10)

The client starts a TLS handshake before it can authenticate or request Kafka metadata.

EVIDENCE TRAIL

Open the signals in order

0 of 3 signals reviewed
01Connection attemptDid the client reach the broker?
Connecting to orders-kafka.internal:9093
TCP connection established
SSL handshake failed: unable to get local issuer certificate
Metadata request was not sent

The network path works. The failure happens before broker authentication or authorisation is relevant.

02Presented chainWhich issuer did the broker omit?
Subject: CN=orders-kafka.internal
Issuer:  CN=Data Platform Issuing CA 02
Presented certificates: 1
Verification error: unable to get local issuer certificate

The listener presented its leaf certificate but not the issuing intermediate certificate.

03Client trust bundleCan it complete the missing link?
/app/certs/platform-root.pem
  └── CN=Platform Root CA

Missing: CN=Data Platform Issuing CA 02

The client has the root, but cannot validate a leaf whose intermediate was neither served by the broker nor available in the configured trust bundle.

Reference: Apache Kafka TLS / SSL documentation.

LIKELY ROOT CAUSEThe listener served an incomplete certificate chain, and the client bundle did not contain the missing intermediate.

This is a trust-chain problem, not a Kafka credential failure. The durable correction is to configure the broker listener with the complete certificate chain.

−ssl.ca.location=/app/certs/platform-root.pem
+ssl.ca.location=/app/certs/platform-ca-bundle.pem

REVIEW BEFORE APPLYINGA client bundle can unblock this workload, but repair the broker chain too. Otherwise every new client inherits the same fragile workaround.

What this lab teaches: a successful socket connection proves reachability only. It does not prove that the client can establish TLS trust.

WHEN THE FAILURE IS YOURS

Bring the real context.
Keep the review step.

VAYU investigates the code and logs you explicitly submit. It never executes them.

Start a free investigation