What is SaslHandshake?
Negotiates the SASL authentication mechanism immediately after TCP connection, before any data flows. If the client requests a mechanism the broker doesn't support (e.g., SCRAM-SHA-512 when only PLAIN is configured), the broker responds with the supported list and closes the connection.
| Version | Kafka | Changes |
|---|---|---|
| SaslHandshakeRequest | ||
| v0 | 2.2 | + Mechanism string |
| v1 | 2.2 | supports SASL_AUTHENTICATE. NOTE: Version cannot be easily bumped due to incorrect client negotiation for clients <= 2.4. See https://issues.apache.org/jira/browse/KAFKA-9577 |
| SaslHandshakeResponse | ||
| v0 | 2.2 | + ErrorCode int16+ Mechanisms []string |
| v1 | 2.2 | is the same as version 0. NOTE: Version cannot be easily bumped due to incorrect client negotiation for clients <= 2.4. See https://issues.apache.org/jira/browse/KAFKA-9577 |