Make `autoEncrypter` more easily accessible to internal consumers

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • next
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the AutoEncrypter is stored in the topology options, which is cloned to individual Server instances. This makes access somewhat cumbersome in the wire protocol methods, leading to checks like:

      server && server.s && server.s.options && server.s.options.autoEncrypter;
      

      We can follow patterns we use for e.g. Collection.readConcern to make this more readable.

              Assignee:
              Rosemary Yin (Inactive)
              Reporter:
              Matt Broadstone
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: