Skip to content

Commit

Permalink
fix(csfle): ensure that monitoring connections are not encrypted (#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
emadum committed Mar 22, 2021
1 parent b94519b commit 86bddf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/core/sdam/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ class Monitor extends EventEmitter {

// ensure no authentication is used for monitoring
delete connectOptions.credentials;

// ensure encryption is not requested for monitoring
delete connectOptions.autoEncrypter;

this.connectOptions = Object.freeze(connectOptions);
}

Expand Down

0 comments on commit 86bddf1

Please sign in to comment.