[SERVER-39171] Implement 'encrypt.bsonType' keyword for document validation Created: 24/Jan/19  Updated: 29/Oct/23  Resolved: 12/Mar/19

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

Type: Task Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Pawel Terlecki
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-38900 Implement JSON Schema parsing for "en... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Query 2019-02-25, Query 2019-03-11, Query 2019-03-25
Participants:
Linked BF Score: 83

 Description   

This keyword should create a new MatchExpression which matches against an Encrypt BinData (sub-type 6) AND contains a payload of the specified type.



 Comments   
Comment by Githook User [ 12/Mar/19 ]

Author:

{'name': 'Pawel Terlecki', 'email': 'pawel.terlecki@mongodb.com', 'username': 'pterlecki'}

Message: SERVER-39171 Update query_analysis to use FleBlobSubtype
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/5343882ca08c28fb5309223151e58210209fa1f5

Comment by Githook User [ 12/Mar/19 ]

Author:

{'name': 'Pawel Terlecki', 'username': 'pterlecki', 'email': 'pawel.terlecki@mongodb.com'}

Message: SERVER-39171 Implement encrypt.bsonType validation

A new MatchExpression was added in JSONSchemaParser.
FleBlob is currently used only here. We may decide
to share it in the future as necessary.
Branch: master
https://github.com/mongodb/mongo/commit/704046922042664717cd60b615052d11acc0db77

Comment by Githook User [ 12/Mar/19 ]

Author:

{'name': 'Pawel Terlecki', 'email': 'pawel.terlecki@mongodb.com', 'username': 'pterlecki'}

Message: Revert "SERVER-39171 Fix fle_match_expression"

This reverts commit a116a4051a972dbbd654654442e724d07fca2857.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/740241c40c384a40377c3f1c8e1b407b4e2ae7b5

Comment by Githook User [ 12/Mar/19 ]

Author:

{'name': 'Pawel Terlecki', 'username': 'pterlecki', 'email': 'pawel.terlecki@mongodb.com'}

Message: SERVER-39171 Fix fle_match_expression
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/a116a4051a972dbbd654654442e724d07fca2857

Comment by David Storch [ 12/Mar/19 ]

pawel.terlecki, the changes merged for this ticket broke compile. I've reverted the two commits and I'm moving this ticket back to the "Open" state.

Comment by Githook User [ 12/Mar/19 ]

Author:

{'name': 'David Storch', 'email': 'david.storch@10gen.com', 'username': 'dstorch'}

Message: Revert "SERVER-39171 Implement encrypt.bsonType validation"

This reverts commit 3316e2858a761897b7263a9aa1185c2a0f53c9c4.
Branch: master
https://github.com/mongodb/mongo/commit/b7007e36f6a080cb1fadeef65e768f79e091b239

Comment by Githook User [ 12/Mar/19 ]

Author:

{'name': 'David Storch', 'email': 'david.storch@10gen.com', 'username': 'dstorch'}

Message: Revert "SERVER-39171 Update query_analysis to use FleBlobSubtype"

This reverts commit 5fe36f5f1987ff88a2ce9a354c3b00bfd4080eb3.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/498c1bb661dc8873ef926f7bfc5b8cd859de988b

Comment by Githook User [ 12/Mar/19 ]

Author:

{'name': 'Pawel Terlecki', 'username': 'pterlecki', 'email': 'pawel.terlecki@mongodb.com'}

Message: SERVER-39171 Update query_analysis to use FleBlobSubtype
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/5fe36f5f1987ff88a2ce9a354c3b00bfd4080eb3

Comment by Githook User [ 12/Mar/19 ]

Author:

{'name': 'Pawel Terlecki', 'email': 'pawel.terlecki@mongodb.com', 'username': 'pterlecki'}

Message: SERVER-39171 Implement encrypt.bsonType validation

A new MatchExpression was added in JSONSchemaParser.
FleBlob is currently used only here. We may decide
to share it in the future as necessary.
Branch: master
https://github.com/mongodb/mongo/commit/3316e2858a761897b7263a9aa1185c2a0f53c9c4

Comment by Nicholas Zolnierz [ 20/Feb/19 ]

pawel.terlecki note that per SERVER-39492, bsonType is allowed to be an array of aliases where a document/field matches if the embedded encrypt type matches one of the aliases.

Generated at Thu Feb 08 04:51:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.