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

Explore is there way refresh TLS certificate without closing listener

    XMLWordPrintable

Details

    • Epic
    • Resolution: Unresolved
    • Major
    • Morpheus
    • Morpheus
    • ns_server
    • None
    • No downtime cert refresh
    • To Do
    • 0

    Description

      Currently with each cert refresh we teardown the listeners and bring them back up again. This is the case for ns_server, and query(MB-61782). It is likely the case that this is true for all the services involved.

      We need to consider allternate ways to refresh/rotate certs without downtime.
      One of the option is put forth in MB-61782, copying snippet from bug.
      ----------------------------------------------------------------------
      Read this https://blog.diogomonica.com/2017/01/11/hitless-tls-certificate-rotation-in-go/ or any other google. I am not sure if this works. But one should explore vs interrupt of service

      Choosing the TLS config before the TLS handshake
      https://github.com/couchbase/query/blob/master/server/http/service_endpoint.go#L494-L512

      When we get certificates change recived why not we load certificate (under lock) in to HttpEndpoint (what we did below)

      https://github.com/couchbase/query/blob/master/server/http/service_endpoint.go#L224-L241

      Later use call back use that here https://github.com/couchbase/query/blob/master/server/http/service_endpoint.go#L244

      Check FTS/Index services how they do? https://github.com/couchbase/cbft/blob/master/cmd/cbft/init_grpc.go#L77

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Abhijeeth.Nuthan Abhijeeth Nuthan
            Abhijeeth.Nuthan Abhijeeth Nuthan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty