quixio/quix-streams

Use client.id to connect to Confluent Cloud Kafka

jordivicedo opened this issue · 0 comments

In the workspaces endpoint there is a new field "brokerSettings.confluentCloudSettings.clientID" that should be sent as "client.id" when we are connecting to a Confluent Cloud kafka cluster.

The field will be present only if brokerType == "ConfluentCloud". This is an example of json returned by the portal:

{
  "workspaceId": "quix-workspace-confluent",
  "name": "ConfluentCloud example",
  "status": "Ready",
  "brokerType": "ConfluentCloud",
  "broker": {
    "address": "xxxxx:9092",
    "securityMode": "SaslSsl",
    "sslPassword": "",
    "saslMechanism": "Plain",
    "username": "xxxxx",
    "password": "xxxxx",
    "hasCertificate": false
  },
  "workspaceClassId": "Standard",
  "storageClassId": "Standard",
  "createdAt": "2023-07-04T15:20:04.58Z",
  "brokerSettings": {
    "brokerType": "ConfluentCloud",
    "syncTopics": false,
    "confluentCloudSettings": {
      "apiKey": "xxxxx",
      "apiSecret": "xxxxx",
      "clusterID": "xxxxx",
      "bootstrapServer": "xxxxx:9092",
      "restEndpoint": "xxxxx",
      "clientID": "testclientid"
    }
  },
  "repositoryId": "xxxxx",
  "branch": "main",
  "environmentName": "prod",
  "version": 2,
  "branchProtected": true
}