Configuring Kafka authentication
Choose how Cloudera SQL Stream Builder (SSB) authenticates to Kafka, and where to keep the credentials and certificates. The SASL mechanism and the TLS stores that you select in the Kafka data source apply to every table that uses it.
Supported methods
| Method | Protocol | Where you configure it |
|---|---|---|
| No authentication | PLAINTEXT | Protocol |
| TLS server authentication | SSL, SASL/SSL | Kafka TrustStore |
| TLS client authentication (mutual TLS) | SSL, SASL/SSL | Kafka KeyStore (Optional) |
| PLAIN | SASL/SSL, SASL/PLAINTEXT | SASL Username and SASL Password |
| SCRAM-SHA-256, SCRAM-SHA-512 | SASL/SSL, SASL/PLAINTEXT | SASL Username and SASL Password |
| OAUTHBEARER | SASL/SSL only | OAuth Token Endpoint URL, Client ID, Client Secret |
| KERBEROS | SASL/SSL, SASL/PLAINTEXT | The Cloudera Base Connector, and your keytab in Manage Keytab |
Obtain the credentials and certificates
Before you register the data source, collect the following items from your Kafka administrator or OAuth provider:
- The broker endpoints. For where the Kafka cluster can run, see Kafka clusters that you can connect to.
- For PLAIN and SCRAM, the username and password.
- For OAUTHBEARER, the token endpoint URL, the client ID, and the client secret.
- The certificate authority certificates of the brokers, as a truststore in the JKS, PKCS12, BCFKS, or PEM format.
- For mutual TLS, the client keystore and its password.
- For KERBEROS, your keytab and a connected Cloudera Base Connector.
Store files and secrets
- Upload truststore and keystore files to the project, and select them with Use Project File. For more information, see Managing project files.
- The data source stores passwords and secrets so that the editor does not display them again. When you edit a data source, turn on Modify next to a secret to replace it.
- In DDL, use
${ssb.project-file:[***PATH***]}to point a property at a project file. For more information, see Registering a Kafka data source with DDL.
