TLS
This page helps you configure TLS settings for different providers. The steps are always the same:
- Open the configuration with
yozf configure - Edit the configuration file by adding a new cluster.
- Save the file and run start the tool
yozf -c my-cluster
WARNING
SASL_SSL security protocol is not available for windows targets. I'm facing some compilation issues.
Confluent
To connect to a confluent kafka cluster:
- Open https://confluent.cloud/environments
- Select your cluster.
- Click on Clients in the left menu.
- Click on Set up a new client
- Choose a Rust client.
- Follow the instructions to generate an API key.
- Open the configuration file:
yozf configure - Edit the configuration:
json
{
"clusters": {
"confluent": {
"url_template": "https://confluent.cloud/environments/<environment>/clusters/<cluster>/topics/{topic}/message-viewer",
"kafka": {
"bootstrap.servers": "<server>.confluent.cloud:9092",
"security.protocol": "SASL_SSL",
"sasl.mechanisms": "PLAIN",
"sasl.username": "<username>",
"sasl.password": "<password",
"session.timeout.ms": "45000"
}
}
}
}- Save the configuration and start the tool:
bash
yozf -c 'confluent' --headless --topics 'hello-world' 'from begin'Redpanda
- Open https://cloud.redpanda.com/clusters
- On the Overview page, select the Kafka API tab in the How to connect panel.
- Generate new SASL credentials.
- Edit the configuration:
json
{
"clusters": {
"redpanda": {
"url_template": "https://cloud.redpanda.com/clusters/<cluster>/topics/{topic}?p=-1&s=1&o={offset}#messages",
"kafka": {
"bootstrap.servers": "<cluster>.any.eu-central-1.mpx.prd.cloud.redpanda.com:9092",
"security.protocol": "SASL_SSL",
"sasl.mechanisms": "PLAIN",
"sasl.username": "<username>",
"sasl.mechanisms": "SCRAM-SHA-256",
"sasl.password": "<password>"
}
}
}
}Mutual TLS
For more details about Mutual TLS, refer to the documentation: Configure mTLS Authentication and RBAC for Kafka Brokers.
INFO
Please note that, according to the documentation, certificates must be in PEM format.
json
{
"clusters": {
"acme": {
"url_template": "http://akhq.acme/cluster/{topic}/data?single=true&partition={partition}&offset={offset}",
"kafka": {
"bootstrap.servers": "kafka-1.acme:9092,kafka-2.acme:9092",
"security.protocol": "SSL",
"ssl.ca.location": "/absolute-path/to/ca-certificate.pem",
"ssl.certificate.location": "/absolute-path/to/certificate.pem",
"ssl.key.location": "/absolute-path/to/client.key",
"ssl.key.password": "<key-password>",
}
}
}
}Cloud providers
Contributions are welcomed to improve this page.
| Provider | Compatible | Documentation |
|---|---|---|
| Google Cloud Platform | ? | https://cloud.google.com/managed-service-for-apache-kafka/docs/quickstart#cloud-shell |
| Amazon Web Services | ? | https://docs.aws.amazon.com/msk/latest/developerguide/produce-consume.html |
| Microsoft Azure | ? | https://learn.microsoft.com/en-us/azure/event-hubs/azure-event-hubs-apache-kafka-overview |
| DigitalOcean | ? | https://docs.digitalocean.com/products/databases/kafka/how-to/connect/ |
| OVH | ? | https://help.ovhcloud.com/csm/en-ie-public-cloud-databases-kafka-getting-started?id=kb_article_view&sysparm_article=KB0048944 |
| Aiven for Apache Kafka® | true | https://aiven.io/docs/products/kafka/howto/list-code-samples |
| Confluent Cloud | true | https://confluent.cloud/environments |
| Redpanda | true | https://cloud.redpanda.com/clusters |