Literal and field name redaction for aggregation expressions (SERVER-73325)

[SERVER-73320] Field name redaction for $getField and $setField Created: 25/Jan/23  Updated: 29/Oct/23  Resolved: 17/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Sub-task Priority: Major - P3
Reporter: Joshua Lapacik (Inactive) Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Sprint: QO 2023-02-06, QO 2023-02-20, QO 2023-03-06, QO 2023-03-20, QO 2023-04-03
Participants:

 Description   

{
  $setField: {
    field: <String>,
    input: <Object>,
    value: <Expression>
  }
}

{
  $getField: {
    field: <String>,
    input: <Object>
  }
} 

Note that field resolves to a string, but it represents a field name or path and therefore needs to be redacted.

 

 



 Comments   
Comment by Githook User [ 17/Feb/23 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-73320 Implement literal and field name redaction for ExpressionGetField, ExpressionSetField, ExpressionObject, and ExpressionArray
Branch: master
https://github.com/mongodb/mongo/commit/5d2a08e7736eadfe1510955d4f990030c6a0196a

Generated at Thu Feb 08 06:24:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.