huggingface/Mongoku

Cannot use the app using non-admin user accounts

scjothi opened this issue · 2 comments

I am trying to use the app for allowing normal users(non administrators) to browse the collections and documents within a particular database. But, the application is throwing error as it is trying to listDatabases since the user doesn't have admin rights that would allow him/her to list the databases. Is there any workaround to resolve this ? I dont want the users to be admins in order to just browse the documents within a database.

Error in the Mongoku console:
MongoError: not authorized on admin to execute command { listDatabases: 1, lsid: { id: UUID("b6649174-54db-4964-a73c-d9c30d8f3499") }, $clusterTime: { clusterTime: Timestamp(1562867683, 1), signature: { hash: BinData(0, F72068EF272F7457EAC07F76F00248C742FC6639), keyId: 6650374760385478657 } }, $db: "admin"

Up !
I have the same issue.