-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
3
-
Tools and Replicator
-
8
Problem Statement/Rationale
mongodump & mongorestore currently back up & restore collections with the encryptedFields property. This constitutes incomplete QE support that we're not ready to offer.
We should instead:
- Make mongodump fail on backing up QE collections.
- Make mongorestore warn when restoring QE collections that the QE portion is not restored.
Steps to Reproduce
In mongosh on the source:
use test db.createCollection("qe", {encryptedFields: { fields: [ {path: "foo", bsonType: "string", queries: { queryType: "equality" }, keyId: UUID() } ] } })
Then, at the command line:
mongodump --authenticationDatabase=admin --archive=qe.bson -d test -c qe $connStr1 mongorestore --authenticationDatabase=admin --archive=qe.bson --drop $connStr2
Finally, in mongosh on the destination:
use test db.getCollectionInfos()
Expected Results
Dump should fail the archive creation. Restore should warn.
Actual Results
No error or warning happens in that process, so the restore leaves incomplete QE.