Add SCRAM-SHA-512 authentication to Kafka cluster configuration in freeleaps-data-platform manifests.

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-09-02 11:47:58 +08:00
parent d90e0f2692
commit aa46147e33
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnect
metadata:
name: freeleaps-prod-mongo-cds
namespace: freeleaps-data-platform
annotations:
strimzi.io/use-connector-resources: "true"
spec:
version: 4.0.0
bootstrapServers: freeleaps-kafka-cluster-kafka-bootstrap.freeleaps-data-platform.svc.freeleaps.cluster:9093
config:
config.storage.topic: freeleaps-prod-mongo-cds-configs
config.storage.replication.factor: -1
group.id: freeleaps-prod-mongo-cds
offset.storage.topic: freeleaps-prod-mongo-cds-offsets
offset.storage.replication.factor: -1
status.storage.topic: freeleaps-prod-mongo-cds-status
status.storage.replication.factor: -1
image: freeleaps/kafka-connectors:mongo-connector
replicas: 1
authentication:
type: scram-sha-512
username: freeleaps-user
passwordSecret:
secretName: freeleaps-user
password: password
tls:
trustedCertificates:
- secretName: freeleaps-kafka-cluster-cluster-ca-cert
pattern: "*.crt"
---
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnector
metadata:
name: freeleaps-prod-mongo-cds
namespace: freeleaps-data-platform
labels:
strimzi.io/cluster: freeleaps-prod-mongo-cds
spec:
class: com.mongodb.kafka.connect.MongoSourceConnector
config:
connection.uri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority
database: freeleaps2
pipeline: '[{"$match": {"operationType": {"$in": ["insert", "update", "delete", "replace"]}}}]'
startup.mode: copy_existing
startup.mode.copy.existing.pipeline: "[]"
topic.prefix: raw-cds-events
tasksMax: 1

View File

@ -63,6 +63,8 @@ spec:
port: 9093
type: internal
tls: true
authentication:
type: scram-sha-512
config:
offsets.topic.replication.factor: 1
transaction.state.log.replication.factor: 1