Просмотр исходного кода

docs(wiki): enterprise networks, infrastructure, identity and careers (#62)

Four orientation pages with dated claims registers, a Doppler-in-enterprise
section on the landscape page, an Enterprise context section in the sidebar
and reading order, and tests for banner, links and claim dating.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
ChiefGyk3D 1 месяц назад
Родитель
Сommit
d5fc260b52

+ 115 - 0
docs/wiki/Careers-Roles-and-What-to-Learn-Next.md

@@ -0,0 +1,115 @@
+# Careers, roles and what to learn next
+
+> **Orientation, not a design guide: verified claims dated.** Nothing on this page was checked against an employer, a certification body or a salary survey; job titles, duties and certification names are general industry knowledge unless the claims register says otherwise. Titles mean different things at different companies. Treat this as a map to ask questions with, not a promise about any job.
+
+**Prerequisites:** [Start here if you are new](Start-Here-If-You-Are-New.md) and at least the first half of the [core path](Reading-Order.md#the-core-path). The companion pages [Enterprise networks](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md), [Enterprise infrastructure](Enterprise-Infrastructure-Differences.md) and [Enterprise identity and secrets](Enterprise-Identity-and-Secrets-at-Scale.md) give the vocabulary used below.
+
+The maintainer's reason for this group of pages is simple: the field this repository lives in is wide, the small example shows one slice of it, and it is a good thing to learn for a career. This page lists the roles around the work, what each does on an ordinary day, and which pages here build which skills. It endorses no certification and no employer.
+
+## Contrast at a glance
+
+| | In this project | In a company |
+|---|---|---|
+| Who does the work | One person wearing every hat | Many roles, each owning part of what one person does here |
+| What "done" means | It applies, the checks pass, the bill is under the cap | A ticket is closed, a service-level target is met, an auditor is satisfied |
+| Who you ask | Documentation and your own notes | A named colleague, a team channel, an on-call engineer |
+| What you are measured on | Whether you learned it | Reliability, risk reduced, time saved, cost controlled, tickets closed |
+
+## The roles around this work
+
+Duties overlap and the names shift. Read each as a **cluster of tasks**, not a job title you must match.
+
+| Role | A day, roughly | Skills it leans on | Pages here that build them |
+|---|---|---|---|
+| **Help desk / IT support** | Resets passwords, fixes sign-in and device problems, triages, escalates, writes down what fixed it | Troubleshooting, identity basics, patience, clear writing | [Identity, secrets and zero trust basics](Identity-Secrets-and-Zero-Trust-Basics.md), [Troubleshooting index](Troubleshooting-Index.md) |
+| **Systems administrator** | Builds, patches and monitors servers and services, manages accounts and backups | Linux or Windows, scripting, patching, backup and restore | [Droplet hardening](Droplet-Hardening.md), [Containers and Docker basics](Containers-and-Docker-Basics.md) |
+| **Network engineer** | Designs and runs switches, routers, firewalls, wireless and links between sites | Addressing, routing, segmentation, firewalls, DNS and DHCP | [Networking basics](Networking-Basics-for-This-Project.md), [DigitalOcean network and firewalls](DigitalOcean-Network-and-Firewalls.md), [Enterprise networks](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md) |
+| **Cloud engineer** | Builds and runs workloads and networks in a cloud, controls cost, applies guardrails | One cloud deeply, IaC, IAM, cost control | [What is the cloud](What-Is-the-Cloud.md), [Why the clouds differ](Why-the-Clouds-Differ.md), [Enterprise infrastructure](Enterprise-Infrastructure-Differences.md) |
+| **DevOps / platform / SRE** | Builds the pipeline and platform other engineers use; keeps services reliable; handles on-call and post-incident reviews | IaC, CI/CD, observability, automation, reliability thinking | [What is infrastructure as code](What-Is-Infrastructure-as-Code.md), [OpenTofu](OpenTofu-Stacks-and-Modules.md), [Spacelift](Spacelift.md), [CI, tests and the cost gate](CI-Tests-and-Cost-Gate.md) |
+| **Security engineer** | Designs and builds controls: identity, network, secrets, hardening; reviews designs; fixes findings | Threat modelling, least privilege, secrets, cloud security | [Threat model](Threat-Model.md), [Doppler and secrets](Doppler-and-Secrets.md), [Why ZTNA and not a VPN](Why-ZTNA-Not-a-VPN.md), [Enterprise identity and secrets](Enterprise-Identity-and-Secrets-at-Scale.md) |
+| **Security analyst / SOC** | Watches alerts, triages, investigates, escalates, writes up incidents | Logs, detection logic, attack techniques, calm under pressure | [Detection, Wazuh and the landscape](Detection-and-Monitoring-Wazuh-and-the-Landscape.md), [Reading a dashboard as an operator](Reading-a-Dashboard-as-an-Operator.md) |
+| **Detection engineer** | Writes and tunes the rules and queries that turn telemetry into alerts; measures false positives | Log formats, query languages, adversary behaviour, testing | [Cloud telemetry](Cloud-Telemetry-What-and-Why.md), [Build your own mini SOC](Build-Your-Own-Mini-SOC.md) |
+| **GRC / auditor** | Maps controls to standards and laws, gathers evidence, runs risk registers and access reviews | Frameworks, policy writing, evidence, asking good questions | [Enterprise engineering habits](Enterprise-Engineering-Habits.md), [Threat model](Threat-Model.md), [Enterprise identity and secrets](Enterprise-Identity-and-Secrets-at-Scale.md) |
+| **Architect** | Decides how the pieces fit across teams and years; weighs cost, risk, constraints and people; writes the decision down | Breadth, trade-offs, communication | [Architecture overview](Architecture-Overview.md), [Small example: the enterprise landscape](Small-Example-Enterprise-Landscape.md), [Enterprise infrastructure](Enterprise-Infrastructure-Differences.md) |
+
+Two honest notes. First, people move between these clusters, and many start in support or administration. Second, the roles that sound narrow (detection engineer, for example) usually need a broad base underneath: networking, operating systems and how services fail.
+
+## A skills ladder
+
+A ladder is a sequence of things you can **do**, each resting on the one below. The rungs are not job levels.
+
+1. **Use it.** Explain, in your own words, what an address, a port, a firewall, a secret and a pull request are. Read the first six core path pages.
+2. **Read it.** Open any file in `stacks/` and say what it creates; read a plan and say what will change. See [Terraform reference](Terraform-Reference.md) and [Trace one change end to end](Trace-One-Change-End-to-End.md).
+3. **Run it.** Build your own copy and operate it: the build track and the [labs](Labs-Break-It-on-Purpose.md), where you predict which check will object.
+4. **Break it, then fix it.** Fault-find from symptoms; use the [Troubleshooting index](Troubleshooting-Index.md) and the [Lessons learned](Lessons-Learned.md).
+5. **Defend it.** Write a threat model before you read the worked one ([Threat model exercise](Threat-Model-Exercise.md)), and argue for what you accept.
+6. **Watch it.** Collect logs, build a dashboard, write one detection ([Build your own mini SOC](Build-Your-Own-Mini-SOC.md)).
+7. **Scale it on paper.** Redesign the project for ten teams and three environments, using the enterprise pages as the checklist. Notice which of your answers are products and which are habits.
+8. **Teach it.** Explain one page to someone who has not read it. The gaps you find are the next thing to learn.
+
+## Certifications as signposts
+
+Certifications are one way an employer or hiring manager gets a quick signal and one way you get a structured syllabus. They are not a substitute for having built something, and they differ greatly in cost, rigour and how much employers value them locally. This page does not endorse any of them, and nothing here has been checked against the current exam objectives. The categories below are general knowledge, offered so the names are familiar:
+
+| Area | Examples people commonly mention | Notes |
+|---|---|---|
+| General IT and networking foundations | CompTIA A+, Network+, Security+; Cisco CCNA | Vendor-neutral and vendor-specific options exist; check current objectives |
+| Cloud fundamentals and associate level | Entry and associate certifications offered by AWS, Microsoft (Azure) and Google Cloud | Each covers its own cloud; this wiki's cloud pages are a starting comparison |
+| Infrastructure as code and containers | HashiCorp Terraform Associate; Kubernetes certifications from the CNCF | Terraform's and OpenTofu's languages are close but not identical; check the exam |
+| Security | CISSP, GIAC certifications, CompTIA Security+ and others | Several have experience requirements; some are management-oriented |
+| Audit and governance | ISACA's CISA and CISM | Aimed at audit, risk and governance roles |
+
+Ask people in the role you want which ones they actually saw matter, and look at job postings in your area for a month before you pay for anything. Some of these credentials expire and need renewal fees or continuing education; check the issuer.
+
+## Keep tinkering: home-lab ideas that extend this repository
+
+Each idea names the wiki pages it builds on. Do them in your own accounts and keep the cost gate in mind.
+
+1. **Build the second site.** Add a second region or provider with the same modules and watch what the cost gate says ([Multiple sites and identity](Multiple-Sites-and-Identity.md), [Why the clouds differ](Why-the-Clouds-Differ.md)).
+2. **Add a hub.** Sketch, and if you can afford it build, a transit pattern between two small networks, with non-overlapping address ranges ([Enterprise networks](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md)).
+3. **Break the flat network.** Put a pretend "internal" machine and a pretend "public" machine in separate segments and prove with a test that the public one cannot reach the other.
+4. **Replace a stored token with OIDC.** Pick one long-lived token and find out whether the platform can issue a short-lived credential instead ([Enterprise identity and secrets](Enterprise-Identity-and-Secrets-at-Scale.md)).
+5. **Write a policy as code.** Write a plan check that rejects a rule opening a port to the world, and a test that it fires ([CI, tests and the cost gate](CI-Tests-and-Cost-Gate.md)).
+6. **Run the watcher.** Stand up the mini SOC at home and write one detection per accepted risk in the threat model ([Build your own mini SOC](Build-Your-Own-Mini-SOC.md)).
+7. **Practise a restore.** Back something up, destroy it, restore it, and time the whole thing. That number is your real recovery time.
+8. **Run an access review.** List every identity and token in the project, its owner and expiry, and remove one.
+9. **Write a runbook and hand it to a friend.** If they cannot follow it, it is not finished.
+10. **Do a mock audit.** Pick three claims in the wiki and gather the evidence that each is true.
+
+## Predict, then check
+
+1. A friend says "I want to work in security." Name three different roles from the table that fit, and say how their days differ.
+2. Which rungs of the ladder can you complete without spending any money? Which ones need a cloud account?
+3. A job posting lists four certifications as "required." What are two sensible things to check before you decide?
+4. Why does the table list the same wiki page against more than one role?
+5. Which role's work does the cost gate in this repository most resemble, and which role's work does the threat model most resemble?
+
+### Reference answers
+
+1. For example: security analyst (watches alerts and triages), security engineer (builds controls and reviews designs), GRC (gathers evidence against standards). Analyst work is reactive and time-boxed, engineering is design and implementation, GRC is documentation and conversation.
+2. Rungs 1, 2 and mostly 5 and 8 need no spend (reading, reading plans, threat modelling). Rungs 3, 4 and 6 need an account or hardware; the cost gate exists to keep that bounded.
+3. Whether "required" really means required or is a wish list, and what the people already in the role hold. Also check whether the credential expires and what renewing costs.
+4. Because the roles share foundations; a network engineer and a security engineer both need the firewall page, for different reasons.
+5. The cost gate resembles cloud engineering and FinOps work (a control that blocks spend before it happens); the threat model resembles security engineering and GRC work (naming risks, deciding what to accept, and writing it down).
+
+## Try it yourself
+
+- Pick two roles from the table and read three job postings for each. Mark every skill that appears in the "pages here" column.
+- Write your own ladder: the next three rungs for you, with a date each.
+- Choose one "keep tinkering" idea, write the acceptance test first, and then do it.
+- Ask someone in a role above what they would do differently if they were starting again, and write down the answer.
+
+## Claims register
+
+Status is one of: `Verified <date>`, `General knowledge` (widely held industry usage, not checked here), or `UNVERIFIED`.
+
+| Claim | Status | Source |
+|---|---|---|
+| Role descriptions and day-to-day duties in the roles table | General knowledge | job titles and duties vary by employer; not checked against any employer or survey |
+| The named certifications exist and are commonly discussed for the areas listed | General knowledge | not checked against current issuer pages or exam objectives |
+| Some certifications have experience requirements and renewal fees or continuing education | General knowledge | varies by issuer; check the issuer |
+| CISA and CISM are ISACA certifications aimed at audit and governance | General knowledge | not checked |
+| Certifications' value to employers varies by region and role | UNVERIFIED | anecdotal; ask people in the role |
+| Terraform and OpenTofu languages are close but not identical | General knowledge | see the OpenTofu page; not re-checked |
+
+Next: [Reading order](Reading-Order.md). Back to the [Home](Home.md) page.

+ 1 - 1
docs/wiki/Enterprise-Change-Management-for-Beginners.md

@@ -238,4 +238,4 @@ Open [Trace one change end to end](Trace-One-Change-End-to-End.md) and name two
 - The text of SOC 2's trust services criteria, ISO/IEC 27001 and your own auditor's SOX test descriptions, if you will work in a regulated company (none were read for this page).
 - Ask someone at a company how an emergency change is approved there. The answer is usually more honest than the policy.
 
-Next: back to [A small example: what an enterprise does differently](Small-Example-Enterprise-Landscape.md), or the [Reading order](Reading-Order.md).
+Next: [Enterprise identity and secrets at scale](Enterprise-Identity-and-Secrets-at-Scale.md), or back to [A small example: what an enterprise does differently](Small-Example-Enterprise-Landscape.md) and the [Reading order](Reading-Order.md).

+ 156 - 0
docs/wiki/Enterprise-Identity-and-Secrets-at-Scale.md

@@ -0,0 +1,156 @@
+# Enterprise identity and secrets at scale
+
+> **Orientation, not a design guide: verified claims dated.** Claims checked against a vendor or standards page carry the date they were checked (2026-10-16) and the source in the claims register at the bottom. Everything else is general industry knowledge or marked UNVERIFIED. Vendor features and plan tiers change; check the vendor's current documentation before relying on any of it.
+
+**Prerequisites:** [Identity, secrets and zero trust basics](Identity-Secrets-and-Zero-Trust-Basics.md), [Doppler and secrets](Doppler-and-Secrets.md) and [A small example: the enterprise landscape](Small-Example-Enterprise-Landscape.md).
+
+In this project, identity is one administrator and secrets are a handful of tokens that expire every 90 days. In a company, identity is thousands of people, tens of thousands of devices and many more **non-human** identities (services, pipelines, scripts), and the number of secrets grows with the number of systems. The questions are the same four you already know: who is it, can they prove it, what may they do, and what did they do. The rest of this page is how those questions are answered at scale.
+
+## Contrast at a glance
+
+| Question | In this project | In an enterprise |
+|---|---|---|
+| Who are the people? | One administrator, sign-in through Twingate | A workforce identity provider (IdP) holding every employee, contractor and group |
+| How do they sign in? | One identity, MFA on each account | Single sign-on to hundreds of applications, MFA enforced centrally |
+| How are accounts created and removed? | By hand, once | Automatically, driven by HR events (joiner, mover, leaver) |
+| What may people do? | Everything the one admin may do | Roles and attributes, reviewed regularly |
+| Who holds standing admin rights? | One person, always | Few or none: elevated access is requested, approved, time-limited and recorded |
+| How do machines authenticate? | A read-only token in a Spacelift context, 90 days | Short-lived credentials exchanged from the machine's own identity |
+| Where do secrets live? | Doppler, one project, one `prd` config | A secrets manager or vault per environment, with rotation and audit |
+| Who checks? | The operator, by habit | Access reviews, audit logs and an auditor |
+
+## People: IdP, SSO, MFA and conditional access
+
+An **identity provider** is the system of record for who works here. **Single sign-on (SSO)** lets a person sign in once to the IdP and reach many applications through a standard protocol, usually SAML or OpenID Connect. **MFA** is enforced there once instead of per application, and the strongest forms (hardware security keys, passkeys) resist phishing. **Conditional access** makes the decision depend on context: managed device or not, risky location, sensitive application, unusual behaviour. A single policy can say "an unmanaged device may read email but not the admin console".
+
+SSO is also a security argument for IT: when a person leaves, disabling one account blocks new sign-ins everywhere that trusts the IdP. That is not the same as complete offboarding: sessions and tokens already issued may stay valid until they expire or are revoked, accounts and credentials that are independent of the IdP (local accounts, API keys, SSH keys) are untouched, and SCIM alone does not guarantee revocation, so downstream deprovisioning and session or token revocation have to be handled too. It is also a single point of failure and a high-value target, which is why IdP administrators are among the most protected people in a company.
+
+**In this project:** the Twingate sign-in is the only SSO-like moment. One administrator, one MFA setup, and the [Twingate](Twingate.md) group `cah-tor1-admins` is the whole directory.
+
+## Provisioning: SCIM and joiner, mover, leaver
+
+Creating accounts by hand does not scale, and removing them by hand does not happen reliably. The **joiner, mover, leaver** (JML) lifecycle is the formal name for three events:
+
+- **Joiner:** a new person arrives; accounts and group memberships should appear, with the minimum they need on day one.
+- **Mover:** the person changes role; old access should be removed as new access is added. Skipping the removal is how long-serving employees accumulate far more access than anyone intended.
+- **Leaver:** the person departs; every account should be disabled promptly, including the ones nobody remembers.
+
+**SCIM** (System for Cross-domain Identity Management) is a standard protocol an IdP uses to create, update and disable accounts and group memberships in other applications automatically. When an application supports SCIM, the IdP's group becomes the application's group, and the leaver step is one change. Applications that do not support it are handled by tickets, scripts or manual checklists, and they are where the stale accounts live.
+
+## Authorization: RBAC and ABAC
+
+- **RBAC (role-based access control):** people hold roles; roles hold permissions. Simple to explain and audit; roles multiply over time ("role explosion").
+- **ABAC (attribute-based access control):** decisions use attributes of the person, the resource and the context, such as department, data classification and time. More flexible, harder to reason about and to audit.
+
+Most real systems mix them. The practical skill is writing roles that match tasks rather than people, and reviewing them.
+
+## Privileged access: PAM, just-in-time and break-glass
+
+Administrator accounts are the most valuable thing an attacker can obtain. Enterprises reduce **standing privilege**:
+
+- **PAM (privileged access management)** vaults administrator credentials, checks them out for a purpose, and can record sessions. The [landscape page](Small-Example-Enterprise-Landscape.md) names Delinea as an example.
+- **Just-in-time (JIT) access** grants elevated rights for a limited time after a request and an approval, then removes them.
+- **Separate admin accounts** keep the account used for email and the web apart from the one that can change the domain.
+- **Break-glass accounts** are emergency administrator accounts, stored sealed, for when the IdP itself is unavailable or an automated lockout has locked everyone out. They are excluded from the normal conditional-access rules on purpose, so their use must be loudly alarmed, tightly guarded and tested, because they are the exception to every control on this page.
+
+**In this project:** one person holds standing access to everything. The [threat model](Threat-Model.md) accepts that, and PAM is the product class that would close the gap.
+
+## Machines: service accounts and workload identity
+
+The fastest-growing group of identities is non-human. A pipeline needs to deploy; a service needs to read a database. The old answer was a **service account with a long-lived key** in a configuration file, which is the secret that leaks. The better answer is **workload identity**: the platform running the job already knows what it is, so it presents a short-lived signed token and a trust relationship says "this repository, on this branch, may assume this role for ten minutes". The protocol most commonly used is OpenID Connect (OIDC) federation. GitHub Actions, GitLab CI, Kubernetes and the large clouds can all issue such tokens (general knowledge; the Doppler docs list GitHub, GitLab, CircleCI and Kubernetes among the issuers it accepts, see the register).
+
+This is the thing to understand in this project's Doppler design: a `DOPPLER_TOKEN` read-only service token stored in a Spacelift context is exactly the kind of long-lived secret that OIDC federation exists to remove. It is the "first secret" problem described on the [landscape page](Small-Example-Enterprise-Landscape.md#secrets): the token is small, scoped to one config and one project, read-only and expires, which is the second-best answer.
+
+## Secrets: vaults, rotation and certificates
+
+A **secrets manager** stores values encrypted, controls who can read them, records every access, and ideally helps rotate them. At scale the problems are:
+
+- **Sprawl:** secrets in code, chat, wikis and spreadsheets. Scanning tools in CI and on repositories look for them.
+- **Rotation:** changing a secret on a schedule or after an exposure without breaking its users. Easy for one token, hard for a password embedded in forty applications. **Dynamic secrets** avoid it by issuing a credential per request that expires on its own; Vault-class tools are known for this.
+- **Environments:** development, staging and production must hold different values and different access, not one shared set.
+- **Blast radius:** a leaked token should expose one thing. Scoping by project and config, as in this repository, is the mechanism.
+- **Certificates:** a **PKI (public key infrastructure)** issues certificates for servers, devices and people. The failure mode is expiry: an unrenewed internal certificate can take down a service on an ordinary Tuesday. Automation (short-lived certificates, ACME-style renewal) is the cure; a certificate inventory is the minimum.
+
+## Audit and access reviews
+
+Controls matter only if you can prove they worked. Two routine activities do that:
+
+- **Audit logs:** who signed in, who changed which access, who read which secret, kept somewhere an administrator cannot quietly edit, and ideally sent on to the SIEM.
+- **Access reviews (recertification):** a manager or system owner periodically confirms that each person's access is still needed, and removes it if not. Auditors ask to see the evidence.
+
+## Where Doppler and Vault-class tools sit
+
+Doppler is a hosted secrets and configuration manager. Its documentation says it keeps secrets and application config in sync across machines, hosting providers, CI/CD tools and secrets managers, and its pages address developers, platform teams and security teams; its user-groups page targets large and enterprise organizations (register, retrieved 2026-10-16). The landscape page compares it in context with Vault-class tools, each cloud's secrets service, Bitwarden Secrets Manager and Infisical, with no ranking; this page does the same by naming what the vendor's own documentation says it offers for each enterprise concern.
+
+| Enterprise concern | What Doppler's documentation describes (retrieved 2026-10-16) |
+|---|---|
+| Environments and configs | Projects contain environments and configs, with branch configs and config inheritance |
+| Machine access | Service tokens scoped to one config in one project, read-only by default, with optional expiry; service accounts that tie activity to the account rather than a person (Team or Enterprise plan); OIDC identities so a CI tool exchanges its own token without a static one (Team or Enterprise plan) |
+| Roles | Custom roles for workplace and project permissions (standard on the Enterprise plan, or an add-on to Team); user groups for project access at scale (plan wording on the page is inconsistent; confirm) |
+| SSO and provisioning | SAML SSO with guides for Auth0, Authentik, AWS, Duo, Google, JumpCloud, Microsoft Entra ID, Okta and OneLogin; SCIM with guides for Authentik, Duo, JumpCloud, Microsoft Entra ID, Okta and OneLogin. Plan requirements for SSO and SCIM were not stated on the pages read; confirm |
+| Audit | An activity log entry for actions the team takes; config changes link to a version history. Retention and export were not stated on the page read; confirm |
+| Integrations | Syncs to cloud secret stores (AWS Secrets Manager, AWS Parameter Store, Azure Key Vault, GCP Secret Manager), hosting platforms, CI/CD services, Kubernetes and Terraform Cloud |
+
+Whether any of this beats the alternatives for a given organization depends on things this page cannot see: where the workloads run, who already pays for what, whether dynamic secrets are required, and whether the team wants to run the service or buy it. Weigh the operating burden, not only the feature list, as the landscape page says.
+
+## How the repository's model scales up, or breaks
+
+The model is Doppler for secrets, Spacelift for runs, Twingate for people reaching hosts.
+
+| Piece | Scales how | Breaks where |
+|---|---|---|
+| One Doppler project and `prd` config | More projects and configs, one per application and environment, with roles and groups | A single shared `prd` config means every stack's token can read every secret, as the Doppler page already notes about stack 00 and 10 |
+| One read-only service token in the Spacelift context | Fine for a handful of stacks | Rotated by hand every 90 days; at hundreds of stacks that is a chore and an outage waiting for an expiry. Moving to OIDC-based exchange removes the stored token (whether Spacelift can be a trusted issuer for Doppler is UNVERIFIED here: Doppler's page lists a custom discovery URL option, which suggests it may be possible) |
+| Spacelift context labels and push policy as the protection | Policy-as-code scales if reviewed | Two different protections. The technical boundary is the attached push policy (`.spacelift/policies/push.rego`), which never proposes pull-request runs, so branch-controlled code does not run beside the Doppler context token; it must stay attached, and the page on Spacelift has the paid-plan and free-plan caveat. The organizational part is trust in whoever can write to `main`, which no policy file replaces |
+| Twingate group with one admin | Groups sourced from the IdP, and SCIM, keep memberships current | Hand-managed membership drifts; leavers get missed |
+| Hand-tracked expiry dates in a password manager | Fine for four tokens | Needs a monitored inventory with owners and alerts |
+
+None of that makes the design wrong. It makes it **the right size**, with clear places to grow.
+
+## Predict, then check
+
+1. A person moves from the finance team to the marketing team. Which of joiner, mover and leaver is it, and what usually goes wrong?
+2. A CI job has a cloud access key stored in the CI settings. Name the risk and the pattern that replaces the stored key.
+3. The identity provider is down and the on-call engineer cannot sign in to fix it. Which control was designed for this, and what must be true about it?
+4. In this repository, which single secret, if leaked, would let someone read all the others? What limits the damage?
+5. Why does a read-only token that expires in 90 days still need an owner?
+
+### Reference answers
+
+1. Mover. Old access is not removed when new access is granted, so the person keeps finance access they no longer need.
+2. A long-lived secret that can leak from logs, forks or the settings page and works from anywhere. Replace it with OIDC federation: the job presents a short-lived signed token and a trust rule names the repository and branch allowed.
+3. A break-glass account. It must be stored securely and excluded from the normal sign-in dependency, alarmed on every use, tested, and its use reviewed afterwards.
+4. The Doppler service token in the Spacelift context. It is read-only, scoped to one config of one project, expires in 90 days and is a write-only variable in Spacelift, so it cannot write to Doppler and cannot read other projects. Read-only access to Doppler does not make what it retrieves harmless, though: the config holds a DigitalOcean token with create, update and delete scopes and a Twingate key that can read, write and provision, so a leaked Doppler token can lead to infrastructure changes, not just disclosure of values. The write-only setting in Spacelift does not limit damage once the value has been extracted. The [Doppler page](Doppler-and-Secrets.md) is honest that the per-stack "gets" lines are least privilege for honest code, not isolation.
+5. Someone must know it expires, rotate it before it does, and revoke it if it leaks. An expired token warns nobody; the next run just fails.
+
+## Try it yourself
+
+- Read the SCIM page of one IdP and one application. Write down which events (create, update, disable) flow, and what the application does on "disable".
+- List every non-human identity in this repository (Spacelift, CI, Twingate API, DigitalOcean token, connector tokens). For each, write its owner, scope and expiry, then mark the one you would move to short-lived credentials first.
+- Write a three-line break-glass policy for a pretend two-person company.
+- Look at Doppler's service-token and OIDC-identity pages and write down what a switch from the stored token to OIDC would change in the Spacelift context.
+
+## Claims register
+
+Status is one of: `Verified <date>` (checked against the named source on that date), `General knowledge` (widely held industry usage, not checked here), or `UNVERIFIED`.
+
+| Claim | Status | Source |
+|---|---|---|
+| Doppler describes itself as keeping secrets and application config in sync across machines, hosting providers, CI/CD tools and secrets managers | Verified 2026-10-16 | https://docs.doppler.com |
+| Doppler docs address developers, DevOps/platform teams and security teams, and the user-groups page targets large and enterprise organizations | Verified 2026-10-16 | https://docs.doppler.com and https://docs.doppler.com/docs/user-groups.md |
+| A Doppler service token gives access to one config in one project, is read-only by default, and can be given an expiry | Verified 2026-10-16 | https://docs.doppler.com/docs/service-tokens |
+| Doppler service accounts tie activity to the account rather than a user and require the Team or Enterprise plan | Verified 2026-10-16 | https://docs.doppler.com/docs/service-accounts.md |
+| Doppler service account identities allow OIDC authentication without a static token, require Team or Enterprise, and name GitHub, GitLab, CircleCI, Kubernetes and AWS IAM Outbound Identity Federation | Verified 2026-10-16 | https://docs.doppler.com/docs/service-account-identities.md |
+| Doppler custom roles are standard on Enterprise and available as a Team add-on | Verified 2026-10-16 | https://docs.doppler.com/docs/custom-roles.md |
+| Doppler user groups: plan requirement stated inconsistently on the page (Enterprise standard or Team add-on versus Enterprise only) | Verified 2026-10-16 | https://docs.doppler.com/docs/user-groups.md |
+| Doppler SAML SSO guides exist for Auth0, Authentik, AWS, Duo, Google, JumpCloud, Microsoft Entra ID, Okta and OneLogin | Verified 2026-10-16 | https://docs.doppler.com/docs/saml-sso.md |
+| Doppler SCIM guides exist for Authentik, Duo, JumpCloud, Microsoft Entra ID, Okta and OneLogin | Verified 2026-10-16 | https://docs.doppler.com/docs/scim.md |
+| Doppler generates an activity log entry for team actions; config changes link to a version-history log | Verified 2026-10-16 | https://docs.doppler.com/docs/workplace-logs.md |
+| Doppler syncs include AWS Secrets Manager, AWS Parameter Store, Azure Key Vault, GCP Secret Manager, Kubernetes and Terraform Cloud | Verified 2026-10-16 | https://docs.doppler.com/docs/integrations.md |
+| Doppler SSO and SCIM plan requirements, log retention and log export | UNVERIFIED | the pages read did not state them |
+| Spacelift can act as an OIDC issuer Doppler would accept | UNVERIFIED | not checked |
+| JML, SCIM, RBAC/ABAC, PAM, JIT, break-glass definitions | General knowledge | not checked; widely used terms |
+| Vault-class tools are known for dynamic secrets | General knowledge | not checked here; see the landscape page |
+| GitHub Actions, GitLab CI, Kubernetes and the major clouds can issue OIDC tokens | General knowledge | not checked here, except where Doppler's page lists them |
+
+Next: [Careers, roles and what to learn next](Careers-Roles-and-What-to-Learn-Next.md). Back to the [Reading order](Reading-Order.md).

+ 158 - 0
docs/wiki/Enterprise-Infrastructure-Differences.md

@@ -0,0 +1,158 @@
+# Enterprise infrastructure: how large organizations run it differently
+
+> **Orientation, not a design guide: verified claims dated.** Claims checked against a vendor page carry the date they were checked (2026-10-16) and the source in the claims register at the bottom. Everything else is general industry knowledge or marked UNVERIFIED. Nothing here has been built in this repository.
+
+**Prerequisites:** [Enterprise engineering habits](Enterprise-Engineering-Habits.md), [Architecture overview](Architecture-Overview.md) and [A small example: the enterprise landscape](Small-Example-Enterprise-Landscape.md). [Enterprise networks](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md) is a useful companion for the network sections.
+
+This project is one account, one environment, one operator and two machines. The habits it practises are the right ones. What changes at a company is **how many of everything there is** and **how many people must agree**. Almost every practice below exists because something went wrong when there were too many accounts, too many engineers or too many years for informal agreement to work.
+
+Each section ends with what this project does instead and why that is fine at its size.
+
+## Contrast at a glance
+
+| Topic | In this project | In an enterprise |
+|---|---|---|
+| Accounts | One DigitalOcean account | Many cloud accounts, subscriptions or projects arranged in a hierarchy |
+| Guardrails | Cost gate and CI checks in the repository | Organization-level policy that applies whether or not the repository's checks ran |
+| Cost tracking | A cap checked on every pull request | Tags, allocation to teams, budgets and a FinOps practice |
+| Servers | Two identical droplets, rebuilt from cloud-init | Hundreds to thousands, built from golden images, patched on a schedule |
+| Inventory | `stacks/` is the inventory | A CMDB or asset inventory fed by discovery |
+| IaC | Two stacks in one repository | Module registries, a state per environment, policy-as-code, drift detection |
+| Delivery | PR, CI, Spacelift, human confirm | Environments (dev, test, prod), approvals, change windows |
+| Resilience | Rebuild from code; no promises | Recovery objectives, multi-region, tested backups |
+| Watching | Planned: Wazuh at home | NOC, SOC, a SIEM, on-call rotations |
+| Vendors | Free tiers, no contracts | Procurement, security reviews, contracts, renewals |
+
+## Many accounts, in a hierarchy: landing zones
+
+A **landing zone** is a pre-built, governed place for teams to put workloads: accounts or subscriptions already wired to central logging, networking and identity, with guardrails already attached. Providers describe the hierarchy in their own words: AWS Organizations groups accounts into organizational units; Azure uses management groups above subscriptions; Google Cloud uses an organization, folders and projects. Why many accounts? An account is the strongest boundary a cloud offers for permissions, quotas, billing and blast radius. One account per application per environment is common.
+
+**What this project does instead.** One account, one project, tags and a firewall for separation. At two machines, a hierarchy would cost more attention than it protects.
+
+## Organization policy and guardrails
+
+IAM answers "who may do this." A guardrail answers "what may be done at all, by anyone in this part of the organization." The three big clouds each have one.
+
+- **AWS service control policies (SCPs)** set the maximum permissions available to IAM users and roles in member accounts; an SCP never grants anything, and does not apply to the management account (verified in the register).
+- **Azure Policy** evaluates resources against rules (allowed regions, required tags, diagnostics enabled) at a management group, subscription, resource group or resource scope, with effects such as deny, audit or modify.
+- **Google Cloud Organization Policy** sets constraints on how resources may be configured, inherited down the organization, folders and projects; the docs contrast it with IAM as "what" versus "who".
+
+All three can stop a change that CI would have approved, because the guardrail sits in the cloud, not in the repository. That is a feature: the check cannot be skipped by a pipeline that was edited.
+
+**What this project does instead.** The cost gate and the CI checks live in the repository and in Spacelift. A person with the provider's console could ignore them; the [threat model](Threat-Model.md) accepts that for a one-person lab. It is fine because the only person who could bypass the guardrail is the owner.
+
+## Tagging, cost allocation and FinOps
+
+At scale the bill is split among teams, and nobody can split what is not labelled. Organizations enforce tags (owner, cost centre, environment, application) with the guardrails above, set budgets with alerts, and have a **FinOps** practice: engineers, finance and product reviewing spend together, rightsizing, buying commitments and removing waste. The FinOps Foundation publishes a framework; this page has not checked its current text, so treat the name as a pointer.
+
+**What this project does instead.** One bill, one owner, and a [cost gate](CI-Tests-and-Cost-Gate.md) that refuses a pull request whose monthly estimate exceeds the approved ceiling. It is fine because the gate answers the question FinOps answers, "should this be allowed to cost that?", before the money is spent, for the one stakeholder who exists.
+
+## Golden images and patching
+
+A **golden image** is a pre-built, pre-hardened machine image that every server starts from, built by a pipeline (Packer is a common tool) and versioned. Patching then becomes "build a new image, roll it out, retire the old" instead of logging in to each machine. The same ideas run in parallel with regulated windows, vulnerability scanning, severity timelines and exceptions that someone signs.
+
+**What this project does instead.** The droplets are rebuilt from cloud-init on a stock Ubuntu image, and hardening is code ([Droplet hardening](Droplet-Hardening.md)). Rebuilding is cheap because there are two of them and nothing on them is precious. A golden-image pipeline is the next step if the count ever reaches double digits.
+
+## CMDB and asset inventory
+
+A **configuration management database (CMDB)** records what exists, who owns it, what depends on what. Real ones are often wrong, because they are fed by humans or by discovery tools that see only part of the estate. Auditors, incident responders and patch teams all start from "what do we have?" and a bad answer costs time everywhere. Cloud inventory services, EDR agent lists and network scans are the usual sources, reconciled against each other.
+
+**What this project does instead.** The code is the inventory: if it is not in `stacks/`, it should not exist, and the plan shows any difference. That is infrastructure as code doing the CMDB's job, and it works until someone creates something by hand, which is what [drift detection](#iac-at-scale) is for. Be careful what a plan can see: it compares code with resources tracked in state, so an extra droplet created in the console is invisible to a clean plan and can stay billable or exposed. The intended inventory (code) and the actual inventory (what the cloud account contains) are different things; finding the difference needs separate discovery and reconciliation, such as listing the account's resources and comparing them with state.
+
+## IaC at scale
+
+Everything on [What is infrastructure as code](What-Is-Infrastructure-as-Code.md) still holds. What grows around it:
+
+- **Module registries.** Shared modules versioned and published internally, so a team uses the approved network module rather than writing its own. This repository's `modules/` directory is the small version.
+- **State per environment, and per blast radius.** One state file for a whole company would be unusable and dangerous. States are split by environment and by component, with locking and tight access (state can contain secrets, as [Doppler and secrets](Doppler-and-Secrets.md) notes for connector tokens).
+- **Policy as code.** Rules about what a plan may contain, evaluated automatically on the plan. Open Policy Agent (OPA) and HashiCorp Sentinel are the two names you will meet most; Spacelift, used here, supports OPA-based policies (see its docs for specifics).
+- **Drift detection.** A scheduled plan that reports when the real world differs from the code.
+- **Review gates.** Required reviewers, code owners for sensitive paths, signed commits.
+
+**What this project does instead.** Two stacks, two states in Spacelift, a push policy, a human reading every plan. It is fine because the plan fits on a screen; the practices above exist for plans that do not.
+
+## CI/CD with environments and approvals
+
+The pipeline here has seven gates ([capstone](Fork-Private-Stacks-and-the-Pipeline.md#where-the-pipeline-actually-starts)). Enterprises add **environments** (dev, test, staging, production) with different people allowed to promote between them, **approvals** that name the roles required, deployment strategies (canary, blue-green, feature flags) and **change windows**. Many regulated organizations require a change record before production changes; that is the subject of [Enterprise change management for beginners](Enterprise-Change-Management-for-Beginners.md), and [Trace one change end to end](Trace-One-Change-End-to-End.md) shows this project's version.
+
+**What this project does instead.** One environment, which is production, with a human confirm at apply. Fine because there are no users to protect from a bad change except the author.
+
+## High availability, disaster recovery and backups
+
+| Term | Meaning |
+|---|---|
+| **RTO** (recovery time objective) | How long the business can tolerate a service being down |
+| **RPO** (recovery point objective) | How much recent data it can tolerate losing, measured in time |
+| **HA** (high availability) | Design that survives the failure of a component without an outage |
+| **DR** (disaster recovery) | The plan and capacity to restore service after losing a site or region |
+
+An RTO of four hours and an RPO of fifteen minutes lead to specific, costly designs: replicas, a second region, frequent backups. Backups are only real once restored in a test; many organizations keep an **immutable** copy that ransomware cannot encrypt, and test restores on a schedule. Multi-region deployment is the usual answer to a regional outage, and it doubles a lot of what this project calls its cost.
+
+**What this project does instead.** Two connectors in one region give a little redundancy (Twingate can use either), and the whole thing is rebuilt from code with a state in Spacelift. The recovery objective is, in effect, "an evening". That is fine for a teaching lab, and exactly the thing to write down as an accepted risk.
+
+## Observability: SIEM, NOC, SOC and on-call
+
+A **NOC** keeps the service up; a **SOC** keeps it safe; a **SIEM** collects the events both want. Someone has to be woken when an alert fires, so there is an **on-call rotation** with a runbook, an escalation path and a post-incident review. The lessons for this are on [Cloud telemetry: what and why](Cloud-Telemetry-What-and-Why.md) and [Detection, Wazuh and the landscape](Detection-and-Monitoring-Wazuh-and-the-Landscape.md).
+
+**What this project does instead.** Planned: a Wazuh agent on each host reporting to a home SIEM, and the operator as the on-call rotation. Fine because the cost of an hour of silence is zero; the lesson is the shape, not the staffing.
+
+## Vendor management and procurement
+
+Buying a product at a company involves a security questionnaire, a review of the vendor's own certifications (a SOC 2 report or ISO 27001 certificate are the ones asked for most often), a data-processing agreement, legal and finance sign-off, and a renewal date someone must remember. The decision is rarely purely technical: "we already pay for that" settles many arguments. Exit planning matters too: how do you get your data and configuration out?
+
+**What this project does instead.** Free or small tiers, public pricing, and a stated preference for open and replaceable parts. Fine because switching away from any of them costs hours, not a project.
+
+## Shared responsibility
+
+Cloud providers publish a **shared responsibility model**: they secure the platform; you secure what you put on it. The line moves with the service: you patch the operating system on a virtual machine, but not on a managed database. The practical effect is that "the cloud is secure" is half a sentence. Every enterprise audit asks who owns each control.
+
+**What this project does instead.** The droplets are your responsibility down to the operating system, and that is why [hardening](Droplet-Hardening.md) exists. Fine, and instructive: the example is built to show which layer is yours.
+
+## Hybrid, mergers and legacy
+
+Few large organizations are cloud-only. They run data centers, colocation space and several clouds at once, often because of **mergers**: when two companies join, so do their networks, identity providers, ticket systems and security tools, none of which were designed to meet. Legacy systems nobody dares touch are found in every estate, and their risk is managed with isolation, compensating controls and a retirement plan. The skills that matter are inventory, careful change, and writing things down.
+
+**What this project does instead.** Nothing old, nothing merged, nothing hybrid. This is the biggest thing a small example cannot teach, as the landscape page says.
+
+## Predict, then check
+
+1. A developer with full administrator rights in a cloud account tries to create a resource in a region the company has banned. The CI checks passed. What stops it, and where does that control live?
+2. A company's finance team cannot tell which team caused a bill increase. Name the control that is missing, and a guardrail that would enforce it.
+3. A server cannot be patched this month because the application owner cannot be found. Which two records from this page are probably weak?
+4. Name two reasons one state file for the whole company would be a bad idea.
+5. An RTO of 15 minutes is requested for a service this project runs. What is the first thing you would say about the design?
+
+### Reference answers
+
+1. An organization-level guardrail: an SCP, Azure Policy or Organization Policy constraint, depending on cloud. It lives in the cloud provider's organization layer, outside the repository, so it applies however the change was made. (Which exact policy type depends on the cloud; the register has the sources.)
+2. Cost allocation: required tags (owner, cost centre) and budgets per team. A policy that denies or flags resource creation without the tags enforces it.
+3. The CMDB or asset inventory (no owner recorded) and the golden-image or patch process (no accountable owner for exceptions).
+4. Locking and speed: every change by every team queues behind one lock. Blast radius and secrets: anyone with access to read it reads everything, and one corruption affects everything. Split by environment and component.
+5. Two connectors in one region cannot promise a 15-minute RTO against a regional or account-level failure. It needs a second region or a tested automated rebuild and a clear statement of which failures it covers.
+
+## Try it yourself
+
+- For each section above, write the one sentence from "what this project does instead" in your own words, then say what event would make it stop being fine.
+- Take one of the guardrails (SCP, Azure Policy or Organization Policy) and read its first documentation page. Write down one thing it can do that a pull-request check cannot.
+- Draw the account layout you would want if this project had three environments and two teams.
+- Write the RTO and RPO you would honestly accept for this lab, and what you would have to change to halve each.
+
+## Claims register
+
+Status is one of: `Verified <date>`, `General knowledge` (widely held industry usage, not checked here), or `UNVERIFIED`.
+
+| Claim | Status | Source |
+|---|---|---|
+| AWS SCPs set the maximum permissions for IAM users and roles in member accounts, never grant permissions, and do not affect the management account | Verified 2026-10-16 | https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html |
+| Azure Policy evaluates resources against rules at management group, subscription, resource group or resource scope, with effects including deny and audit, and can enforce allowed regions and tag requirements | Verified 2026-10-16 | https://learn.microsoft.com/en-us/azure/governance/policy/overview |
+| Google Cloud Organization Policy sets constraints on how resources are configured, inherited from organization to folders to projects; IAM decides who, Organization Policy what | Verified 2026-10-16 | https://docs.cloud.google.com/resource-manager/docs/organization-policy/overview |
+| An account or subscription is the strongest boundary a cloud offers for permissions, quotas and billing | General knowledge | not checked |
+| AWS uses organizational units, Azure management groups, Google Cloud folders | General knowledge | the Azure and Google terms appear in the sources above; AWS OU term not re-checked |
+| Spacelift supports OPA-based policies | UNVERIFIED | see the Spacelift page and its documentation; not re-checked for this page |
+| The FinOps Foundation publishes a FinOps framework | UNVERIFIED | name given as a pointer only |
+| Packer is a common golden-image tool | General knowledge | not checked |
+| OPA and Sentinel are the common policy-as-code engines | General knowledge | not checked |
+| SOC 2 and ISO 27001 are the certifications vendors are most often asked for | General knowledge | not checked |
+| Providers publish a shared responsibility model | General knowledge | not checked |
+
+Next: [Enterprise change management for beginners](Enterprise-Change-Management-for-Beginners.md), then [Enterprise identity and secrets at scale](Enterprise-Identity-and-Secrets-at-Scale.md). Back to the [Reading order](Reading-Order.md).

+ 154 - 0
docs/wiki/Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md

@@ -0,0 +1,154 @@
+# Enterprise networks: campus, branch, data center and cloud
+
+> **Orientation, not a design guide: verified claims dated.** Claims checked against a vendor or standards page carry the date they were checked (2026-10-16) and the source in the claims register at the bottom. Everything else is general industry knowledge or marked UNVERIFIED. Nothing here has been built in this repository; the enterprise side of every table is a description, not a deployment.
+
+**Prerequisites:** [Networking basics for this project](Networking-Basics-for-This-Project.md) (addresses, CIDR, ports, stateful firewalls), [DigitalOcean network and firewalls](DigitalOcean-Network-and-Firewalls.md) and [A small example: the enterprise landscape](Small-Example-Enterprise-Landscape.md).
+
+This repository has one network: a VPC with a range of 256 addresses, two small machines in it, and a firewall that lets nothing in. A company has hundreds of networks of several different kinds, and most of the work of a network engineer is deciding how those networks join, what may cross between them, and how anyone can tell. This page names the shapes and the vocabulary. It is the page to read before a job interview that says "hybrid network" in the description.
+
+## The shapes of a corporate network
+
+| Shape | What it is | Typical contents | Who cares about it |
+|---|---|---|---|
+| **Campus** | A large site with many floors or buildings, usually one organization's own | Access switches in wiring closets, a distribution or core layer above them, wireless access points, printers, phones, badge readers | Network engineers, help desk, physical security |
+| **Branch** | A small site (a shop, a clinic, a regional office) | A router or firewall, maybe one switch and some wireless, a link to somewhere bigger | Network engineers; often managed centrally because nobody on site is a network person |
+| **Data center** | A room or building of servers the organization runs, or rents space in | Racks, top-of-rack switches, a spine-and-leaf fabric, storage networks, firewalls and load balancers at the edge | Network, systems and storage engineers |
+| **Colocation (colo)** | Someone else's data center building where you rent racks, power and cooling and bring your own equipment | Your hardware, plus cross-connects to carriers and clouds | The same people, plus procurement |
+| **Cloud network** | A VPC (AWS, GCP, DigitalOcean) or VNet (Azure): software-defined network inside a provider | Subnets, route tables, security groups or firewalls, gateways | Cloud and platform engineers |
+| **Remote worker** | One person on their own network, anywhere | A laptop and a client | Everyone, because this is now most people |
+
+The **campus** design most often described is three layers: **access** (where devices plug in), **distribution** (where access switches aggregate and policy is applied) and **core** (fast transport between distributions). Smaller sites collapse distribution and core into one layer. In a data center the common shape is **spine and leaf**: every leaf switch connects to every spine switch, so any server is the same small number of hops from any other. Both are general industry descriptions; vendors publish their own reference designs that differ in detail.
+
+This project is a cloud network and, in the language above, nothing else.
+
+## How the shapes connect
+
+Joining networks is a separate problem from reaching one resource as a person. The same few tools show up everywhere.
+
+| Link type | What it is | Encrypted by itself? | Typical use |
+|---|---|---|---|
+| **MPLS** | A carrier sells you a private, routed service between your sites over their network | Not by default; check the contract | Older and larger WANs, predictable quality |
+| **Internet VPN (IPsec)** | An encrypted tunnel across the public internet between two gateways | Yes: that is its purpose | Branch to data center, site to cloud |
+| **GRE tunnel** | A way to wrap packets so two routers behave as if directly cabled | **No.** Often paired with IPsec | Carrying routing protocols or multicast across a path |
+| **SD-WAN** | Software that manages many links per site (internet, LTE, MPLS) and steers traffic by policy | Typically uses IPsec between sites; verify per product | Replacing or supplementing MPLS at many branches |
+| **Dedicated cloud link** | A physical circuit from your network (or colo) to a cloud provider: AWS Direct Connect, Azure ExpressRoute, Google Cloud Interconnect | A private circuit is not automatically encrypted; add encryption if you need it | Steady heavy traffic, lower and steadier latency than the internet |
+| **Managed site-to-site VPN** | The cloud provider's own IPsec endpoint | Yes | Quick, cheap first link into a cloud |
+| **Transit hub** | A central router in the cloud (a transit gateway, a virtual WAN hub) that many VPCs and links attach to | Depends on the attachment | Avoiding a mesh of point-to-point links |
+
+Two ideas explain most of the design arguments.
+
+**Mesh versus hub-and-spoke.** Connecting every network to every other grows quickly: ten networks need 45 pairwise links, a hundred need 4,950. A hub means each network connects once, to the hub, and policy and inspection live in one place. The price is that the hub becomes critical, and traffic between two spokes takes an extra hop.
+
+**Routing is a negotiation.** Networks that connect have to agree which addresses live where. Inside one organization that is done with a routing protocol; between organizations and with the big clouds it is usually **BGP**. Two networks that use the same private range cannot be joined without translation tricks, which is why [the VPC range here is a demo value](Fork-Private-Stacks-and-the-Pipeline.md#step-2-which-values-are-demo-values) and why large companies keep an address plan (IPAM) as a record of who owns which block.
+
+## Segmentation: how a network is divided on purpose
+
+A **flat network** is one where any device can reach any other. It is easy to build, and it is the reason a single infected laptop can end up with a path to the payroll database. Segmentation is the family of techniques that make the network less flat.
+
+| Technique | What it does | Scale |
+|---|---|---|
+| **VLAN** | Splits one physical switch network into separate Layer 2 networks, tagged with a number | Within a site |
+| **VRF** | A separate routing table on one router, so two networks can even reuse the same addresses | Across a site or WAN |
+| **Firewall zones** | Interfaces grouped as "inside", "outside", "DMZ" and so on, with rules between zones | At the boundary between segments |
+| **DMZ / edge** | A segment for things that must be reachable from the internet, kept apart from the interior | Between internet and inside |
+| **Management network** | A separate network for the administrative interfaces of devices, reachable only from controlled places | Whole estate |
+| **Micro-segmentation** | Rules at each workload (host firewall, cloud security group, agent) instead of at a network boundary | Per workload |
+| **NAC / 802.1X** | Network access control: a device or person authenticates **before** the port or wireless network gives them a place on the network, and the result chooses their VLAN or policy | Per port or wireless user |
+
+Two of these are worth a closer look because you have already met their cousins.
+
+- The [baseline firewall here](DigitalOcean-Network-and-Firewalls.md#two-firewalls-layered-by-tag) is micro-segmentation in a small form: the rule is about a **tag** on a workload, not about a subnet. Cloud security groups and tags are why micro-segmentation is more practical in cloud than on physical switches.
+- A DMZ is the opposite design to this project's. This project has **no** exposed segment. An enterprise often has public services (a website, a mail gateway) and so needs somewhere to put them where a compromise does not hand over the interior.
+
+## North-south and east-west
+
+**North-south** traffic crosses the boundary of a network: in from the internet, or out to it. **East-west** traffic stays inside, between servers or services. Old security spent its effort on north-south (a strong perimeter), and the common finding in incident reports is that once something is inside, east-west is wide open. Zero trust architecture, as the NIST publication describes it, moves the defences from the perimeter toward users, assets and resources, and says that location on a network does not by itself grant trust (see the register). That is the reasoning behind [Why ZTNA and not a VPN](Why-ZTNA-Not-a-VPN.md).
+
+Here, north-south inbound traffic is zero by design. East-west is two connectors that may SSH to each other, and nothing else.
+
+## Services every network shares
+
+These are boring until they break, and then everything looks broken at once.
+
+| Service | What it does | What happens when it fails |
+|---|---|---|
+| **DNS** | Turns names into addresses; an internal zone holds private names | "The network is down" is often "DNS is down" |
+| **DHCP** | Hands out addresses and settings to devices | New devices cannot connect; existing ones keep working until their lease ends |
+| **NTP** | Keeps clocks in agreement | Logs do not line up, certificates look expired, Kerberos-style logins fail |
+| **PKI** | Issues and revokes certificates so devices, servers and people can prove who they are | Expired internal certificates are a classic cause of an outage on a quiet morning |
+| **Directory / identity** | The list of people and devices | Nobody can sign in |
+
+This project has the minimum: the baseline firewall allows outbound DNS and NTP on its five narrow rules, and the cloud provides DHCP-like address assignment itself.
+
+## Proxies, secure web gateways, SASE and SSE
+
+Outbound traffic is controlled too. A **forward proxy** sits between users and the internet and can log or block. A **secure web gateway (SWG)** is the modern version: it inspects web traffic by category, malware and policy. **SASE** (secure access service edge) is an industry term for combining wide-area networking (SD-WAN) with security delivered from the cloud; **SSE** (security service edge) is the security half of that without the WAN part. The [landscape page](Small-Example-Enterprise-Landscape.md#remote-access-ztna-sse-and-the-vpn) names Zscaler, Netskope and Palo Alto's Prisma Access as examples. The definitions are industry usage and vendors market overlapping bundles, so check what a given product actually includes before comparing two of them.
+
+## Why flat networks fail
+
+1. **Lateral movement.** An attacker who lands on one machine tries to reach the next. Without internal boundaries, the first foothold is the whole network.
+2. **Blast radius.** A worm, ransomware or a misconfigured backup job spreads at the speed of the network.
+3. **Unreadable rules.** If everything can talk to everything, nobody knows what depends on what, and so nobody dares tighten it.
+4. **No evidence.** With no boundaries there are no choke points to log. You cannot answer "did anything talk to the payroll server last Tuesday?"
+
+Segmentation is not magic either. Each boundary is a rule set someone must own, review and test, and a segmented network with unexplained exceptions is a flat network with extra steps.
+
+## Worked comparison: one VPC with two connectors versus a hub-and-spoke landing zone
+
+| Question | In this project | In an enterprise |
+|---|---|---|
+| How many networks? | One VPC, `10.78.0.0/24`, one region | Many VPCs or VNets across many accounts, regions and clouds, each with an owner |
+| How do networks join? | They do not; nothing to join | Each spoke attaches to a transit hub; the hub connects to on-premises by dedicated link and VPN |
+| Where is traffic inspected? | At each droplet's firewall, default deny inbound | Also at the hub: a shared firewall or inspection layer that all spoke-to-spoke and spoke-to-internet traffic passes |
+| Who may reach a server? | One named group, via Twingate, on one port | A mix: ZTNA for people, private links for systems, rules written as groups and tags |
+| Address plan | One range, checked by hand against the home network | An address plan (IPAM), non-overlapping blocks assigned per spoke |
+| Shared services | Provider DNS and NTP, nothing else | Central DNS resolvers, a directory, PKI, logging and monitoring in a shared-services spoke |
+| Outbound to the internet | Baseline: five narrow rules. The connectors also carry the connector firewall, which allows outbound TCP 30000 to 31000 and UDP on any port to any destination (Twingate needs it for peer-to-peer), so their effective outbound is broader than the baseline. Direct, no proxy | Through a proxy or SWG, often via the hub |
+| Change | A pull request, plan, human confirm | The same, often plus a change ticket, a network team's review and a maintenance window |
+| Cost | About 12 dollars a month for the connectors | Link fees, hub data-processing charges and licences are a real budget line |
+| What breaks first | An expired token or a rule too narrow | Overlapping ranges, an asymmetric route, a rule nobody can explain, a certificate nobody renewed |
+
+A hub-and-spoke landing zone is the **same four ideas** as this repository, repeated: a boundary around each workload, default deny, a way in that is not an open port, and everything described as code. It adds two: a place where policy is centralized, and an address plan so that joining stays possible. If this project grew a second region, the first step would be the same modules again (see [Multiple sites and identity](Multiple-Sites-and-Identity.md)); the hub only appears when the number of networks makes pairwise links impractical.
+
+## Predict, then check
+
+Answer these before reading the reference answers.
+
+1. A branch office has a router and an internet line. Headquarters wants all of the branch's traffic to reach a data center securely. Name two ways, and say which one needs extra work to be encrypted.
+2. A company has 12 VPCs and wants any VPC to reach any other. How many point-to-point links does a full mesh need, and how many attachments does a hub need?
+3. Two networks to be joined both use `10.0.0.0/16`. What is the first problem and what are two ways out?
+4. A contractor's laptop is plugged into a conference-room port. With 802.1X in place, what happens before the laptop gets any network access?
+5. In this repository, which of the segmentation techniques above is already present, and which is deliberately absent?
+
+### Reference answers
+
+1. An IPsec VPN tunnel from branch gateway to the data center (encrypted by design), or a carrier private circuit such as MPLS (private, but not automatically encrypted, so encryption is an add-on that depends on the contract). GRE alone is not encryption either.
+2. A full mesh of 12 networks needs 12 x 11 / 2 = 66 links; a hub needs 12 attachments, one per VPC.
+3. Routing cannot tell them apart. Options: renumber one side (the clean answer, but costly if hosts are static), or translate addresses (NAT) at the join, which works but complicates troubleshooting. Prevention is an address plan.
+4. The port allows only authentication traffic until the laptop (or the person) proves who it is to an authentication server; the result may then place it on a guest VLAN, a corporate VLAN, or nowhere.
+5. Present: micro-segmentation by tag (the firewalls attach to workload tags) and default deny. Absent on purpose: VLANs, VRFs, a DMZ, NAC, a hub; there is one network and nothing public to isolate.
+
+## Try it yourself
+
+- Draw this project's network the way an enterprise diagram would: a spoke with a firewall zone, an "internet" cloud, and a Twingate controller outside. Mark every arrow north-south or east-west.
+- Pick a private range for a pretend second region and write down the rule that would stop you picking an overlapping one.
+- Look up the "landing zone" or "hub and spoke" reference architecture on one cloud provider's own architecture centre. List what it has that the diagram above does not, and decide which items would still be overkill at two machines.
+- Read the glossary entries for the terms in the segmentation table and write one sentence for each in your own words.
+
+## Claims register
+
+Status is one of: `Verified <date>` (checked against the named source on that date), `General knowledge` (widely held industry usage, not checked here), or `UNVERIFIED`.
+
+| Claim | Status | Source |
+|---|---|---|
+| AWS Direct Connect links your network to a Direct Connect location over Ethernet fibre, with virtual interfaces to public services or to a VPC, bypassing internet service providers in the path | Verified 2026-10-16 | https://docs.aws.amazon.com/directconnect/latest/UserGuide/Welcome.html |
+| Direct Connect has private, public and transit virtual interface types, and requires BGP on the customer device | Verified 2026-10-16 | https://docs.aws.amazon.com/directconnect/latest/UserGuide/Welcome.html |
+| NIST SP 800-207 (August 2020) describes zero trust as moving defences from fixed network perimeters toward users, assets and resources, and says network location does not by itself grant trust | Verified 2026-10-16 | https://csrc.nist.gov/pubs/sp/800/207/final |
+| Azure ExpressRoute and Google Cloud Interconnect are the Azure and Google equivalents of a dedicated cloud link | General knowledge | not checked |
+| A private circuit is not automatically encrypted | General knowledge | not checked; the landscape page makes the same point |
+| Campus access/distribution/core and data center spine-and-leaf descriptions | General knowledge | not checked |
+| SASE and SSE definitions | General knowledge | industry usage; vendors differ |
+| Full mesh of n networks needs n(n-1)/2 links | General knowledge | arithmetic |
+| SD-WAN products use IPsec between sites | UNVERIFIED | varies by product |
+
+Next: [Enterprise infrastructure differences](Enterprise-Infrastructure-Differences.md). Back to the [Reading order](Reading-Order.md).

+ 1 - 0
docs/wiki/Home.md

@@ -14,6 +14,7 @@ The full tables, with page order, time estimates and checkpoints, are on **[Read
 | Security-minded | [Threat model exercise](Threat-Model-Exercise.md) | [Security and threat modelling](Reading-Order.md#security-and-threat-modelling): [Threat model](Threat-Model.md), [Threat Dragon exercise](Threat-Dragon-Exercise.md) |
 | Hearing "change ticket", "CAB" or "freeze" at work | [Enterprise change management for beginners](Enterprise-Change-Management-for-Beginners.md) | What those words mean, and why this project uses none of them |
 | Wondering how a company would do this, or how it would be watched | [A small example: the enterprise landscape](Small-Example-Enterprise-Landscape.md) | [Detection, Wazuh and the landscape](Detection-and-Monitoring-Wazuh-and-the-Landscape.md) |
+| Wanting the enterprise side: corporate networks, infrastructure, identity, and the careers around them | [Enterprise networks](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md) | [Enterprise infrastructure](Enterprise-Infrastructure-Differences.md), [identity and secrets at scale](Enterprise-Identity-and-Secrets-at-Scale.md), [careers and what to learn next](Careers-Roles-and-What-to-Learn-Next.md) |
 | Wanting to understand cloud telemetry, run more than one site, or build a small cloud SOC (unverified drafts) | [Cloud telemetry: what and why](Cloud-Telemetry-What-and-Why.md) | [Multiple sites](Multiple-Sites-and-Identity.md), [the trust boundary](Telemetry-Crosses-the-Trust-Boundary.md), [reading a dashboard](Reading-a-Dashboard-as-an-Operator.md), then [build your own mini SOC](Build-Your-Own-Mini-SOC.md) |
 | Curious how AWS, Azure and GCP differ (unverified drafts) | [Why the clouds differ](Why-the-Clouds-Differ.md) | [Other clouds](Reading-Order.md#other-clouds-unverified-drafts): AWS, then Azure, then GCP |
 | Looking something up | [Glossary](Glossary.md), [Troubleshooting index](Troubleshooting-Index.md) | [Settings reference](Settings-Reference.md), [Terraform reference](Terraform-Reference.md) |

+ 9 - 5
docs/wiki/Reading-Order.md

@@ -13,7 +13,7 @@ Pick the row that sounds like you. Every path is a numbered list: read in that o
 | [Understand the design](#understand-the-design) | An engineer who wants the design without the primers. | 11 | about 1 h 30 min of reading |
 | [Security and threat modelling](#security-and-threat-modelling) | A security-minded reader. | 4 | about 0 h 50 min of reading |
 | [Detection and monitoring](#detection-and-monitoring) | Someone asking how it would be watched, and who wants to build a small version. | 8 | about 1 h 55 min of reading |
-| [Enterprise context](#enterprise-context) | A reader who wants to know how companies run changes, and what this project does instead. | 1 | about 0 h 30 min of reading |
+| [Enterprise context](#enterprise-context) | A reader who wants to see how companies build networks, run infrastructure and handle identity, how they run changes, and what roles and skills surround that work. | 5 | about 1 h 30 min of reading |
 | [Other clouds (unverified drafts)](#other-clouds-unverified-drafts) | A multi-cloud reader (unverified drafts). | 10 | about 2 h 15 min of reading |
 | [Reference](#reference-look-things-up) | Anyone, at any point. | 7 | lookup, not read through |
 
@@ -121,15 +121,19 @@ Nothing on these pages is deployed. The cloud hosts do not ship logs anywhere ye
 
 ## Enterprise context
 
-**Who it is for.** A reader who will meet change tickets, CABs and freeze calendars at work and wants the vocabulary, and an honest account of which of it this project does not use.
+**Who it is for.** A reader who will meet corporate networks, landing zones, identity providers, change tickets and vaults at work and wants the vocabulary, an honest account of what this project does instead, and a map of the roles and skills around it. These pages are orientation, not design guides: claims checked against a vendor page are dated, the rest is marked as general knowledge or UNVERIFIED.
 
-**Before you start.** The core path through step 6 (pull requests) and, ideally, Trace one change end to end.
+**Before you start.** The core path through step 13 (DigitalOcean network and firewalls) and step 17 (Doppler and secrets), and [A small example: the enterprise landscape](Small-Example-Enterprise-Landscape.md).
 
 | # | Page | Read | Checkpoint |
 |---|---|---|---|
-| 1 | [Enterprise change management for beginners (not used in this project)](Enterprise-Change-Management-for-Beginners.md) | 30 min | You can classify a change as standard, normal or emergency, and name three enterprise controls this project does not have. |
+| 1 | [Enterprise networks: campus, branch, data center and cloud](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md) | 15 min | You can say what a hub-and-spoke landing zone adds to this project's one VPC, and why a flat network fails. |
+| 2 | [Enterprise infrastructure: how large organizations run it differently](Enterprise-Infrastructure-Differences.md) | 15 min | For each section you can say what this project does instead and when that would stop being fine. |
+| 3 | [Enterprise change management for beginners (not used in this project)](Enterprise-Change-Management-for-Beginners.md) | 30 min | You can classify a change as standard, normal or emergency, and name three enterprise controls this project does not have. |
+| 4 | [Enterprise identity and secrets at scale](Enterprise-Identity-and-Secrets-at-Scale.md) | 15 min | You can name where this project's Doppler, Spacelift and Twingate model scales and where it breaks. |
+| 5 | [Careers, roles and what to learn next](Careers-Roles-and-What-to-Learn-Next.md) | 15 min | You can name three roles that fit your interests and the next three rungs of your own skills ladder. |
 
-Doing, not just reading: the page ends with five predict-then-check exercises; the time above is reading only.
+Doing, not just reading: each page ends with a predict-then-check set; the times above are reading only, rounded up to 5 minutes (the change management page is about 26 minutes at 200 words a minute, so 30; the others are 10 to 15).
 
 ## Other clouds (unverified drafts)
 

+ 24 - 1
docs/wiki/Small-Example-Enterprise-Landscape.md

@@ -6,6 +6,8 @@ Everything in this repository is a deliberately small example: two $6 machines,
 
 An enterprise answers the same questions this project answers, usually with different products, often several at once, because it has thousands of people, hundreds of offices and applications, auditors, contracts, and a decade of decisions it cannot undo. If you leave this wiki thinking "the cloud security stack is Twingate, Doppler, Spacelift and DigitalOcean," you have learned the example, not the field.
 
+The deeper pages on this are [Enterprise networks](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md), [Enterprise infrastructure](Enterprise-Infrastructure-Differences.md), [Enterprise identity and secrets at scale](Enterprise-Identity-and-Secrets-at-Scale.md) and [Careers, roles and what to learn next](Careers-Roles-and-What-to-Learn-Next.md).
+
 The better thing to take away is the **list of questions**. Each section below names a question this project answers with one tool, says what a larger organization may use for the same question, and says what stays the same whichever product answers it.
 
 Two honest limits first:
@@ -74,6 +76,20 @@ What stays the same, whichever you pick:
 - Every consumer gets the **least** it needs, and a way to rotate it.
 - A machine proves *who it is* to the store without a secret that is itself long-lived and powerful, when the platform allows it. The best answer to "where do I keep the first secret?" is not to have one, and the second best is to keep it small and expiring.
 
+### Doppler is used in enterprises too
+
+Say it plainly: this project uses Doppler, and Doppler is not only a hobbyist tool. Its own documentation addresses developers, DevOps and platform teams, and security teams, and describes features aimed at larger organizations. That is a statement about what the vendor documents, not an endorsement and not a claim about how many companies use it, which this page has not verified. What the documentation describes, retrieved 2026-10-16 from [docs.doppler.com](https://docs.doppler.com):
+
+- **Environments and configs.** A project holds environments and configs, with branch configs and config inheritance, so development, staging and production hold different values.
+- **Service tokens.** A service token gives access to one config in one project, is read-only by default and can be given an expiry. This is the token type this project uses.
+- **Service accounts and OIDC.** Service accounts tie machine activity to the account rather than a person, and OIDC identities let a CI tool authenticate without a static token. Both are listed as requiring the Team or Enterprise plan.
+- **Roles and groups.** Custom roles for workplace and project permissions (standard on the Enterprise plan or an add-on to Team), and user groups for project access at scale.
+- **SSO and SCIM.** SAML SSO and SCIM provisioning, with guides for identity providers such as Okta, Microsoft Entra ID, JumpCloud and OneLogin. The plan requirements were not stated on the pages read, so confirm them.
+- **Audit logs.** An activity log entry for team actions. Retention and export were not stated on the page read.
+- **Integrations.** Syncs to cloud secret stores (AWS Secrets Manager, Azure Key Vault, GCP Secret Manager), hosting platforms, CI/CD services, Kubernetes and Terraform Cloud.
+
+How that compares: Vault-class tools are known for dynamic, per-request credentials and can be self-hosted, at the price of running them; each cloud's own secrets service is closest to the workloads on that cloud; Bitwarden Secrets Manager and Infisical are the other names already on this page. This page does not rank them. Plans, features and prices change; check the vendor before relying on any line above. The long version, including where this project's Doppler, Spacelift and Twingate model scales and where it breaks, is [Enterprise identity and secrets at scale](Enterprise-Identity-and-Secrets-at-Scale.md).
+
 Choosing a secrets manager is a decision about your team and your platform. Switching later is harder than choosing well, which is a reason to keep the names and shapes of your secrets tidy from the start.
 
 ## Change and delivery
@@ -90,6 +106,13 @@ Be honest with yourself about what this project does not teach, because it is ea
 - **Integration.** Real environments are mostly the glue between products that were never designed for each other.
 - **Legacy.** Something old, important and undocumented is always in the way.
 
+## Where to go deeper
+
+- Networks (campus, branch, data center, cloud, segmentation, hub and spoke): [Enterprise networks](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md).
+- Accounts, guardrails, FinOps, images, IaC at scale, recovery, vendors: [Enterprise infrastructure](Enterprise-Infrastructure-Differences.md).
+- Identity providers, provisioning, privilege, workload identity, vaults: [Enterprise identity and secrets at scale](Enterprise-Identity-and-Secrets-at-Scale.md).
+- The people who do this work and what to learn next: [Careers, roles and what to learn next](Careers-Roles-and-What-to-Learn-Next.md).
+
 ## Turning this into your own learning
 
 - Pick one row of the first table. Read the vendor's public documentation for two products in that category and write down, in your own words, which part of the question each answers differently from the tool used here. Do not look at a comparison article first; form your own view, then compare.
@@ -97,4 +120,4 @@ Be honest with yourself about what this project does not teach, because it is ea
 - Look at a job description for a cloud or security engineer. Highlight every product name. For each, find which row or rows of the table it answers, and which of its capabilities are separate products or licences. Many will not fit one row, which is the point: products are portfolios and the questions are what stay put.
 - If you work somewhere that uses several of these, ask the person who runs one how it ended up there. The history is usually more instructive than the feature list.
 
-Next: [Detection, Wazuh and the landscape](Detection-and-Monitoring-Wazuh-and-the-Landscape.md), step 2 of the detection track. Back to the [Reading order](Reading-Order.md).
+Next: [Detection, Wazuh and the landscape](Detection-and-Monitoring-Wazuh-and-the-Landscape.md), step 2 of the detection track. For the enterprise context track, continue with [Enterprise networks](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md). Back to the [Reading order](Reading-Order.md).

+ 4 - 0
docs/wiki/_Sidebar.md

@@ -75,7 +75,11 @@ The [Threat model](Threat-Model.md) is core step 19.
 <details>
 <summary><b>Enterprise context</b></summary>
 
+- [Enterprise networks: campus, branch, data center, cloud](Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md)
+- [Enterprise infrastructure differences](Enterprise-Infrastructure-Differences.md)
 - [Enterprise change management for beginners (not used here)](Enterprise-Change-Management-for-Beginners.md)
+- [Enterprise identity and secrets at scale](Enterprise-Identity-and-Secrets-at-Scale.md)
+- [Careers, roles and what to learn next](Careers-Roles-and-What-to-Learn-Next.md)
 
 </details>
 

+ 142 - 0
tests/test_enterprise_context.py

@@ -0,0 +1,142 @@
+"""Checks for the four enterprise-context pages in docs/wiki/.
+
+These pages mix verified vendor claims with general industry knowledge, so the
+tests keep the mix honest: each page carries the orientation banner, links its
+neighbours, has a contrast table and a predict-then-check exercise, and every
+row of its claims register is either dated and sourced, general knowledge, or
+marked UNVERIFIED. The landscape page's Doppler section is held to the same rule.
+"""
+
+import ipaddress
+import itertools
+import re
+from pathlib import Path
+
+import pytest
+
+ROOT = Path(__file__).resolve().parent.parent
+WIKI = ROOT / "docs" / "wiki"
+
+PAGES = [
+    "Enterprise-Networks-Campus-Branch-Datacenter-Cloud",
+    "Enterprise-Infrastructure-Differences",
+    "Enterprise-Identity-and-Secrets-at-Scale",
+    "Careers-Roles-and-What-to-Learn-Next",
+]
+# Reading order of the whole Enterprise context section, including the page
+# written separately (change management), which has its own conventions.
+ORDER = [*PAGES[:2], "Enterprise-Change-Management-for-Beginners", *PAGES[2:]]
+BANNER = "Orientation, not a design guide: verified claims dated"
+LINK = re.compile(r"\]\(([A-Za-z0-9_-]+)\.md(?:#([^)]*))?\)")
+VERIFIED = re.compile(r"^Verified \d{4}-\d{2}-\d{2}$")
+OK_STATUS = (VERIFIED, re.compile(r"^General knowledge$"), re.compile(r"^UNVERIFIED$"))
+
+
+def text(name: str) -> str:
+    return (WIKI / f"{name}.md").read_text()
+
+
+def slug(heading: str) -> str:
+    heading = re.sub(r"[^\w\- ]", "", heading.strip().lower())
+    return heading.replace(" ", "-")
+
+
+def anchors(name: str) -> set[str]:
+    found = set()
+    for line in text(name).splitlines():
+        m = re.match(r"#{1,6}\s+(.*)", line)
+        if m:
+            found.add(slug(m.group(1)))
+    return found
+
+
+def register_rows(body: str) -> list[list[str]]:
+    """Rows of the table under '## Claims register'."""
+    section = body.split("## Claims register", 1)[1]
+    rows = []
+    for line in section.splitlines():
+        if line.startswith("|") and not re.match(r"^\|\s*-", line):
+            cells = [c.strip() for c in line.strip().strip("|").split("|")]
+            if cells[0] != "Claim":
+                rows.append(cells)
+    return rows
+
+
+@pytest.mark.parametrize("name", PAGES)
+def test_banner_prerequisites_and_next(name):
+    body = text(name)
+    assert BANNER in "\n".join(body.splitlines()[:4]), f"{name}: banner missing"
+    assert re.search(r"^\*\*Prerequisites:\*\* .*\]\(", body, re.MULTILINE)
+    assert re.search(r"^Next: .*\]\(", body, re.MULTILINE)
+
+
+@pytest.mark.parametrize("name", PAGES)
+def test_contrast_table_and_exercise(name):
+    body = text(name)
+    assert re.search(r"^\|.*In this project.*In (an enterprise|a company).*\|", body, re.MULTILINE), (
+        f"{name}: no 'In this project / In an enterprise' contrast table"
+    )
+    for needle in ("Predict, then check", "Reference answers", "Try it yourself"):
+        assert needle in body, f"{name}: missing {needle}"
+
+
+@pytest.mark.parametrize("name", PAGES)
+def test_every_claims_register_row_is_dated_general_or_unverified(name):
+    rows = register_rows(text(name))
+    assert len(rows) >= 5, f"{name}: claims register is too thin"
+    for row in rows:
+        assert len(row) == 3, f"{name}: bad register row {row}"
+        claim, status, source = row
+        assert any(p.match(status) for p in OK_STATUS), f"{name}: status {status!r} for {claim!r}"
+        if VERIFIED.match(status):
+            assert re.search(r"https://\S+", source), f"{name}: verified claim without a URL: {claim!r}"
+
+
+@pytest.mark.parametrize("name", PAGES)
+def test_every_wiki_link_and_anchor_resolves(name):
+    problems = []
+    for target, anchor in LINK.findall(text(name)):
+        if not (WIKI / f"{target}.md").exists():
+            problems.append(f"{target} (missing page)")
+        elif anchor and anchor not in anchors(target):
+            problems.append(f"{target}#{anchor} (missing anchor)")
+    assert not problems, f"{name}: {problems}"
+
+
+def test_next_lines_follow_the_chain():
+    for earlier, later in itertools.pairwise(ORDER):
+        line = re.search(r"^Next: .*$", text(earlier), re.MULTILINE).group(0)
+        assert f"({later}.md)" in line, f"{earlier}: Next should name {later}"
+
+
+def test_pages_are_in_sidebar_and_reading_order_under_enterprise_context():
+    for page, heading in (("_Sidebar", "Enterprise context"), ("Reading-Order", "## Enterprise context")):
+        body = text(page)
+        assert heading in body, f"{page}: no Enterprise context section"
+        links = [t for t, _ in LINK.findall(body)]
+        positions = [links.index(n) for n in ORDER]
+        assert positions == sorted(positions), f"{page}: pages out of order"
+    assert "Enterprise-Networks-Campus-Branch-Datacenter-Cloud.md" in text("Home")
+
+
+def test_landscape_page_says_doppler_is_used_in_enterprises_with_a_date():
+    body = text("Small-Example-Enterprise-Landscape")
+    section = body.split("### Doppler is used in enterprises too", 1)[1].split("\n## ", 1)[0]
+    assert re.search(r"retrieved \d{4}-\d{2}-\d{2}", section)
+    assert "docs.doppler.com" in section
+    assert "not an endorsement" in section
+    for page in PAGES:
+        assert f"({page}.md)" in body, f"landscape page does not point to {page}"
+
+
+@pytest.mark.parametrize("name", PAGES)
+def test_only_documentation_or_private_example_addresses_and_no_secret_shapes(name):
+    body = text(name)
+    ok_nets = [ipaddress.ip_network(n) for n in ("192.0.2.0/24", "198.51.100.0/24", "203.0.113.0/24", "10.0.0.0/8")]
+    for ip in re.findall(r"\b\d{1,3}(?:\.\d{1,3}){3}\b", body):
+        try:
+            addr = ipaddress.ip_address(ip)
+        except ValueError:
+            continue
+        assert any(addr in net for net in ok_nets), f"{name}: address outside example ranges"
+    assert not re.search(r"dop_(v1|pt|st)_|AKIA[0-9A-Z]{12,}|-----BEGIN", body), f"{name}: secret-shaped literal"