[SERVER-66508] Make explain handling consistent between csfle and mongocryptd Created: 16/May/22 Updated: 29/Oct/23 Resolved: 21/Jun/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.1, 6.1.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Erwin Pe |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | csfle | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v6.0
|
||||||||||||||||||||
| Sprint: | Security 2022-05-30, Security 2022-06-13, Security 2022-06-27 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
Background & Motivation The current expectations of the "explain" command differ between csfle and mongocryptd. mongocryptd expects "encryptionInformation" as a sibling of "explain":
csfle expects "encryptionInformation" nested in "explain":
mongocryptd and csfle return "encryptionInformation" nested in "explain". Neither csfle nor mongocryptd return "$db" in the reply. csfle requires a "$db" field be nested in the "explain" document matching the top-level "$db". mongod and mongos expect "encryptionInformation" nested in "explain". This is not urgent. libmongocrypt works around this in Proposed Scope
|
| Comments |
| Comment by Githook User [ 26/Jul/22 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: (cherry picked from commit 63797e16f28512b49f9fc593c3579220ea8c09f5) |
| Comment by Githook User [ 21/Jun/22 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: |