I have to set-up the multi-tenancy system which there should be multiple tenants, also issue is tenants are not properly isolated and all tenants are accessible by another tenants.
What type of multitenancy are you trying? DNS based or port based? Can you elaborate the issue?
I am trying to build a DNS based multitenancy but each tenant is able to access another tenants data, So I want to isolate the tenants by adding authorization
Basically I have one admin site in bench and under this admin there will be multiple tenants so i need to isolate all the tenants from each other so that we can only communicate by using API’s.
On which version are you working? If you are on older version, then under sites directory, check current_site.txt file exists, if exists, then remove site name present in that file. Second, check unique database created for each site or not. you can use bench --site site1 mariadb, bench --site site2 mariadb. check one or more database tables in which you are seeing data from one site to other. Lets say, you are seeing Lead data from one site to other, execute select query tabLead in both sites database. check if same data exists in both tables.