Enable ksqlDB integration with Schema Registry¶
If you want to use schemas in your ksqlDB queries, ensure that Schema Registry is enabled in your environment. In the navigation menu, if Schema Registry is unavailable, enable it by following the steps in Quick Start for Schema Management on Confluent Cloud.
When you create a ksqlDB cluster in the ksqlDB New cluster page, if you see an alert that reads, “IMPORTANT: Confirm that the user or service account has the required privileges to access Schema Registry”, follow these steps to configure your ksqlDB cluster to access Schema Registry.
A staged rollout of RBAC for Schema Registry is in progress in early December 2022. This feature may not be immediately available to all customers.
In the Administration menu, click Accounts & access.
In the Accounts & access page, select User accounts or Service accounts.
- To enable your ksqlDB cluster to access all the resources that you have permissions to access, select User accounts and click your account name.
- To enable fine-grained control over access to specific resources, select Service accounts and click an existing service account or create a new one.
Click Access, and in the Access page, navigate to the Organization > Environment where you want to create your ksqlDB cluster.
Click Schema Registry, and in the Schema subject permissions section click Add role assignment.
In the New schema subject permissions section, click All schema subjects to grant access for your ksqlDB cluster.
Click the Account dropdown and select your account or the service account that’s associated with your ksqlDB cluster.
In the Role section, select ResourceOwner, which gives your ksqlDB full access for creating and reading schemas.