[SERVER-10640] Auth passthrough system should add admin user to non replica set shards when setting up a sharding test Created: 28/Aug/13  Updated: 11/Jul/16  Resolved: 13/Mar/14

Status: Closed
Project: Core Server
Component/s: Security, Sharding, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.6.0-rc2

Type: Improvement Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-10639 trace_missing_docs_tests.js fails on ... Closed
Participants:

 Description   

Currently when a ShardingTest is setup under auth passthrough, if the shard is a replica set an admin user for use by the auth passthrough system gets added to the shard primary. If the shard is a standalone or master/slave, however, the admin user doesn't get added. This means that if the test tries to make a direct connection to the shard and do anything, it will get "unauthorized" errors as the auth system was unable to authenticate the connection since no admin user exists.



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

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-10640 re-enable trace_missing_docs_tests.js in auth passthrough
Branch: v2.6
https://github.com/mongodb/mongo/commit/a4ad235adc26559819be5e8098d8867003930dc4

Comment by Githook User [ 13/Mar/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-10640 re-enable trace_missing_docs_tests.js in auth passthrough
Branch: master
https://github.com/mongodb/mongo/commit/31332f83af8f33d21f34b0972ca0438e5a4db94c

Comment by Spencer Brody (Inactive) [ 13/Mar/14 ]

this issue was eliminated as part of the work done to fix SERVER-10848 - we no longer add users to the system at all for auth passthrough tests, we auth as the internal user instead.

All that remains to close out this ticket is to re-enable sharding/trace_missing_docs_test.js

Comment by Spencer Brody (Inactive) [ 29/Aug/13 ]

Remember to re-enable sharding/trace_missing_docs_test.js in auth passthrough once this is fixed.

Comment by auto [ 29/Aug/13 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-10640 SERVER-10639 Skip sharding/trace_missing_docs_test.js in auth passthrough
Branch: master
https://github.com/mongodb/mongo/commit/d328dd5227fd0480ff55a5d3b85adcd3e287d1da

Generated at Thu Feb 08 03:23:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.