Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-435

createIndexes and create break with bypassQueryAnalysis: true

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.5.0-rc1, 1.5.0
    • 1.5.0-rc0
    • None
    • None
    • Not Needed

    Description

      Reproducible through e.g.

      import { MongoClient } from 'mongodb';
       
      const client = await MongoClient.connect('mongodb://localhost/', {
        autoEncryption: {
          bypassQueryAnalysis: true,
          kmsProviders: { local: { key: 'A'.repeat(128) } }
        }
      });
       
      client.db('test').collection('test').createIndex({ a: 1 });
      

      in the Node.js driver, but almost certainly breaking regardless of driver. The commands which result in a version check against mongocryptd are being run when bypassQueryAnalysis: true is set, but in that case no csfle library or mongocryptd is available and the drivers do not expect to enter a MONGOCRYPT_CTX_NEED_MONGO_MARKINGS state.

      Attachments

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: