Skip to content

how to handle ssl certificate rotation scenario from client #2868

@adinigam

Description

@adinigam

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

  1. client fetches a ssl certificate and gives it to librdkafka producer
  2. Sends few messages
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions