-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 6.0.0
-
Component/s: Queryable Encryption
-
Server Security
-
ALL
-
-
Security 2022-10-03, Security 2022-10-17
Upserting a document to a collection with Queryable Encryption excludes the encrypted field from the filter.
For example:
filter := bson.M{"_id": 1, "encryptedIndexed": "foo"} update := bson.M{"$set": bson.M{"foo": "bar"}} opts := options.Update().SetUpsert(true) _, err = encryptedColl.UpdateOne(context.Background(), filter, update, opts)
Results in an upsert of the document:
{"_id":{"$numberInt":"1"},"foo":"bar"}