[COMPASS-7231] Investigate changes in SERVER-79496: Ban encryption options being provided in createCollection Created: 19/Sep/23 Updated: 25/Sep/23 Resolved: 25/Sep/23 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | No version |
| Type: | Investigation | Priority: | Minor - P4 |
| Reporter: | Backlog - Core Eng Program Management Team | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Documentation Changes: | Not Needed | ||||||||
| Description |
|
Original Downstream Change Summary createCollection will fail with an IllegalOperation error if the user attempts to pass in WiredTiger encryption options. For example {{db.createCollection("test", {storageEngine: {wiredTiger: {configString: "encryption=(keyid=key)"}} })}} will fail. The encryption option is currently only returned in collStats as part of the WT creationString field. If using that field for creating a collection, the encryption option must be removed. Description of Linked Ticket In These options are ephemeral in nature and should never be inserted into the durable catalog. We should consider banning them from the set of valid user options. |
| Comments |
| Comment by Rhys Howell [ 25/Sep/23 ] |
|
No devtools changes needed, these options aren't something we would be passing ourselves, and we will already surface the new server error returned. |
| Comment by PM Bot [ 19/Sep/23 ] |
|
Fix Version updated for upstream |