Skip to content
Auto
English

Security and organization isolation

Trykatch uses Organization as the customer-facing term. Tenant describes the underlying isolation mechanism only.

Organization-neutral URLs keep technical tenancy out of the route. After authentication, middleware resolves the active organization from server-protected session context or another trusted host integration, then revalidates membership before any scoped work begins.

Every organization-scoped request passes through four controls:

  1. authentication identifies the global user;
  2. organization resolution establishes the active organization;
  3. permission handlers authorize the requested capability;
  4. the database transaction sets app.organization_id and app.actor_id, after which forced PostgreSQL RLS filters scoped tables.

The runtime database role cannot own tables or bypass RLS. A separate migrator credential owns schema changes.

Platform administrators and support operators use platform roles and permissions. Organization roles never grant platform authority, and platform permission names are validated against their own code-defined catalog.