We were thinking to use Mongo in a multi-application multi-database system. But we are not able to figure it out. Let me lay it out here.
AWS server
|
|_ Mongo
|
|_App1
|_
|_DB1
|_DB2
|_DB3 ...
|
|_App2
|_
|_DB1
|_DB2
|_DB3 ...
...
So here, App1 should have access to all the databases under it, and it should be only able to see those databases and not the others.
When we tried to provide authentication, this is at a specific database level, but we needed at the application level.
Is this structure possible in mongo?
In simple terms, if we consider APPs as different users, Can different users can access sets of databases with a single authentication. What I mean is,
Say user1 has access to db1, db2 but db3, db4 ... So can we create some kind of a role to the user so that he has access to set of databases but not all. In this example, user should have access only to db1 and db2.