SslConfigs.SSL_CLIENT_AUTH_CONFIG 在 3.4.0 版本的 kafka-client 中已移除。

huangapple go评论48阅读模式
英文:

SslConfigs.SSL_CLIENT_AUTH_CONFIG is removed in 3.4.0 kafka-client version

问题

在 3.4.0 版本的 kafka-client 中移除了 SslConfigs.SSL_CLIENT_AUTH_CONFIG。有什么替代方案提供?

英文:

SslConfigs.SSL_CLIENT_AUTH_CONFIG is removed in 3.4.0 kafka-client version .WHat is the alternative provided for that?

答案1

得分: 0

这个设置已经在 Kafka 3.0.0 中移除,该版本于2021年发布。它自 Kafka 1.0.0(2017年发布)起就已经被弃用。

由于这是一个仅用于 Broker 的配置,它不是公共 API 的一部分,因此没有公共常量与之对应。

如果你的代码依赖于它,最简单的方法可能是直接硬编码设置名称 ssl.client.auth。该值现在位于 BrokerSecurityConfigs 中,这不是公共 API 的一部分,因此不应该在你的应用程序中依赖它。

英文:

This setting has been removed in Kafka 3.0.0 which released in 2021. It was deprecated since Kafka 1.0.0 (released in 2017!).

Since it's a broker-only configuration, it's not part of the public API so there's no public constants for it.

If you have code that depends on it, the simplest is probably to just hard code the setting name, ssl.client.auth. That value is now in BrokerSecurityConfigs which is not part of the public API so you should not depend on it in your applications.

huangapple
  • 本文由 发表于 2023年7月24日 16:27:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76752646.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定