Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49114

Replace getSSLManager() with getSSLManagerCoordinator()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Security 2020-07-13, Security 2020-07-27

      • Change TransportLayer/ASIO to store std::shared_ptr<SSLManagerInterface>
      • Change TransportLayer/ASIO to call getSSLManagerCoordinator() once per connection
      • ServerStatus and InitializeGlobalServerState are permitted to call getSSLManagerCoordinator()
      • Add a new class called getSSLManagerCoordinator in ssl_manager.h/cpp
        class SSLManagerCoordinator {
            static SSLManagerCoordinator* get()
            std::shared_ptr<SSLManagerInterface> getSSLManager();
            
            void rotate();
        
            Mutex _lock;
            synchronized_value<std::shared_ptr<SSLManagerInterface>> _manager;
        		};
        
      • Note: In this change, rotate() is a noop and will be implemented in a later change
      • Implement constructor and destructor of first SSLManagerInterace by calling SLManagerInterface::create using GlobalInitializerRegisterer
      • Remove global initializers for existing SSLManagers in ssl_manager_<windows/apple/openssl>.cpp
      • Remove theSSLManager

            Assignee:
            gabriel.marks@mongodb.com Gabriel Marks
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: