Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6342

KeyVault error with embedded shell

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.34.2
    • Affects Version/s: 1.34.1
    • Component/s: Embedded Shell
    • None
    • Environment:
      macOs 12.6.1
    • 2
    • Not Needed

      Problem Statement/Rationale

      Can not use embedded shell to get the keyVault object for the current encrypted database connection 

      Please be sure to attach relevant logs with any sensitive data redacted.

      Steps to Reproduce

      Connection with In Use encryption using a local KeyStore

      Compass 1.34.1

      keyVault = db.getMongo().getKeyVault(); --> Error

      Expected Results

      Success when running keyVault = db.getMongo().getKeyVault(); 

      Actual Results

      [Error:|#]

      Cannot find module 'mongodb'

      Require stack: - /Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/mongodb-client-encryption/lib/index.js - /Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anas.dhouib@mongodb.com Anas Dhouib
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: