Hi,
I have a problem with roles on mongodb v3.4.4
I have created a use “a2s_FW” on the fireworks db in mongodb :
$ mongo fireworks -u “a2s_FW” -p “XXXXXXXXXXXXX”
MongoDB shell version v3.4.4
connecting to: mongodb://127.0.0.1:27017/fireworks
MongoDB server version: 3.4.4
db.getUsers()
[
{
"_id" : "fireworks.a2s_FW",
"user" : "a2s_FW",
"db" : "fireworks",
"roles" : [
{
"role" : "dbOwner",
"db" : "fireworks"
},
{
"role" : "readWrite",
"db" : "fireworks"
}
]
}
]
But the roles I have used seems not sufficient to use Firework, : launchpad.add_wf() ends up with errors like this one :
pymongo.errors.OperationFailure: not authorized on fireworks to execute command { findAndModify:
“fw_id_assigner”, query: {}, new: false, update: { $inc: { next_fw_id: 1 } }, upsert: false }
The fireworks documentation use an older version of the mongoDB shell, could you just tell me which roles are missing ?
Honestly with dbOwner & readWrite I thought I have total control on it, but I was obviously wrong …
Cheers,
David