Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-2379

fluentd plugin for kafka doesn't support a CA cert chain (i.e. root+intermediate)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 4.10
    • Logging
    • None
    • Important
    • Proposed
    • False
    • Hide

      None

      Show
      None

      Description of problem:
      Add fluentd plugin for kafka support for passing a CA cert chain (i.e. root+intermediate certs)

      Version-Release number of selected component (if applicable):

      4.10.22 (running CLO 5.5 and likely other version 5.x versions also affected)
      

      Additional info:

      We are seeing this message:

      2022-09-14 16:24:48 +0000 [warn]: [kafka_legacy_oasis_tls] Send exception occurred: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unspecified certificate verification error) 
      

      It apparently can't support two CA's in the ca-bundle.crt to use for verification. The issue we have is almost exactly following this: https://github.com/fluent/fluent-plugin-kafka/issues/252

      KCS (https://access.redhat.com/solutions/5676121) related to 4.6 states a workaround is possible, and, BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1904380 states that a fix was released for 4.6

      But having checked the latest code, it seems the ssl_ca_cert attribute included in the fluentd configmap doesn't support an array of certs, also checked the code and ssl_ca_cert seems to be of type string.
      Is there anything being done to address this as my customer if blocked atm and waiting on this.

      As per Jeff and I quote:
      _it looks like this patch was lost in the upstream given it was merged here https://github.com/fluent/fluent-plugin-kafka/pull/410 but I don't see it in the code. so that is a bug. the original patch looks like it accepted a single string and split the cert.
      _

            jcantril@redhat.com Jeffrey Cantrill
            rhn-support-ddelcian Daniel Del Ciancio
            Anping Li Anping Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: