[SERVER-77105] Disable AuthorizationContract in non-test mode Created: 12/May/23  Updated: 29/Oct/23  Resolved: 06/Jun/23

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

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Adrian Gonzalez Montemayor
Resolution: Fixed Votes: 0
Labels: neweng, perf-server-security
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: Security 2023-06-12
Participants:

 Description   

AuthorizationContract exists to validate, in test mode, that the API conforms to the contract specified in IDL. These checks are largely disabled in production code but we should go further and disable the accounting in AuthorizationContract also. For instance, there is no need to take the mutex in AuthorizationContract::addAccessCheck if we are never going to verify the contract.



 Comments   
Comment by Githook User [ 06/Jun/23 ]

Author:

{'name': 'Adrian Gonzalez', 'email': 'adriangonzalezmontemayor@gmail.com', 'username': 'adriangzz'}

Message: SERVER-77105 Disable AuthorizationContract in non-test mode
Branch: v7.0
https://github.com/mongodb/mongo/commit/91b837e33b466123d81c04ba9345ce1a6ad3f2c6

Comment by Githook User [ 05/Jun/23 ]

Author:

{'name': 'Adrian Gonzalez', 'email': 'adriangonzalezmontemayor@gmail.com', 'username': 'adriangzz'}

Message: SERVER-77105 Disable AuthorizationContract in non-test mode
Branch: master
https://github.com/mongodb/mongo/commit/430cd10d142de78b4b0cb32369b2deb2579c66f2

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