Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1203

Allow FLE against non-enterprise servers with bypassQueryAnalysis

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.1
    • Affects Version/s: None
    • Component/s: Field Level Encryption
    • None
    • Needed
    • Hide

      The second argument of the Mongo() constructor now accepts bypassQueryAnalysis and encryptedFieldsMap options, matching the Node.js driver.

      Show
      The second argument of the Mongo() constructor now accepts bypassQueryAnalysis and encryptedFieldsMap options, matching the Node.js driver.

      Ensure that setting bypassQueryAnalysis: true allows using FLE 2 against non-enterprise servers, as bypassAutoEncryption: true currently does.

      https://github.com/mongodb-js/devtools-connect/blob/0435d256ddf3f35e514ca0302ac46b32a2b375bb/src/connect.ts#L198

      https://github.com/mongodb-js/mongosh/blob/f96c8ab927ea4351d40d9781241097e3624006db/packages/shell-api/src/helpers.ts#L664 (also add encryptedFieldsMap here)

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: