Architecture
Six layers, strict dependency rules
The platform is built as layers. Each depends only on the layers beneath it. Independent pieces stay compatible because the contracts between layers are fixed before build begins.
Two golden rules: a layer never depends on anything above it (so a rebuild can never deadlock), and logic is generic while specifics live in data files (so moving to different hardware means editing inventory, not rewriting roles).
Tech stack
Proven, open, pinned
Every tool is a design-level choice, stated openly. Only the deployment data behind them is private. Dependencies are pinned by digest or version and tracked against upstream releases within defined windows.
| Layer | Tool | Role |
|---|---|---|
| L0–L1 | Proxmox VE | Hypervisor — headless install via PXE, all workloads virtualised |
| L2 | pfSense | Firewall and network policy engine — rules generated from code |
| L0–L5 | Ansible + Vault | IaC engine — playbooks, roles, encrypted secrets (ansible-vault) |
| L3 | CIS Benchmarks | Host hardening via ansible-lockdown, continuous compliance scanning |
| L4 | Authentik | Identity provider — MFA, SSO (phased rollout), lifecycle management |
| L4 | HashiCorp Vault | Secrets management, internal PKI and certificate authority |
| L4–L5 | Podman / Docker | Container runtimes — images scanned and deployed by digest |
| L4 | Wazuh + Suricata | SIEM and network intrusion detection — survives failover |
| CI | GitHub Actions + GHCR | Automation, container registry — off-platform, publicly auditable |
| CI | Trivy | Image and IaC vulnerability scanning in CI |
Assurance frameworks mapped (not just cited): UK Secure by Design, CIS Benchmarks, OWASP Top 10, and MITRE ATT&CK + ATLAS.
Repository architecture
Three-repo split
The pattern, the deployment data, and the evidence each live in a separate repository. This boundary is load-bearing: it enforces the public/private separation and ensures compliance evidence survives a full rebuild.
Public pattern
Roles, playbooks, templates, documentation, CI workflows. Contains pattern only — no addresses, secrets, or deployment specifics.
publicPrivate overlay
Host inventory, network data, encrypted secrets (ansible-vault). Layered at a gitignored path over the pattern repo.
privateEvidence store
Gate output, scan results, compliance records. Stored off-platform so the record survives a full reroll.
private · off-platformBuild sequence
Foundations first, services last
The build is strictly sequenced: each phase depends on the one before it. The same sequence is drilled as the disaster-recovery reroll — if it rebuilds unattended, the design is proven.
Amber steps are verification gates — the sequence stops on failure rather than proceeding. Destructive steps are double-gated: an explicit confirmation flag and an environment lock that refuses to run against the wrong target.
Quality gates
Every change is scanned before merge
CI checks are required, not advisory. A red check blocks the pull request from merging. No human override, no fast lane.
Security model
Deny by default, prove continuously
The network is divided into isolated zones. No zone talks to another unless a written rule allows that specific flow. Rules are generated from a single policy source, applied to both the primary and standby appliance.
CIS hardening gates every merge
Hosts are benchmarked on every change. Live hosts are re-scanned on schedule — drift raises an alert and writes to the evidence record.
Identity lifecycle
MFA mandatory for privileged access. Recorded approval, quarterly review, offboarding that provably removes every key — from one authoritative access file.
Secrets encrypted at rest
Ansible-vault for deployment secrets. HashiCorp Vault for runtime secrets and internal PKI. Automated leak checks guard the public repo.
External control plane
Apply-credentials live off-platform. Changes push from an admin workstation. Compromising the platform does not grant the keys to it.
Zone names describe roles; the full model and per-flow rules live in the policy source. Deployment specifics are intentionally not published.
Adoption
Two paths to stand this up
The pattern is designed for reuse. Pick the path that fits how you intend to run it.
Overlay-nested recommended
Keep the pattern upstream. Layer a private overlay (inventory, secrets) at a gitignored path. You receive upstream fixes and the public/private boundary stays clean. Best for long-lived deployments.
Template fork
Use "Use this template" to generate a private copy and edit in place. Simpler for a single lab, but you diverge from upstream. The copy must stay private.
Success criteria
Measured, not asserted
Twelve-month targets drawn from the specification. Each has a concrete test.
| Promise | How it is proven |
|---|---|
| Rebuilds unattended | Scheduled reroll drills complete with no manual step beyond declared power actions |
| Hardening holds | CIS post-audit gate blocks a merge on control failure; drift caught by scheduled live scans |
| Evidence is credible | Evidence pack passes review by an assessor independent of the author |
| Pattern is portable | Stood up at least once on non-reference hardware by inventory swap alone |
| Policy breaks are caught | An intentional policy break fails the automated checks as designed |