Migrate to a topic view
A topic view replaces SQL topics and CEL topics. Mind these differences:- Topic views support only the documented SQL subset. Gateway rejects anything else when you create the view.
- To read Avro, Protobuf or JSON-Schema records, the view uses a schema registry external connection instead of an inline
schemaRegistryConfig, and has to useSELECT *. - The view requires an
onErrorsetting, for records it can’t decode. - Consumers have to include the view’s name in their
group.id, delimited by::, for examplelegal_user::analytics.
Delete a removed Interceptor
If you still have an Interceptor that uses a removed plugin, Gateway skips it on startup. An Interceptor can have several scopes (virtual cluster, group and username), and each delete removes one scope, so delete every scope. First, list the Interceptors that use a removed plugin, with their scopes, by filtering on plugin class. For example, for the SQL topic and CEL topic plugins:- curl
- Conduktor CLI
{"vCluster": null, "group": null, "username": null}. Without a body, Gateway deletes the passthrough scope.404 with Interceptor <name> not found with scope {...}, naming the scope it looked for.
In Console, the Gateway Interceptors list only shows and deletes Interceptors scoped to the virtual cluster configured for that Gateway, with no group or username. Use the API or the CLI for the others.
JSONata transformer - produce (ProduceJsonataPlugin)
Removed in Gateway v3.19.0. Deprecated since Gateway v3.16.0.
io.conduktor.gateway.interceptor.ProduceJsonataPlugin
Transformed message data on produce using JSONata expressions. Applied JSONata transformations to records before they were written to Kafka.
Configuration
Configuration properties
JSONata transformer - fetch (FetchJsonataPlugin)
Removed in Gateway v3.19.0. Deprecated since Gateway v3.16.0.
io.conduktor.gateway.interceptor.FetchJsonataPlugin
Transformed message data on fetch/consume using JSONata expressions. Applied JSONata transformations to records as consumers read them through Gateway.
Configuration
Configuration properties
Encrypt on consume (FetchEncryptPlugin)
Removed in Gateway v3.19.0. Deprecated since Gateway v3.16.0.
io.conduktor.gateway.interceptor.FetchEncryptPlugin
Encrypted specific record fields or the entire payload during fetch/consume operations. Data stored in Kafka remained unencrypted — encryption was applied only when consumers read through Gateway.
The configuration properties were the same as the list-based EncryptPlugin.
Recommended alternative: Use data masking policies or EncryptPlugin (on produce) instead.
List-based encryption on consume
- curl
- Conduktor CLI
List-based encryption on consume with secured template
- curl
- Conduktor CLI
Encrypt on consume - schema based (FetchEncryptSchemaBasedPlugin)
Removed in Gateway v3.19.0. Deprecated since Gateway v3.16.0.
io.conduktor.gateway.interceptor.FetchEncryptSchemaBasedPlugin
Encrypted fields tagged in a specified schema during fetch/consume operations. Data stored in Kafka remained unencrypted — encryption was applied only when consumers read through Gateway.
The configuration properties were the same as the schema-based EncryptSchemaBasedPlugin.
Recommended alternative: Use data masking policies or EncryptSchemaBasedPlugin (on produce) instead.
Schema-based encryption on consume
- curl
- Conduktor CLI
Large batch handling (LargeBatchHandlingPlugin)
Removed in Gateway v3.21.0. Deprecated since Gateway v3.18.0.
io.conduktor.gateway.interceptor.LargeBatchHandlingPlugin
Saved each record batch above the minimumSizeInBytes threshold as a single file in cloud storage (Amazon S3 or Azure Blob Storage), replacing the batch payload in Kafka with a reference and reassembling it transparently on consume.
Recommended alternative: Use large message handling instead — it offloads individual messages above the size threshold.
Configuration
Each batch that’s above theminimumSizeInBytes threshold will be saved in one file on Amazon S3, with credentials defaulting to managed identity:
- curl
- Conduktor CLI
basic credentials:
- curl
- Conduktor CLI
session credentials:
- curl
- Conduktor CLI
SQL topics (VirtualSqlTopicPlugin)
Removed in Gateway v3.23.0. Deprecated since Gateway v3.19.0.
io.conduktor.gateway.interceptor.VirtualSqlTopicPlugin
Recommended alternative: a topic view. See migrate to a topic view.
Exposed a virtual topic that filtered and projected the records of an existing topic, using a SQL statement such as:
FetchResponse only, so the virtual topic was read-only:
SELECT [list of fields] FROM [topic name] WHERE [field filter criteria]
Topic names with dash
- characters have to be double quoted, as the dash is not a valid character for a SQL name. For example, if you have a topic our-orders, use SELECT * FROM "our-orders" WHERE ...- With filter records based on more than one condition, only
ANDoperator is supported - Supported predicates:
=,>,>=,<,<=,<>andREGEXP(RegExp MySQL Operator) - Case expression is supported
- Filtered by:
- Record key (It supports SR):
- Record key as string: -
.. WHERE record.key = 'some thing' - Record key as schema:
.. WHERE record.key.someValue.someChildValue = 'some thing'
- Record key as string: -
- Record value (It supports SR):
.. WHERE $.someValue.someChildValue = 'some thing' - Partition:
.. WHERE record.partition = 1 - Timestamp:
.. WHERE record.timestamp = 98717823712 - Header:
.. WHERE record.header.someHeaderKey = 'some thing' - Offset:
.. WHERE record.offset = 1
- Record key (It supports SR):
Schemas and projections
If your data uses a schema, then it’s not possible to make use of the projection feature here because the resulting data will no longer match the original schema. For plain JSON topics, you can use theSELECT clause to alter the shape of the data returned; however, for schema’d data (Avro and Protobuf) you must not use a projection, i.e. the select should be in the form:
SELECT * FROM ...
Filtering with the where clause is still supported.
Configuration
Example
Schema registry with secured template
- curl
- Conduktor CLI
Schema registry configuration
SQL topics and CEL topics took thisschemaRegistryConfig object.
Schema-encoded records whose schema ID is stored in a record header, the format introduced in Confluent Platform 8.2, require Gateway 3.21.0 or later.
If you don’t supply a
basicCredentials section for the AWS Glue schema registry, the client will attempt to find the connection information it needs from the environment (see AWS docs for details ) and the credentials required can be passed this way to Gateway as part of its core configuration.
Migrate to a topic view
Create a topic view with the same SQL statement. The view’s name replaces thevirtualTopic setting. See migrate to a topic view for how topic views differ and how to delete the old Interceptor.
Filter topics with CEL (CelTopicPlugin)
Removed in Gateway v3.23.0. Deprecated since Gateway v3.17.0.
io.conduktor.gateway.interceptor.CelTopicPlugin
Recommended alternative: a topic view with an SQL WHERE clause. See migrate to a topic view.
Exposed a virtual topic that filtered the records of an existing topic with a CEL (Common Expression Language) expression. Expressions could filter by:
- Record key (It supports SR):
- Record key as string: -
.. record.key == 'some thing' - Record key as schema:
.. record.key.someValue.someChildValue == 'some thing'
- Record key as string: -
- Record value (It supports SR):
.. record.value.someValue.someChildValue == 'some thing' - Partition:
.. record.partition == 1 - Timestamp:
.. record.timestamp == 98717823712 - Header:
.. record.header.someHeaderKey == 'some thing' - Offset:
.. record.offset == 1
Configuration
Example
Schema registry with secured template
- curl
- Conduktor CLI
Migrate to a topic view
Create a topic view with an SQLWHERE clause that matches the CEL expression. For example, record.value.age > 18 becomes SELECT * FROM users WHERE age > 18. The view’s name replaces the virtualTopic setting. See migrate to a topic view for how topic views differ and how to delete the old Interceptor.