support confluent's data contracts - ruleSet and metadata fields in subject #4973
Replies: 1 comment
-
We do always want to make sure that our ccompat API is as compliant with the latest features of Confluent's schema registry as possible. However, we have not yet had the opportunity to scope out the data contract functionality they added somewhat recently. We do have a GH issue tracking it though, if you want to watch it: Who actually does the validation? Is it the SerDes or something else? It's worth noting that field level validation and encryption is something that's being worked on within the Strimzi / AMQ Streams communities as well I believe. There is a proxy based solution ( https://kroxylicious.io/ ) that I'm aware of that might be of interest. I wonder if @tombentley would have any thoughts in this area... |
Beta Was this translation helpful? Give feedback.
-
Hi team!
Recently Confluent added data-contracts feature to their schema-registry.
There are 2 new fields in
subject
entity:ruleSet
andmetadata
. See more details in links below:https://docs.confluent.io/platform/current/schema-registry/develop/api.html#post--subjects-(string-%20subject)
https://docs.confluent.io/platform/7.7/schema-registry/fundamentals/data-contracts.html
ruleSet
is really interesting as you can specify row-level validation rules for your data. Using Confluent Java dependencies like:kafka serializer, before producing a message, uses validation rules from schema registry subject, and applies those rules in runtime. If validation passes then data is produced to the topic - if not, then data is sent for example to DLQ.
Sample schema with schema rules in confluent schema-registry looks like this:
Are there any plans to add similar support for Apicurio to make it fully compatible with new schema-registry releases?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions