Skip to content
All posts
Engineering 6 min

Environments are tenants

DataAstra

Open almost any data warehouse that has been in use for a few years and you will find the environments inside it. A schema called dev_sales next to sales. A table with an env column. A pipeline with a line that reads from production when the development copy is empty, added once to unblock a demo and never taken out.

Each of these is a small decision that made sense on the day. Together they mean development and production share a database, a catalog, a lineage graph and a set of grants, separated only by naming conventions that every pipeline, policy and person has to honour. One query that forgets the prefix reads production. One grant on the wrong schema opens it. Lineage shows edges from development tables into production reports, and nobody can say whether they are real.

DataAstra does not do this. There are no dev_ prefixes, no environment column and no fallback from one environment to another. Each environment is its own tenant.

What a tenant holds

An organisation on DataAstra is the bridge: it holds the people and their sign-in, single sign-on, the organisation's administrators and the ordered list of its environments. It never runs data work itself.

Each environment under it, say dev, test and prod, is a whole tenant with its own:

  • database and storage,
  • warehouses,
  • catalog,
  • lineage,
  • grants and data policies.

A person signs in once, at the organisation's address, and switches between the environments they belong to. Their permissions are set in each environment separately. Somebody who is a member of dev only cannot switch into prod. An organisation administrator can add environments and people, and still reads no data until a role in that environment is granted, because administering is not access.

Nothing in the platform's code tests for the strings "dev" or "prod". Environment names belong to the customer; only their order matters.

Born, not configured

A new environment is born the way an organisation is: the platform records it, starts its own services, creates its administrator and opens its doors.

Setting up your workspace: recording your organization done, starting your environment in progress, then creating your administrator account and opening the doors
An environment being born: the organisation is recorded, then the environment's own services start, then its administrator, then its doors open.

Each tenant is reached on its own address, and each runs its own engine. Isolation is a property of the deployment, not a WHERE clause that every query has to remember.

Code moves, data does not

If environments are separate tenants, how does work get from one to the next? The same way it does in software: as code.

Pipelines, quality rules, apps, APIs and semantic models are files in a repository. They are authored in the lowest environment and promoted upward: a promotion is drawn up as a plan, approved by a person and then executed layer by layer. The data stays where it is. Development builds and tests against its own data; production runs the same reviewed code against production's.

Masking is enforced at read, in the tenant that reads. A policy is never something attached to a copy of the data on its way somewhere else, and so it cannot be lost in the copy.

An organisation born from a repository

Taking the idea one step further: if every pipeline, policy, grant and product is code, then a whole estate is code.

Our two sample organisations are built this way. Aldgate, a sample asset manager, and Brightmoor, a sample retailer, are each a set of repositories: setup worksheets in SQL for roles, grants, warehouses and policies, pipeline and quality files for every domain, and the fixtures that load the source systems. One script rebuilds either organisation from scratch, and the result is checked: the counts, the lineage, and data rules such as no edge to a column that does not exist.

We rebuild them often. A capability is not called proven on an organisation that has drifted for weeks, only on one born fresh from its repository. A table no run has written yet, or a service a new environment was never born with, shows up on a fresh birth and nowhere else.

Why it matters for a small team too

None of this is enterprise ceremony. A team of five gains the most from never having to ask which copy of a table a dashboard reads, or whether a development pipeline can reach production. The boundary is the tenant, so the answer is always no, unless someone promoted reviewed code to cross it.

Read about the platform's trust and isolation, see the platform, or the use cases.