简体   繁体   English

如何为生产者确保 kafka 主题?

[英]How to secure kafka topic for producer?

I've multiple producers to push messages into my kafka broker.我有多个生产者将消息推送到我的 kafka 代理中。 Want to secure my topic, so that producers need password to push messages in topic or any kind of protection.想要保护我的主题,以便生产者需要密码才能在主题中推送消息或任何类型的保护。

In spring boot got to see below properties.在 spring 引导中看到以下属性。

spring.cloud.stream.kafka.binder.configuration.[security.protocol]=SSL
#spring.cloud.stream.kafka.binder.configuration.[ssl.truststore.location]=D:\\streaming\\MessagingQueingTier\\SSL\\kafka.client.truststore.jks
#spring.cloud.stream.kafka.binder.configuration.[ssl.truststore.password]=clientpass
#spring.cloud.stream.kafka.binder.configuration.[ssl.keystore.location]=D:\\streaming\\MessagingQueingTier\\SSL\\kafka.client.keystore.jks
#spring.cloud.stream.kafka.binder.configuration.[ssl.keystore.password]=clientpass
#spring.cloud.stream.kafka.binder.configuration.[ssl.key.password]=clientpass

Are these properties useful to fulfill my requirment?这些属性对满足我的要求有用吗? And How can I set these properties?以及如何设置这些属性? Not able to understand.无法理解。 Can anyone help or share any reference doc to do it?任何人都可以帮助或分享任何参考文档吗?

Thanks谢谢

Refer documentation of Kafka security.请参阅 Kafka 安全性文档。 There are lot of way to secure Kafka:有很多方法可以保护 Kafka:

  • SASL SASL
  • SSL SSL
  • Custom风俗

For authorization, there are different ways对于授权,有不同的方式

  • Apache Ranger Apache 游侠
  • Kafka inbuilt ACLs Kafka 内置 ACL

Refer this doc参考这个文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM