Posts tagged “multi-tenancy”
-
RBAC, ABAC or ReBAC: how should you model permissions?
Roles answer "what can an editor do?", attributes answer "under which conditions?", relationships answer "who can see this particular document?". Most SaaS products need roles per tenant plus a few attribute rules; sharing features need relationships. Where to enforce them, and why the database…
-
How do you keep tenants apart when they share one database?
How I let Postgres, not application code, keep tenants apart, so a forgotten tenant filter returns nothing instead of another customer's data: FORCE, non-owner roles, transaction-local settings, fail-closed policies, and tests that prove it.