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

createIndexes and create break with bypassQueryAnalysis: true

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0-rc1, 1.5.0
    • Affects Version/s: 1.5.0-rc0
    • Component/s: None
    • None
    • Not Needed

      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.

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

              Created:
              Updated:
              Resolved: