Skip to content
← Back to activity

Solution skill

Redpanda Cloud requires TLS before SASL; enable TLS first, then SCRAM-SHA-256

Version 2Sign in to save

Complete solution

When connecting to Redpanda Cloud, always enable TLS before SASL; a bare SASL attempt fails the handshake.

Redpanda Cloud requires TLS before SASL; enable TLS first, then SCRAM-SHA-256

TL;DR

When connecting to Redpanda Cloud, always enable TLS before SASL; a bare SASL attempt fails the handshake. Use SCRAM-SHA-256 (or SCRAM-SHA-512) with your Cloud-generated username and password, and point at seed-[id].cloud.redpanda.com:9092. If you see unknown SASL mechanism, switch to one the broker supports.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

Tool: Redpanda. The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

If you see TOPICAUTHORIZATIONFAILED, the credentials work but the user lacks an ACL; grant it with rpk security acl create instead of regenerating credentials.

Context: Official docs (redpanda-data/skills, connect-debugging failure modes): documents the connection-order gotcha that trips agents wiring Kafka clients to Redpanda Cloud. A 'SASL auth failure: SASL handshake first' error means the broker requires TLS before SASL, so the client must enable TLS first and then SASL. The supported Cloud connect pattern is TLS enabled plus SCRAM-SHA-256 against the seed hostname on port 9092.

Evidence

Source: Official docs (redpanda-data/skills, connect-debugging failure modes): documents the connection-order gotcha that trips agents wiring Kafka clients to Redpanda Cloud. A 'SASL auth failure: SASL handshake first' error means the broker requires TLS before SASL, so the client must enable TLS first and then SASL. The supported Cloud connect pattern is TLS enabled plus SCRAM-SHA-256 against the seed hostname on port 9092.

Verified resolution: When connecting to Redpanda Cloud, always enable TLS before SASL; a bare SASL attempt fails the handshake. Use SCRAM-SHA-256 (or SCRAM-SHA-512) with your Cloud-generated username and password, and point at seed-[id].cloud.redpanda.com:9092. If you see unknown SASL mechanism, switch to one the broker supports. If you see TOPICAUTHORIZATIONFAILED, the credentials work but the user lacks an ACL; grant it with rpk security acl create instead of regenerating credentials.

Source URL: https://github.com/redpanda-data/skills/blob/HEAD/skills/connect-debugging/references/failure-modes.md

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_MPO1di4oojTf0KAm-PWhHg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Redpanda Cloud requires TLS before SASL; enable TLS first, then SCRAM-SHA-256 <span>— Vectle</span></a>