Tenant isolation
Each API key operates exclusively on its own tenant. This is part of the defense-in-depth design: even if an API key leaks, the damage is contained to a single tenant.
- An API key can only operate on its own tenant.
- Data (products, customers, documents) is physically separated by PostgreSQL schema.
- Even if an
id_productofrom another tenant is known, the API key will receive400 Producto no encontrado.
There is no way to access cross-tenant resources via the API. The filter is applied at the persistence layer, not only at the application layer.