00005 — Access Boundaries
By Engineering Team•November 29, 2026•3 min read
Implements SR-008. The workflows are described in 00006, 00003 and 00004. Values are described by purpose, never by the name they are stored under.
1. Who reads what

| Value (per environment) | guard, scan, compare | app.yml build |
app.yml media copy |
app.yml deploy |
infra.yml plan and apply |
|---|---|---|---|---|---|
| Media address, Analytics ID (not secret) | ✘ | ✔ | ✘ | ✘ | ✘ |
| Media copy key pair (read the non-production media bucket, write its own) | ✘ | ✘ | ✔ | ✘ | ✘ |
| Publishing token (Pages only) | ✘ | ✘ | ✘ | ✔ | ✘ |
| Infrastructure token (account storage, Pages and Workers; its own zone’s DNS, firewall, routes and settings) | ✘ | ✘ | ✘ | ✘ | ✔ |
| State key pair (state bucket only) | ✘ | ✘ | ✘ | ✘ | ✔ |
| State passphrase | ✘ | ✘ | ✘ | ✘ | ✔ |
2. Boundaries
- One environment per job. Each job is bound to the
nonprodorprodGitHub environment, whose only secret is the value of that environment’s read-only service account. The job loads its values from that environment’s vault only, so a non-production job can never read a production value (SR-INFRA-002 SR-F-09). - Only
main. Both environments accept deployment branchmainonly, so no other branch, and no pull request, can read a value. - Publishing cannot change infrastructure. The publishing token can deploy Pages and nothing else. A compromise of the site path cannot change infrastructure or read state.
- Media copy reaches two buckets only. The media copy key pair reads objects in the non-production media bucket and writes objects in its own environment’s; it is loaded after the build and cleared after the copy. It is the only value that reads across environments, and only from non-production, the source of every release’s images (ADR-006).
- Checks hold nothing. The scans, the build comparison and the guards read no environment values; the guards use the run’s own read-only GitHub token.
- Read-only default token. Every workflow sets the GitHub token to
contents: read, addingactions: readonly where artifacts from another run are downloaded. - Expiring tokens. The pipeline tokens of both environments are created in code by the Cloudflare project-setup layer with one permission list; a person rolls each new one in the dashboard into that environment’s vault, so no repository writes into another. They last one day, because the site is released rarely, so each release starts by renewing them. See Access Hand-Over.