BRD-INFRA-009 — Layered Environments at Zero Running Cost
By Product Management & Engineering Leadership•October 25, 2026•2 min read
| Metadata | Details |
|---|---|
| Project Name | cloudflare-infrastructure Layered Environments |
| Document ID | BRD-INFRA-009 |
| Author | Product Management & Engineering Leadership |
| Target Date | Before the first non-production site is published |
| Status | Draft |
1. Executive Summary & Business Goal
The business runs a public website and needs a place to try changes before visitors see them. It does not want to pay for a second hosting account, and it does not want one person or one credential to be able to change everything. The goal is a non-production site and a production site that share one free hosting account, set up in layers: the first layer prepares the account, the second prepares each environment, and the last two run the sites. Each layer holds only the access its own job needs, so a mistake or a leaked credential at one layer reaches as little as possible. The recurring cost stays at zero.
2. Scope of Work
In-Scope
- One hosting account and one registered domain shared by both environments, with the non-production site on its own clearly marked address.
- A fixed order of setup layers, each with its own credential, its own record of what exists, and its own place to work.
- Separate storage and separate deployment access for non-production and production.
- A cost ceiling of zero for hosting, storage, security filtering and certificates, with the free limits written down.
- The one-time manual step of pointing the domain registrar at the hosting provider.
- Keeping the domain’s email working through that step: what mail needs is prepared together with the domain, before it is pointed at the provider.
Out-of-Scope
- Who may use AI assistants where (BRD-INFRA-004).
- How credentials are held and released (BRD-INFRA-002).
- The default web protection each site receives (BRD-INFRA-008).
- Building the workspaces and the configuration code. This document set is the design only.
3. High-Level Business Requirements
| ID | Business Need | Priority |
|---|---|---|
| BR-1.1 (Zero Running Cost) | Hosting, storage, filtering and certificates for both environments fit within the provider’s free limits. A change that would exceed a free limit is recorded before it is made. | P0 |
| BR-1.2 (Layered Setup) | Setup happens in a fixed order. Each layer can create only what the next layer needs and nothing above or beside it. | P0 |
| BR-1.3 (Right Access for the Right Job) | The workspace for each layer works with the credential for that layer only. No workspace holds a credential for another layer. | P0 |
| BR-1.4 (Separate Records per Environment) | Non-production and production each keep their own record of what exists, protected with their own secret, so one cannot overwrite the other. | P0 |
| BR-1.5 (Visible Limits of Sharing) | Where sharing one account and one domain means non-production can reach something in production, that limit is written down with its mitigation, not hidden. | P1 |
| BR-1.6 (Registrar Handover Documented) | The manual step of pointing the domain at the hosting provider is documented, because no automation can perform it. | P2 |
| BR-1.7 (Mail Continuity) | Pointing a domain at the hosting provider never interrupts its email. Everything the domain’s mail needs is set up together with the domain itself, in the same reviewed change, before the domain is pointed there; it does not wait for the website to be set up. | P0 |
Related Documents
- SR-INFRA-009 — Layered Environments and Free-Tier Budget
- ADR-INFRA-010 — One Account and One Zone for Both Environments
- ADR-INFRA-011 — Setup Layer and Credential Hierarchy
- ADR-INFRA-012 — Mail Records With the Zone
- Architecture — Layered Environments
- BRD-INFRA-004 — Environment Isolation and AI Boundaries