Architecture
How Sutrix is built, and why that shapes the way you'll use it.
Stack
- Backend: Go, one package per module (model, repository, service, HTTP handler), composed into a single router.
- Database: PostgreSQL. Every table is organization-scoped; schema changes ship as sequential, reversible migrations.
- Frontend: React (Vite) with TanStack Query for server state, and one consistent design system across every module.
- Deployment: self-hosted by default — an organization's data stays with the organization.
Organizations & tenancy
Every record — identities, sources, requests, tickets, documents, everything — belongs to exactly one organization. There is no cross-organization visibility anywhere in the product, including in admin tooling.
Permissions model
Two layers work together:
- Role-based access control (RBAC) — owner / admin / developer / viewer — enforced at the route level for every module.
- Fine-grained sharing — Documents, Wiki articles, App Studio dashboards, and datasets can additionally be marked private or org-visible, with explicit per-user shares (and edit vs. view) layered on top of RBAC. A document being "org visible" doesn't override RBAC — it only extends who inside the allowed RBAC scope can see it.
Identity-first design
Every module that needs "who is this for" or "who approves this" reads from the same identity graph — including the requester's actual manager, resolved from their identity record, not a separately-configured approver list. That's why time off, expense claims, and access requests all route to the right person without extra setup.