Setup Guide
This guide walks you through setting up a Confluent Schema Registry instance and obtaining the credentials required to use the connector.
Prerequisites
- A Confluent Cloud account. If you do not have one, sign up for a free trial at Confluent.
Step 1: Create an environment and Kafka cluster
- Log in to the Confluent Cloud Console.
- Create a new Environment (or use the default).
- Inside the environment, create a Kafka Cluster (the Basic tier is sufficient for development).
- Wait for the cluster to be provisioned.
Step 2: Enable schema registry
- In your environment, navigate to Schema Registry in the left sidebar.
- Select a cloud provider and region for the Schema Registry instance.
- Click Enable Schema Registry.
- Once enabled, copy the Schema Registry endpoint URL; this is your
baseUrl(e.g.,https://psrc-xxxxx.us-east-2.aws.confluent.cloud).
Schema Registry is enabled at the environment level. All clusters within the environment share the same Schema Registry instance.
Step 3: Create schema registry API key and secret
- In the Schema Registry section, click API credentials or navigate to API Keys.
- Click Add Key and select Schema Registry as the resource scope.
- Copy the generated API Key and API Secret.
Store the API Key and API Secret securely. Use Ballerina's configurable feature and a Config.toml file to supply them at runtime.
Step 4: Configure SSL truststore (if required)
If your Schema Registry instance requires SSL/TLS with a custom certificate authority:
-
Download the CA certificate from Confluent Cloud or your self-managed Schema Registry.
-
Import it into a Java truststore:
keytool -import -trustcacerts -alias ConfluentCA -file ca-cert.pem -keystore truststore.jks -storepass <password> -
Note the truststore file path and password for use in the connector configuration.
For Confluent Cloud with standard certificates, a custom truststore is typically not required.