Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62819

Incrementing invalid credentials and link connect/disconnect metrics against Kafka link

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown
    • Analytics Sprint 46

    Description

      Current Scenario :

      • Currently if a user is using incorrect_credentials/API_keys_info while creating the Kafka Confluent/MSK link or while editing the link. We get "Unable to reach kafka cluster. Reason: 'org.apache.kafka.common.errors.SaslAuthenticationException: Authentication failed" message.
      • And this is not incrementing the following metrics : `cbas_link_invalid_credentials_total`, `cbas_link_connect_failed_total` for create/connect link.
      • Issue : The Invalid credentials and Link connect Alert won't get generated for Kafka Confluent/MSK link if these metrics are not incrementing. 

      Expectation

      Following Metrics `cbas_link_invalid_credentials_total`, `cbas_link_connect_failed_total` should get incremented for Kafka Confluent/MSK as well in the events: where wrong credentials/certificates/API keys are used while creating  or updating link.

      So that the Invalid credentials and Link connect Alert can be generated against Kafka Confluent/MSK links as well.

      More Details :

      For instance :

      • Tried creating the Kafka Confluent link and intentionally used the wrong API secret and got this error "Unable to reach kafka cluster. Reason: 'org.apache.kafka.common.errors.SaslAuthenticationException: Authentication failed". Metric cbas_link_invalid_credentials_total was not increased. Screenshots below
      • Then I connected successfully to Kafka Confluent link by using correct API key details  
      • Then I disconnected the link and tried updating the link with wrong API Key and I again got the same error "Unable to reach kafka cluster. Reason: 'org.apache.kafka.common.errors.SaslAuthenticationException: Authentication failed" as shown below and metric cbas_link_invalid_credentials_total and cbas_link_connect_failed_total didn't get updated

       

       

      Attachments

        1. image-2024-07-19-12-23-47-469.png
          296 kB
          Anusha Mathur
        2. image-2024-07-19-12-36-44-243.png
          117 kB
          Anusha Mathur
        3. image-2024-07-19-12-37-40-361.png
          303 kB
          Anusha Mathur
        4. image-2024-07-19-12-40-24-010.png
          292 kB
          Anusha Mathur
        5. image-2024-07-19-12-42-07-058.png
          292 kB
          Anusha Mathur
        6. Screenshot 2024-08-01 at 1.44.00 AM.png
          508 kB
          Anusha Mathur
        7. Screenshot 2024-08-01 at 1.48.12 AM.png
          425 kB
          Anusha Mathur
        For Gerrit Dashboard: MB-62819
        # Subject Branch Project Status CR V

        Activity

          People

            sujay.gad Sujay Gad
            anusha.mathur Anusha Mathur
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty