Skip to content
Portal

Multi-bank

Aurore useradmin@banque-aurore.frtenant = AuroreBoréale useradmin@banque-boreale.frtenant = BoréalePlatform administratorplatformall, read onlyUBO gatewayeach connection is given the request's bank (ubo.tenant, ubo.scope)PostgreSQLrow-level security policies on every table of a bankPOLICYUSING (tenant_id =current_setting('ubo.tenant'))a table without policy: the platform does not startAurore card ••3935✓ seen by AuroreBoréale card ••1204✗ hidden from AuroreAurore card ••9789✓ seen by AuroreBoréale card ••5521✗ hidden from Aurore
The request's bank is given to each connection; the database's policies filter the rows.
  • 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.

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’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.