[SERVER-75343] Fix field name redaction Created: 27/Mar/23  Updated: 29/Oct/23  Resolved: 05/Apr/23

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

Type: Improvement Priority: Minor - P4
Reporter: Charlie Swanson Assignee: Will Buerger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-75596 Stress $queryStats read path for aggr... Closed
Problem/Incident
causes SERVER-75681 Fix jstests to use redactIdentifiers ... Closed
Related
related to SERVER-75623 Consider manually splitting by '.' an... Closed
is related to SERVER-74217 Literal abstraction and field name re... Closed
is related to SERVER-75008 Rename redactFieldNameStrategy to pii... Closed
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Sprint: QO 2023-04-03, QO 2023-04-17
Participants:

 Description   

We currently have two functions FieldPath::redactedFullPath and SerializationOptions::serializeFieldName to redact the field name. The latter does not properly redact components of dotted field paths separately. We should fix and test that bug, and consider consolidating the functions so there's only one entrypoint for field name serialization.

We should also consider the role of FieldPath::fulPath (we should be able to keep one function with SerializationOptions provided rather than separate functions for redacted and non-redacted versions). Overall, we gotta clean up the api with which we're redacting field names.



 Comments   
Comment by Githook User [ 04/Apr/23 ]

Author:

{'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}

Message: SERVER-75343: Fix and centralize identifier redaction in SerializationOptions
Branch: master
https://github.com/mongodb/mongo/commit/d79d53bdb2e9ecc13b72b8ab77124f9e21b1514f

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