Uploaded image for project: 'Managed Service - Streams'
  1. Managed Service - Streams
  2. MGDSTRM-10872

Make the cert management non blocking

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • MK - Sprint 234

      At the moment, the automatic certificate management is done in a blocking manner:  https://github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/blob/49ca377b2bc7368316653412721bd17e859355d5/internal/kafka/internal/services/kafkatlscertmgmt/kafka_tls_certificate_management_service.go#L80 
      which can potentially block the reconciler depending on the time the calls to backing external service takes: in Stage we've observed certificate reconciling times of up to `20s` for some Kafkas: see reconciler times 

      The certmagic library has an asynchrnous "ManageAsync" method which we could use.
      But before we consider using this, we need to make sure that we do not send the Kafkas to the data plane if the Kafka doesn't have certificate already created: 

              mchitimb-1 Manyanda Chitimbo
              mchitimb-1 Manyanda Chitimbo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: