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

Add override server parameter for X.509 subject name matching and extension value

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Security 2023-04-03, Security 2023-04-17

      SERVER-74989 introduces a new configuration option that can be used for X.509 subject name DN matching. However, if customers decide to rotate to new certificates that have different values, then the old configuration option value will cause intracluster auth issues with the new certificates.

      In order to provide a mechanism of resolving this via rolling restarts, this ticket will introduce a new server parameter that can be used to override the configuration option. When the override is set, both the old and new subject name criteria will be accepted, allowing for certificate rotation via a rolling restart. The full sequence of steps is described below:

      1. Start with some custom attributes/values for the subject name in the config option
      2. Change config to a new set of attributes and values and the override server parameter to the old set of attributes and values.
      3. Rolling restart. The servers are now able to accept nodes as peers matching either set of subject name attribute+value pairs.
      4. Change certificates, which should match the new criteria specified in the config.
      5. Rolling restart. Once complete, all servers will present certificates matching the new criteria in the config.
      6. Remove override - all server nodes now have the new certificate and don't need to accept certificates matching the initial criteria.

      This ticket will also add a test that mocks the above procedure to validate its usability.

            Assignee:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Reporter:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: