What are the three main pillars of Kafka security?
Authentication, authorization, and encryption in transit.
What is the purpose of ACLs in Kafka?
ACLs define which principal may perform which operation on which resource.
Are ACLs used for authentication or authorization?
Authorization.
What is the difference between SSL/TLS and SASL in Kafka?
SSL/TLS provides transport encryption and optionally certificate-based auth; SASL is an authentication framework.
What is a principal in Kafka?
The identity Kafka derives after successful authentication and uses internally for authorization decisions.
Is a principal an active network component?
No. It is an identity, not a network actor.
Where are authentication and authorization mainly enforced in Kafka?
At the broker.
What is the usual high-level flow for a secured client request?
Connection established -> authentication -> principal derived -> ACL/authorization check -> request processed.
What does PLAINTEXT mean in Kafka?
No TLS and no SASL security on the connection.
What does SSL mean in Kafka?
TLS-encrypted transport, optionally with certificate-based client authentication.
What does SASL_PLAINTEXT mean in Kafka?
SASL authentication over an unencrypted connection.
What does SASL_SSL mean in Kafka?
SASL authentication over a TLS-encrypted connection.
Does SASL itself encrypt traffic?
No. SASL is for authentication, not transport encryption.
Which Kafka security protocol gives both authentication and encryption when used with SASL?
SASL_SSL.
What is the difference between PLAIN and PLAINTEXT?
PLAIN is a SASL mechanism; PLAINTEXT is an unencrypted transport mode.
Is PLAIN the same thing as SASL_PLAINTEXT?
No. PLAIN is the auth mechanism; SASL_PLAINTEXT is the connection protocol.
What is SASL/PLAIN conceptually?
A simple SASL username/password authentication mechanism.
What is SCRAM in Kafka security?
A SASL authentication mechanism, stronger than PLAIN.
Is SCRAM a replacement for SASL?
No. SCRAM is a mechanism within SASL.
Does SCRAM encrypt network traffic by itself?
No. You still need TLS for encryption in transit.
Which is generally safer: PLAIN or SCRAM?
SCRAM.
What is GSSAPI in Kafka?
The SASL mechanism Kafka uses for Kerberos authentication.
What is OAUTHBEARER in Kafka?
A SASL authentication mechanism based on bearer tokens.
In Kafka, is OAUTHBEARER used on the authentication or authorization side?
Authentication.