[SERVER-74275] Write a test for new local auth bypass behaviour for catalog shard Created: 22/Feb/23  Updated: 29/Oct/23  Resolved: 24/Mar/23

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

Type: Task Priority: Major - P3
Reporter: Kshitij Gupta Assignee: Wenqin Ye
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Sharding NYC
Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2023-04-03
Participants:

 Description   

There are existing tests that do this:

  • Create a user on the config server (this creates a cluster-wide user)
  • Create a user on the shard server (this creates a shard-specific user)
    the localhost exception is valid for both per cluster and per shard.

if I combine these two roles in a catalog shard, then a user that is created is by default a cluster wide user, so the test should just make sure that we are explicitly testing for this behaviour i,e we cannot create two users on the catalog shard. Because after creating the first user, localhost exception is no longer valid.



 Comments   
Comment by Githook User [ 23/Mar/23 ]

Author:

{'name': 'wenqinYe', 'email': 'wenqin908@gmail.com', 'username': 'wenqinYe'}

Message: SERVER-74275: Write a test for new local auth bypass behaviour for catalog shard
Branch: master
https://github.com/mongodb/mongo/commit/f357a6d6e97a5a4fadebefd91f46eec5b8f39994

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