Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4124

AutoEncryptionOptions are mutated when connecting

      import { MongoClient } from 'mongodb';
      
      const autoEncryption = {
        keyVaultNamespace: 'encryption.__keyVault',
        kmsProviders: { local: { key: 'A'.repeat(128) } }
      };
      const client = await MongoClient.connect(process.env.MONGODB_URI, {
        autoEncryption
      });
      console.log(autoEncryption.metadataClient); // <-- input options are being mutated
      await client.close();
      

      Not sure if this is a bug or not, but I thought I’d at least open a ticket.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: