[英]Configure spring kafka schema registry security
Iam using spring kafka and avro, The schema registry is secured with plain sasl protocol.我正在使用 spring kafka 和 avro,模式注册表使用普通的 sasl 协议进行保护。
I must develop a kafka consumer and producer, i don't find a way with spring kafka to configure the security properties for schema registry.我必须开发一个 kafka 消费者和生产者,我找不到使用 spring kafka 配置模式注册表的安全属性的方法。
Does spring kafka library already integrate this configuration ? spring kafka 库是否已经集成了这个配置? I need to configure kafkastore.. In a schema registry properties file?我需要配置 kafkastore .. 在模式注册表属性文件中? I didn't find any examples with spring kafka我没有找到任何关于spring kafka的例子
there is docs like this related to your question and demo examples in github .在github中有与您的问题和演示示例相关的此类文档。
note that with spring you can have common properties for kafka, just make sure to use spring kafka dependency, maybe first try to establish connection between both consumer and producer and then put sasl plain security.请注意,使用 spring 您可以拥有 kafka 的通用属性,只需确保使用 spring kafka 依赖项,也许首先尝试在消费者和生产者之间建立连接,然后将 sasl 放在普通的安全性上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.