[DRIVERS-162] Work around reduction of localhost exception permissions in MongoDB >= 2.7.1 Created: 23/May/14  Updated: 27/May/22  Resolved: 21/Jun/16

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Barrie Segal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on MOTOR-38 Fix Motor's direct tests for MongoDB ... Closed
depends on PYTHON-715 Fix tests for MongoDB >= 2.7.1 runnin... Closed
depends on SERVER-12621 Reduce localhost exception permissions Closed
Related
related to DRIVERS-169 Work around localhost exception issue... Closed
Server Compat: 2.7
Driver Compliance:
Key Status/Resolution FixVersion
PYTHON-715 Done 3.0
MOTOR-38 Done 0.4, 0.5

 Description   

MongoDB provides a "localhost exception" for executing unauthorized operations from localhost when authentication is enabled but no users have yet been added. In versions previous to 2.8 any operation could be executed. Starting in MongoDB 2.8 the addUser command is the only command requiring authorization that can be run before the first user is added.

See DRIVERS-169 for a specific problem caused by this change. Driver test suites that assume all normal operations can be performed on localhost if no users exist will require changes.



 Comments   
Comment by Andrew Morrow (Inactive) [ 03/Mar/15 ]

Validating for C+11 because validated for C, and no user helpers in C+11 driver.

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