[SERVER-71425] Disallow analyzing a shard key with encrypted fields Created: 16/Nov/22 Updated: 01/Mar/23 Resolved: 01/Mar/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Cheahuychou Mao | Assignee: | Cheahuychou Mao |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Sharding NYC
|
||||||||
| Sprint: | Sharding NYC 2023-02-20, Sharding NYC 2023-03-06 | ||||||||
| Participants: | |||||||||
| Description |
|
It is illegal to shard a collection on a shard key that contains encrypted fields. So we should make the analyzeShardKey command fail if the collection has queryable encryption enabled and the given shard key contains an encrypted field. |