[SERVER-10020] Add a createGridFS bucket command Created: 25/Jun/13  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: GridFS
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Richard Kreuter (Inactive) Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Assigned Teams:
Query Execution
Participants:

 Description   

In 2.6 we'll have customizable roles, and so not every user who will be able to insert documents into a GridFS bucket will have permission to create the prerequisite unique index on

{files_id:1, n:1}

.

Proposed fix: add a createGridFS bucket command, so that admins can give users the ability to create GridFS buckets without having privileges to build indexes generally.

Driver changes needed: drivers should be changed to use createGridFS, then maybe fail over to trying the ensureIndex. (Eventually, the ensureIndex call could be dropped from drivers, too.)

Docs changes needed: document the new command, maybe add a release note that taking away createIndex from a user will require upgrading drivers in order to use GridFS.

Tools changes needed: mongofiles, I guess.


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