Literal and field name redaction for DocumentSource (SERVER-73326)

[SERVER-73327] $lookup redaction Created: 26/Jan/23  Updated: 29/Mar/23  Resolved: 29/Mar/23

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

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

Issue Links:
Duplicate
duplicates SERVER-75139 Add shapification for DocumentSources... Closed
Assigned Teams:
Query Optimization
Sprint: QO 2023-03-20, QO 2023-04-03
Participants:

 Description   

 

{
  $lookup: {
    from: <foreign collection>,
    localField: <field from local collection's documents>,
    foreignField: <field from foreign collection's documents>,
    let: { <var_1>: <expression>, …, <var_n>: <expression> },
    pipeline: [ <pipeline to run> ],
    as: <output array field>
  }
} 

Fields "from", "localField", "foreignField", and "as" represent collection/field names. They should not be abstracted during telemetry key gen. However they should be redacted/hashed by $telemetry. "let" should be treated as a normal let expression. And "pipeline" should be serialized/redacted recursively as a regular document source pipeline.


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