Implement schema based multi-tenancy for DB connections
Chethan-rao opened this issue · comments
Chethan Rao commented
AppState for each tenant would be constructed if the custodian decryption is successful. Each tenant specific AppState is stored in the GlobalAppState which stores the Tenant specific AppState as well as Tenant specific Custodian Key State. When AppState is constructed for a tenant, db connection is established by passing the tenant_id
as schema_name
in the connection url string.