[SERVER-8382] Can't use benchRun() with auth Created: 29/Jan/13  Updated: 30/Oct/15  Resolved: 15/Feb/13

Status: Closed
Project: Core Server
Component/s: Security, Testing Infrastructure
Affects Version/s: 2.2.2, 2.2.3, 2.3.2
Fix Version/s: 2.4.0-rc1

Type: Bug Priority: Critical - P2
Reporter: Asya Kamsky Assignee: Asya Kamsky
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu 10.04, os X


Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

benchRun() fails in various non-obvious ways due to not working with auth:

Mon Jan 28 11:46:00 [initandlisten] connection accepted from 127.0.0.1:64087 #31 (2 connections now open)
Mon Jan 28 11:46:00 [conn31] authenticate db: admin { authenticate: 1, nonce: "731e9f93c6ea1cb2", user: "admin", key: "9283a73baf26c9067989257c3bf9d51b" }
Mon Jan 28 11:46:00 [conn31] auth: key mismatch admin, ns:admin
Mon Jan 28 11:46:00 [conn31] end connection 127.0.0.1:64087 (1 connection now open)

above error with auth occurs for 2.2.3-rc for both admin and regular user.



 Comments   
Comment by Asya Kamsky [ 15/Feb/13 ]

The doc page for benchRun should add limitation:

When benchRun is run with --auth enabled, username and password passed to benchRun need to have access to admin database.

Comment by auto [ 11/Feb/13 ]

Author:

{u'date': u'2013-02-10T06:11:53Z', u'name': u'Asya Kamsky', u'email': u'asya@10gen.com'}

Message: SERVER-8382

Updating format as per codereview and updating uasserted code

Signed-off-by: Ian Whalen <ian.whalen@gmail.com>
Branch: master
https://github.com/mongodb/mongo/commit/79cdf8036d69042a8bb23e6ce7cd028780434d8a

Comment by auto [ 11/Feb/13 ]

Author:

{u'date': u'2013-02-09T23:00:38Z', u'name': u'Asya Kamsky', u'email': u'asya@10gen.com'}

Message: SERVER-8382

Added authenticating to admin for benchRun thread.
Fixed formating of error messages on failure.

Signed-off-by: Ian Whalen <ian.whalen@gmail.com>
Branch: master
https://github.com/mongodb/mongo/commit/8a7974b8048b4617503df4fce4e14489e1c06bc6

Comment by auto [ 11/Feb/13 ]

Author:

{u'date': u'2013-02-07T21:19:06Z', u'name': u'Asya Kamsky', u'email': u'asya@10gen.com'}

Message: SERVER-8382

Added authentication to admin for serverStats access when credentials
are passed in.

Signed-off-by: Ian Whalen <ian.whalen@gmail.com>
Branch: master
https://github.com/mongodb/mongo/commit/69c85af1e899c52f7b00cacd4c2a11052a6ead91

Comment by Daniel Pasette (Inactive) [ 03/Feb/13 ]

Author:

{u'date': u'2013-02-01T22:28:38Z', u'email': u'dan@10gen.com', u'name': u'Daniel Pasette'}

Message: Merge pull request #369 from asya999/master

SERVER-8382 partial fix
Branch: master
https://github.com/mongodb/mongo/commit/ff4c692899d8e91fd3dd28e890f61c43c6787531

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