mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-24 00:40:40 +00:00
* feat: add SASL and TLS config * feat: add SASL/PLAIN and TLS config for Kafka client * chore: use `ring` * feat: support SASL SCRAM-SHA-256 and SCRAM-SHA-512 * fix: correct unit test * test: add integration test * chore: apply suggestions from CR * refactor: introduce `KafkaConnectionConfig` * chore: refine toml examples * docs: add missing fields * chore: refine examples * feat: allow no server ca cert * chore: refine examples * chore: fix clippy * feat: load system ca certs * chore: fmt toml * chore: unpin version * Update src/common/wal/src/error.rs Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com> --------- Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com>
29 lines
937 B
YAML
29 lines
937 B
YAML
version: '3.8'
|
|
services:
|
|
zookeeper:
|
|
image: bitnami/zookeeper:3.7
|
|
ports:
|
|
- '2181:2181'
|
|
environment:
|
|
- ALLOW_ANONYMOUS_LOGIN=yes
|
|
kafka:
|
|
image: bitnami/kafka:3.6.0
|
|
container_name: kafka
|
|
ports:
|
|
- 9092:9092
|
|
- 9093:9093
|
|
environment:
|
|
# KRaft settings
|
|
KAFKA_CFG_NODE_ID: "1"
|
|
KAFKA_CFG_PROCESS_ROLES: broker,controller
|
|
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@127.0.0.1:2181
|
|
# Listeners
|
|
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092,SECURE://localhost:9093
|
|
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
|
|
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,SECURE:SASL_PLAINTEXT
|
|
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:2181,SECURE://:9093
|
|
ALLOW_PLAINTEXT_LISTENER: "yes"
|
|
KAFKA_BROKER_ID: "1"
|
|
KAFKA_CLIENT_USERS: "user_kafka"
|
|
KAFKA_CLIENT_PASSWORDS: "secret"
|