NODE-7986Backlog

Auto-encryption internal client keeps command listeners after the application removes them

h3. Current behavior Encrypter.getInternalClient copies listeners onto the internal key-vault client, then listens for newListener and forwards every later subscription. There is no removeListener forwarder, and close() does not remove the newListener hook. After the application client removes a commandStarted listener, the same function still runs for key-vault commands and remains reachable from the internal client. The forwarder itself stays on the application client after Encrypter.close().

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Client Side Encryption
Labels
Tags and classification
external-userneeds-investigation