Multi-bank
Isolation
Section titled “Isolation”- One bank per request: the gateway reads the token’s bank and gives it to each database connection it
takes for the request (
ubo.tenant,ubo.scope). - Policies on each table: each table holding a bank’s data has a row-level security policy that only lets that bank’s rows through, for reading and writing.
- A role subject to the policies: the gateway connects with a role that cannot bypass them; only the migrations use the tables’ owner.
- A guard at startup: a data table without a policy stops the platform from starting.
- An isolation test calls every route of the API with the accounts of two banks and checks that no data of one shows at the other (over 300 checks).
Isolation also applies to the read replica, the files, the events, the webhooks and the caches.
Quotas
Section titled “Quotas”| Quota | Default | Beyond it |
|---|---|---|
| Authorizations per second (and burst) | Per bank | 91 on the network (which may answer in its place), 429 on the API |
| Simultaneous authorizations | Per bank | Same |
| API calls per minute, per user and per bank | Per bank | 429 and Retry-After |
The rates are counted in Redis, shared by the gateways; a quota change applies everywhere at once. The platform administrator’s Banques screen shows the live consumption.
The platform administrator
Section titled “The platform administrator”The platform’s operator belongs to no bank. They work:
- on one bank, with every right on it (header
X-UBO-Tenant, or the choice at the top of the portal); - on all banks, read only.
Each of their accesses to a bank’s data is logged and visible to that bank.

