SERVER-139353Backlog

Add additional safeguards on inadvertent modification of Queryable Encryption safeContent tags

Currently, doing a direct update or findAndModify to an encrypted collection's {{__safeContent__}} array when {{bypassDocumentValidation}} is {{false}} is only prevented if the operation is a replacement-type update, or a {{$set}} on the {{__safeContent__}} field itself. It does not error if you try to {{$set}} a dotted path like {{__safeContent__.0}} or if you use other modifier-style update operation like {{$push}} or {{$pop}} on it.

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

No components specified.

Labels
Tags and classification

No labels assigned.