View Source KafkaEx.Auth.ScramFlow (kafka_ex v0.15.0)
SCRAM auth flow (built-in)
Implements the SCRAM client exchange: client-first → server-first → client-final → server-final, including nonce generation, salted password derivation, proofs, and server signature validation.
Features
- SCRAM-SHA-256 and SCRAM-SHA-512
- Stateless helpers for building/validating messages
- Integrates with
KafkaEx.Auth.SASLfor wire I/O
Security
- Requires TLS in production deployments
- Passwords are never logged; be careful with custom logging
See also
- RFC 5802 / RFC 7677 for SCRAM
KafkaEx.Auth.SASL– handshake/authenticate transportKafkaEx.Auth.Config– username/password provisioning
Summary
Types
@type algo() :: :sha256 | :sha512