-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Read the FAQ first: https://github.com/edenhill/librdkafka/wiki/FAQ
Description
How is application supposed to use librdkafka to handle ssl certificate rotation scenario?
How to reproduce
Below is the flow of events
- client fetches a ssl certificate and gives it to librdkafka producer
- Sends few messages
- SSL certificate initially presented expires. At this time we would like to present to server/broker the rotated certificate. How do we do that today ?
IMPORTANT: Always try to reproduce the issue on the latest released version (see https://github.com/edenhill/librdkafka/releases), if it can't be reproduced on the latest version the issue has been fixed.
Checklist
IMPORTANT: We will close issues where the checklist has not been completed.
Please provide the following information:
-
librdkafka version (release number or git tag):
1.2
-
Apache Kafka version:
2.4
-
librdkafka client configuration:
metadata.broker.list=broker1:9093, security.protocol=ssl ssl.certificate.pem=std::string, ssl.key.password=std::string, enable.ssl.certificate.verification=true, config->set_ssl_cert(RdKafka::CERT_PRIVATE_KEY, RdKafka::CERT_ENC_PKCS12, const void *buffer, size_t size, std::string &errstr), ssl_cert_verify_cb, SecurityVerifyCallback
class SecurityVerifyCallback : public RdKafka::SslCertificateVerifyCb
{
public:
bool ssl_cert_verify_cb(std::string const& brokerName, int32_t brokerId, int* error, int depth,
const char* buffer, size_t size, std::string& errstr) override;
} -
Operating system:
windows
-
Provide logs (with
debug=..
as necessary) from librdkafka -
Provide broker log excerpts
-
Critical issue