[SERVER-64911] Ban comparisons to encrypted fields in collection validator and partialFilterExpression Created: 24/Mar/22 Updated: 29/Oct/23 Resolved: 03/May/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc5, 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nicholas Zolnierz | Assignee: | Davis Haupt (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||||||||||
| Backport Requested: |
v6.0
|
||||||||||||||||||||||||
| Sprint: | QO 2022-05-02, QO 2022-05-16 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
The create, collMod, and createIndex commands all bypass query analysis, however they contain match expressions which may refer to encrypted fields. |
| Comments |
| Comment by Githook User [ 09/May/22 ] |
|
Author: {'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}Message: |
| Comment by Githook User [ 09/May/22 ] |
|
Author: {'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}Message: |
| Comment by Githook User [ 03/May/22 ] |
|
Author: {'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}Message: |
| Comment by Githook User [ 03/May/22 ] |
|
Author: {'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}Message: |
| Comment by Nicholas Zolnierz [ 19/Apr/22 ] |
|
After discussing with jacob.evans@mongodb.com and kevin.albertson@mongodb.com, we'll go ahead and schedule this in the next sprint or two to implement the safeguard in query analysis. The simplest "fix" is likely to ban any encrypted references in a validator/partialFilterExpression, since this doesn't require any server-side rewrites. Perhaps a follow-up ticket to actually support marking comparisons in these contexts is worth filing as well. |