Organizations and Projects: How InfraOrcinus Keeps Tenants and Teams Apart
By Chirag Panchal · Founder & Lead Architect · · 7 min read
How InfraOrcinus separates organizations (the hard tenant wall) and projects (teams inside one), through a single access rule applied in the application, with not-found answers that do not reveal what exists. What the runner does across tenants, which resources are not project-scoped yet, and why isolation is enforced in code rather than by database row-level security.
Development Status & Architectural Evolution: InfraOrcinus is in active development. Architecture specifications, internal interfaces, and operational protocols described herein reflect our current engineering design and are continuously refined to make InfraOrcinus robust, resilient, and enterprise-grade.
A platform that holds one team's cloud credentials and Terraform state has to hold the next team's too, without either being able to see the other. If a boundary bug shows one business unit's state to another, the damage is the kind that ends a deployment.
InfraOrcinus has two boundaries. Organizations are the hard tenant wall. Projects divide the environments inside an organization by team, product or cloud account. This article describes how both are enforced and what is not covered yet.
An earlier version of this article described PostgreSQL row-level security and a separate encryption key per tenant. Neither is how it works today. Isolation is enforced in the application, and the rest of this article describes that as it is.
1. Two Boundaries, One Question
Every access decision starts from a scope built from the caller's identity: their organization, whether they are a platform administrator, whether they are an organization administrator, and which projects they belong to.
There are three roles in that picture, and the difference between them is the point:
- A platform administrator sees every organization. This is the only role that crosses the wall.
- An organization administrator manages users, the audit trail, policy and notification channels, but only inside their own organization. The code is explicit that this role "must never cross into another org's data".
- A member works inside their organization, within their platform role. A read-only role stays read-only in every project.
Environments (stacks), credentials, jobs and plans each carry the organization that owns them. Creating a resource stamps it with the creator's organization, and listing shows only that organization's resources. Blueprint modules are different on purpose: they are a shareable catalog, visible to the organizations they are authorized for, or to all.
2. Projects Inside an Organization
Inside an organization, an environment can belong to one project. Only that project's members, and platform administrators, can see it, its runs, plans, resource graph, policy results and cost estimates, and the approval bell only lists runs they could act on.
An environment with no project is the organization's shared bucket, visible to every member exactly as before. Existing environments start there, so introducing projects hides nothing until someone moves an environment. A person can belong to several projects, a project always keeps at least one project administrator, and members can only be added from the same organization.
Whether a person may see an environment is answered by one rule, applied the same way everywhere: same organization first, then project membership. Every endpoint that returns environment data asks it, and so do the dashboard counts and the AI assistant's tools. Having one rule is the design: there is no second implementation to drift out of step with the first.
3. Not Found Means Not Found
When you ask for something you may not see, the answer is 404 Not Found, identical to the answer for something that does not exist. A caller cannot tell the difference between "another organization's environment" and "no such environment", so the boundary does not leak what exists, which is a real leak in a multi-tenant system.
The same rule reaches the newer surfaces. The MCP server for coding agents looks things up through the caller's scope and returns "not found" for anything outside it, and a change plan is visible only if every environment in it is.
4. The Runner Is Cross-Tenant by Design, But Its Work Is Not
Runners authenticate with a shared secret and execute jobs for all organizations. They have to: a runner pool serves the platform. What keeps that safe is that a job resolves only the credentials, version-control connections and state belonging to its own environment's organization, regardless of which tenant's job the runner happened to run just before.
If you need to keep one tenant's workloads off shared hosts, the answer is runner placement, not scoping: give them their own runner and its own network segment, as the article on per-engine runners describes.
5. Why Isolation Is in the Application
A database can enforce tenancy too, with row-level security, and it is a reasonable defense in depth. InfraOrcinus does not use it today. The control is the scope rule above, exercised by cross-tenant test matrices: one organization's administrator must never read another's users, credentials, environments or runs, whatever route they try.
That is a real trade-off to weigh. The application-level rule is easy to test and has a single owner, but a bug in it is a bug in the only layer. If your threat model requires the database to refuse cross-tenant reads independently, plan on adding that at the database level in your own deployment, and treat the application rule as the first line.
6. What Is Not Project-Scoped Yet
Be precise about the gaps:
- Credentials, policies, notification channels and budgets are organization-wide. A project's environment can use any credential in its organization. Projects divide environments, not these.
- Secrets share one key. Credentials are encrypted at rest with the deployment's key (or a Vault transit key), not a per-organization key.
- Existing users must sign in again after an upgrade that introduces organizations, to pick up their organization.
Summary
Organizations are the hard wall and projects divide teams inside it. One rule answers "may this caller see that environment", out-of-scope objects answer 404 so existence is not disclosed, and runners are cross-tenant but only ever touch the owning organization's credentials and state. Isolation is enforced in the application and tested with cross-tenant matrices rather than by row-level security, and credentials, policies, channels and budgets are still organization-wide.