[SERVER-63522] Reject user DDL operations when user write blocking is enabled Created: 10/Feb/22  Updated: 29/Oct/23  Resolved: 08/Apr/22

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

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Gabriel Marks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63611 Create in-memory state holder for use... Closed
Backwards Compatibility: Fully Compatible
Sprint: Security 2022-03-21, Security 2022-04-04, Security 2022-04-18
Participants:

 Description   

When the user write blocking runtime state built by SERVER-63519 is set to block user writes, DDL operations should be rejected. One possible approach is to hook this check on AutoGetDB (similarly to checkDbVersion) when attempting to lock a db in write or intent to write mode.



 Comments   
Comment by Githook User [ 08/Apr/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-63522 Observe DDL operations for user write blocking
Branch: master
https://github.com/mongodb/mongo/commit/13e435912a9880d265ec400e921e8a3743b13c65

Comment by Githook User [ 08/Apr/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-63522 Test import collection works with user write blocking
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/deea351620c5de0a9240de78cf2b99c959ca75f4

Generated at Thu Feb 08 05:57:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.