juspay / hyperswitch-card-vault

Hyperswitch Card Vault is an open-source sensitive information storage system built on Rust.

Home Page:https://opensource.hyperswitch.io/going-live/pci-compliance/card-vault-installation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement schema based multi-tenancy for DB connections

Chethan-rao opened this issue · comments

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.