The whole problem is because MongoDB does not have a design structure equivalent to a SCHEMA where a database can have multiple SCHEMAS and each schema can have multiple collections. Then each schema data (at rest ) will can be isolated with one file per customer and encrypted.
Hi Jagan,
I'm not sure what 'schema' you are referring to here.
In MongoDB, a database can contain one or many collections, a collection can contain one or many documents. Generally documents in MongoDB collection share a similar data model structure or schema. Normally enforced on application side, although in some cases through document validation.
You may find a video from previous MongoDB World useful : Securing MongoDB to Serve an AWS-Based, Multi-Tenant, Security-Fanatic SaaS application. Which talks about architecture considerations ranging from isolated to shared.
See also the following resources for extra information:
Regards,
Wan.