Capstone: Enterprise DevOps — Internal Developer Platform
Lesson opener
In one line: The capstone assembles twenty-eight artefacts from business baseline through executive scorecard into one reviewable IDP design pack for the Northline scenario.
Why it matters: An Internal Developer Platform is not a CI/CD pipeline—it is an engineering product that changes how an organisation builds and operates software. Designing it poorly produces a tool teams avoid; designing it without governance produces a security liability; designing it without observability and reliability engineering produces a system that cannot defend its own SLO. Every artefact here connects to one you built in earlier lessons.
Before this lesson: All prior lessons in this course: Source Control & Collaboration, CI/CD Pipelines, Testing & Quality Gates, Containerisation & Docker, Kubernetes & Managed Runtimes, Infrastructure as Code, Deployment Strategies, Security in the Pipeline, Observability: Metrics, Logs, Traces & Alerts, Reliability Engineering & Incident Management, DevSecOps, Governance & Platform Operations.
Cross-domain references: Cybersecurity Foundations, Network & Cloud Security, Cloud Security for Data & AI, Security Architecture & Governance, Scalability, Reliability & Resilience, Security Architecture & Governance (SAD), Architecture Communication & Decision Making, Real-Time Data Engineering: Analytics & Monitoring, LLMOps: Observability, Tracing & Operational Dashboards, LLMOps: Production Deployment & Reliability, LLMOps: Governance, Operations & Incident Response, MLOps: Monitoring & Drift, Cloud Data & AI Engineering Capstone.
What you will be able to do
- Assemble all twenty-eight artefacts of an IDP design pack, consistent with one another across every section.
- Trace a business requirement from Artefact 1 (business problem) through the delivery chain to Artefact 26 (executive scorecard).
- Use the scoring rubric to evaluate a peer's pack and identify the artefact where the gap exists.
- Complete the self-review checklist before presenting to a review board.
- Explain the assembly chain and why each artefact depends on earlier ones.
Deliverable: the 28-artefact IDP design pack for the Northline Internal Developer Platform, with a scoring rubric, a self-review checklist, and a teacher walkthrough of the assembly order.
Prerequisites
| Prerequisite | Why it matters here |
|---|---|
| DevSecOps, Governance & Platform Operations | Platform ownership, service catalogue, policy-as-code, and DX metrics (Artefacts 20, 23, 24). |
| Reliability Engineering & Incident Management | Error budgets, incident playbook, PIR, and CAPA (Artefacts 16, 18, 19). |
| Observability: Metrics, Logs, Traces & Alerts | SLIs/SLOs, alerting, and dashboards (Artefacts 15, 16, 17). |
| Deployment Strategies | Deployment and rollback (Artefacts 13, 14). |
| Infrastructure as Code | IaC approach (Artefact 11). |
| Kubernetes & Managed Runtimes | Orchestration and runtime (Artefact 10). |
| Containerisation & Docker | Container architecture (Artefact 9). |
| Security in the Pipeline | Security scanning and SBOM (Artefacts 7, 8). |
| Testing & Quality Gates | Testing and quality (Artefact 6). |
| CI/CD Pipelines | CI pipeline (Artefact 5). |
| Source Control & Collaboration | Source control and branching (Artefacts 3, 4). |
Plain English
A DevOps design pack is the document a platform team delivers to an architecture review board and to engineering leadership. It is not a slide deck. It is a connected set of artefacts where every decision traces to its implication in cost, risk, security, reliability, and delivery. The review board's job is to challenge it; the platform team's job is to make every question answerable from the pack.
An Internal Developer Platform (IDP) is a product—built and operated by the platform team—that abstracts infrastructure complexity away from product teams and provides self-service, compliant, observable, and secure delivery capabilities. A successful IDP reduces cognitive load, accelerates delivery, and enforces governance without requiring teams to become infrastructure experts.
Component identifiers (Northline IDP)
All twenty-eight artefacts use these identifiers so a reviewer can trace any component from architecture through risk register to cost line.
| ID | Component |
|---|---|
| C-01 | GitHub Enterprise (source control) |
| C-02 | GitHub Actions + EKS self-hosted runners (CI engine) |
| C-03 | Test automation framework (Jest, pytest, k6) |
| C-04 | Security scanning (Semgrep, Snyk/Grype, OWASP ZAP, Checkov) |
| C-05 | Artifact registry (AWS ECR for images; AWS CodeArtifact for packages) |
| C-06 | Kubernetes cluster (AWS EKS, multi-tenant, three namespaces per team) |
| C-07 | Infrastructure-as-Code engine (Terraform + Atlantis) |
| C-08 | Secrets manager (HashiCorp Vault, External Secrets Operator) |
| C-09 | Observability stack (Prometheus, Grafana, Jaeger, Loki) |
| C-10 | Incident management (PagerDuty on-call + Jira Service Management) |
| C-11 | Developer portal (Backstage) |
| C-12 | Cost and capacity dashboard (Kubecost + AWS Cost Explorer) |
Assembly chain
Design and document artefacts in this order. Later artefacts depend on earlier ones.
Business Need (1) → Stakeholders (2) → Source Control (3) → Branching Policy (4) → CI Pipeline (5) → Testing Gates (6) → Security Scanning (7) → Artifact Management (8) → Container Architecture (9) → Orchestration (10) → IaC Approach (11) → Env/Config Strategy (12) → Deployment Strategy (13) → Rollback/Kill-Switch (14) → Observability (15) → SLIs/SLOs (16) → Alerting (17) → Incident Response (18) → Backup/DR (19) → Platform Security (20) → Cost/Capacity (21) → Risk Register (22) → Developer Self-Service Catalogue (23) → Adoption Metrics (24) → Roadmap (25) → Executive Scorecard (26) → Scoring Rubric (27) → Self-Review Checklist (28)
Teacher walkthrough: assembly order
- Business context first. Artefact 1 defines the problem in measurable terms. Every subsequent artefact serves it.
- Stakeholders before architecture. Artefact 2 names who owns what. Unowned decisions become incidents at 3 a.m.
- Source control and branching before pipelines. Artefacts 3 and 4 are the foundation. The pipeline (5) enforces what branching policy (4) defines.
- CI before testing gates. Artefact 5 is the runner; Artefact 6 is what it validates.
- Security scanning and artifact management together. Artefacts 7 and 8 are interdependent: the scan produces the signed artefact; the registry stores it with its SBOM.
- Container architecture before orchestration. Artefact 9 defines the image model; Artefact 10 defines how the cluster uses it.
- IaC and config strategy together. Artefact 11 provisions the infrastructure; Artefact 12 manages what runs on it.
- Deployment before rollback. Artefact 13 defines how to release; Artefact 14 defines how to undo it. They are designed simultaneously.
- Observability before SLIs/SLOs. Artefact 15 builds the instrumentation; Artefact 16 defines what is measured and at what target.
- Alerting after SLOs. Artefact 17 is derived from Artefact 16; alerts without SLOs are guesswork.
- Incident response after alerting. Artefact 18 is the response to an Artefact 17 alert; it cannot be designed without knowing what fires it.
- Backup/DR after incident response. Artefact 19 defines the recovery capability that incident response uses.
- Platform security after the rest. Artefact 20 controls the platform defined in Artefacts 3–19.
- Cost after architecture. Artefact 21 requires knowing which components exist (C-01 through C-12).
- Risk register after architecture and cost. Artefact 22 requires knowing the architecture and the cost to assess risk.
- Developer catalogue and adoption metrics after the platform is designed. Artefacts 23 and 24 describe and measure the platform.
- Roadmap after all design decisions. Artefact 25 sequences delivery within a cost and risk envelope.
- Executive scorecard last. Artefact 26 summarises the pack; it cannot be written before the pack.
- Rubric and self-review before presenting. Artefacts 27 and 28 are applied by the team before the review board meeting.
The 28 Artefacts — Northline IDP Design Pack
Artefact 1: Business Problem and Baseline
Scenario: Northline Retail Logistics
Northline operates retail distribution for 800 stores across the UK. Fifteen engineering teams (≈ 120 engineers) build and maintain 200+ microservices. Each team runs its own CI/CD pipeline with no consistency in security scanning, testing standards, or deployment practices.
Baseline measurements (Q3 2026 before IDP):
| Metric | Baseline | Industry benchmark (DORA Elite) |
|---|---|---|
| Mean time to deploy (commit to production) | 4 days | < 1 hour |
| Deployment frequency | Weekly (some teams monthly) | Multiple per day |
| Change failure rate | 22 % | < 5 % |
| Mean time to restore (MTTR) | 6 hours | < 1 hour |
| Critical/high CVE remediation time | 45 days | < 7 days |
| Developer NPS | 28 | > 60 |
| % of services with a runbook | 18 % | > 90 % |
| % of services with an SLO | 6 % | > 80 % |
| Security incidents traced to pipeline misconfiguration | 4 in 12 months | 0 |
Business problem statement: Northline cannot safely deliver features at market pace. The current state produces slow, inconsistent, insecure delivery across all 15 teams. The cost is measurable: four security incidents, 22 % change failure rate, and 6-hour mean time to restore. The opportunity: an IDP that standardises delivery, enforces policy automatically, and provides observability and reliability engineering for all teams.
Target outcomes (12 months):
| Metric | Target |
|---|---|
| Mean time to deploy | < 1 hour |
| Deployment frequency | Daily for Tier 2; multiple per day for Tier 1 |
| Change failure rate | < 5 % |
| MTTR | < 1 hour |
| Critical/high CVE remediation time | Critical < 24 h; high < 7 days |
| Developer NPS | > 60 |
| % of services with a runbook | 100 % (enforced at onboarding) |
| % of services with an SLO | 100 % (enforced at onboarding) |
| Security incidents from pipeline | 0 |
Artefact 2: Stakeholders and Ownership
| Role | Name (illustrative) | Responsibility | RACI |
|---|---|---|---|
| Executive sponsor | CTO | Budget and strategic direction for IDP | Accountable |
| Platform lead (product manager for IDP) | Priya K. | IDP roadmap, team onboarding, DX metrics | Responsible |
| Platform engineering lead | Dev R. | Technical design and delivery of IDP components | Responsible |
| Security lead | Arjun M. | Security policy, audit, and CVE programme | Responsible (for platform security); Consulted for all artefacts |
| Engineering managers (15 teams) | — | Team adoption, resource allocation | Consulted |
| Finance / FinOps lead | — | Cost allocation, reserved-instance commitments | Consulted |
| Compliance / audit | — | Policy review, audit log access | Consulted |
| Product engineering teams (15) | — | Users of the IDP; onboard services | Informed |
Platform team size: 6 engineers (2 platform SREs, 2 platform engineers, 1 security engineer, 1 developer experience engineer).
Escalation path: Platform engineer → Platform lead → Platform engineering lead → CTO. Security incidents escalate directly to Arjun M. (security lead) and the CTO.
Accountability principle: Automation does not transfer ownership. When a pipeline runs a security scan, the platform team owns the pipeline; the product team owns the service it scans. When an automated rollback fires, a named engineer must verify the system is healthy and own the decision to restore. No artefact in this pack is owned by "the system."
Artefact 3: Source-Control Workflow
Platform: GitHub Enterprise, hosted on-premises with AWS CodeConnector for Actions runners.
Repository model:
- Mono-team-repo: each team owns one or more repositories; the platform owns
platform/repositories for IaC, policies, and the developer portal. - Inner source: teams may raise pull requests to other teams' public repositories; the owning team reviews and merges.
- Platform repositories (owned by platform team):
platform/iac,platform/policy,platform/backstage,platform/pipeline-templates.
Workflow:
- All development work in a feature branch off
main. - PR raised → automated CI runs → required reviewers approve → merge.
- Merge to
maintriggers deployment pipeline to staging. - Deployment to production requires a tagged release or a manual promotion gate for Tier 1 services.
- No direct pushes to
mainorproductionbranches (protected via GitHub branch protection rules). - All commits signed with a developer GPG key (enforced via branch protection).
Audit: every commit carries the author, the GPG signature, and the PR number that approved it. The GitHub audit log flows to the centralised audit log platform (C-09) with 1-year retention.
Artefact 4: Branching and Review Policy
| Branch | Purpose | Protected? | Required reviews | Merge strategy |
|---|---|---|---|---|
main | Integration branch; triggers staging deploy | Yes | 1 (codeowner) + passing CI | Squash (preserves atomic unit per PR) |
feature/* | Development work | No | — | — |
release/v* | Production release candidate | Yes | 2 (tech lead + platform SRE) | Merge commit (preserves history) |
hotfix/* | Emergency production fix | Yes | 1 (tech lead) + expedited CI | Merge commit |
Review policy:
- Every PR must pass the full CI pipeline (Artefact 5) including security gates.
- PRs modifying
platform/policy/require the platform security team as a required codeowner reviewer. - PRs with > 500 lines changed must be split or require explicit justification in the PR description.
- Stale PRs (no activity for 7 days) are flagged by a bot; authors are responsible for rebasing or closing.
- Emergency (hotfix) PRs still require one human review; the process is expedited, not bypassed.
Artefact 5: CI Pipeline
Engine: GitHub Actions with EKS self-hosted runners (C-02). Runner isolation: each job runs in an ephemeral pod; pods are destroyed after the job completes. No state persists between runs except what is written to the artefact registry (C-05).
Pipeline stages:
| Stage | Tool | Gate (fail condition) |
|---|---|---|
| Secret scan | Detect-Secrets, GitLeaks | Any high-confidence secret pattern detected |
| SAST | Semgrep (OWASP ruleset + custom rules) | Any high-severity finding |
| Dependency scan (SCA) | Snyk / Grype against lock files | Any CVSS ≥ 9 (critical) finding; ≥ 7 (high) flagged but does not block by default (see Artefact 22, Risk R-04) |
| Build | Docker multi-stage build | Build failure |
| Container scan | Grype against built image | Any CVSS ≥ 9 finding |
| SBOM generation | Syft (SPDX format) | Always runs; failure is a pipeline failure |
| Image signing | Cosign with Sigstore keyless (OIDC-bound) | Signing failure |
| Unit + integration tests | pytest / Jest (see Artefact 6) | Any test failure |
| IaC scan | Checkov against Terraform plans | Any HIGH-severity Checkov policy failure |
| Manifest policy check | OPA against Kubernetes manifests | Any violation of policies in platform/policy/ |
| Push to registry | AWS ECR (C-05) | Push failure |
| Smoke test (staging) | pytest smoke suite against staging endpoint | Any test failure |
Pipeline as code: the pipeline is defined in .github/workflows/deploy.yml in each service repository, using a reusable workflow template from platform/pipeline-templates. Teams may extend the template but may not remove stages. Removing a required stage is a policy violation (POL-006) and blocks the PR.
Authentication: GitHub Actions uses OIDC federation to assume an AWS IAM role scoped to the specific repository and environment. No long-lived AWS credentials exist in GitHub secrets.
Artefact 6: Testing and Quality Gates
Test pyramid:
| Layer | Scope | Tool | Gate |
|---|---|---|---|
| Unit | Single class or function | pytest / Jest | 100 % of tests must pass; < 80 % line coverage fails the build |
| Integration | Two or more components with real dependencies (Docker Compose) | pytest | 100 % must pass |
| Contract | API contract between services (consumer-driven) | Pact | Any contract broken between registered consumer and provider |
| Performance (staging only) | p95 latency and throughput under synthetic load | k6 | p95 latency > 1.2 × SLO threshold or error rate > 0.5 % |
| Smoke (post-deploy) | Critical user journey against deployed environment | pytest smoke suite | Any step failure blocks promotion |
Quality gates (blocking):
- Test pass rate: 100 %. No partial failure tolerated.
- Code coverage: minimum 80 % line coverage for services in Tier 1 and Tier 2 (measured by
coverage.pyorc8). Enforced by a coverage bot comment on the PR; drops block merge. - SonarQube (or equivalent): no new Critical or Blocker issues introduced by the PR. Technical debt threshold: the PR must not increase the debt ratio by more than 0.5 %.
Test data: integration and contract tests use synthetic data generated by a factory. No production data is used in any test environment. Test data containing simulated personal data is scrubbed after the test run completes. Test accounts are separate from production accounts.
Artefact 7: Security Scanning
Scan types and integration:
| Scan type | Tool | Stage | Fail threshold | Output |
|---|---|---|---|---|
| Secret scanning | Detect-Secrets + GitLeaks | Pre-commit + CI | Any high-confidence secret | Block commit / PR |
| SAST | Semgrep (OWASP Top 10, custom rules) | CI (PR) | HIGH severity | PR blocked |
| SCA (dependency) | Grype / Snyk | CI (PR) + nightly | CVSS ≥ 9 | Build blocked; CVSS 7–8 creates Jira ticket |
| Container scan | Grype against image | CI (post-build) | CVSS ≥ 9 | Build blocked |
| DAST | OWASP ZAP (API scan mode) | Post-deploy to staging | HIGH severity finding | Staging promotion blocked |
| IaC scan | Checkov | CI (against Terraform plan) | HIGH severity | Pipeline fails |
| Runtime anomaly | Falco | Production runtime | Anomaly rule match | Alert to PagerDuty (C-10) |
SBOM programme:
- Syft generates SPDX-format SBOM for every image build.
- SBOM is stored as an OCI artefact attached to the image in ECR (C-05) with the same digest as the image.
- A nightly job (C-04) correlates all SBOMs in the registry against the current CVE feed (NVD + vendor advisories). New findings create Jira tickets in the
SECURITYproject with the vulnerability, CVSS score, affected component, affected services (traced via SBOM), and required remediation date. - SBOM portal: Backstage (C-11) exposes a per-service SBOM view and a fleet-wide "critical CVE exposure" count.
Image signing:
- Cosign signs every image that exits the CI pipeline after a successful scan, using keyless signing (OIDC-bound to the GitHub Actions workflow identity).
- Gatekeeper
ImagePolicyin the cluster (C-06) requires a valid Cosign signature from the Northline CI identity. Unsigned images are rejected at admission.
Artefact 8: Artifact Management
Registry: AWS ECR (C-05) for container images; AWS CodeArtifact for internal Python packages and npm packages.
Tagging convention: {registry}/{service}:{semver}-{git-sha-short}. The latest tag is never used in staging or production manifests (enforced by POL-004 in the cluster's Gatekeeper policies).
Retention policy:
| Artefact type | Retention |
|---|---|
| Production images (deployed) | 90 days after last deployment; pinned releases retained 1 year |
| Non-production images (feature branches) | 14 days |
| SBOMs (attached to images) | Same retention as the image they describe |
| Internal packages | 1 year; deprecated packages marked in Backstage catalogue |
Immutability: ECR image tags are immutable (the latest tag is not used; every tag is a specific version). CodeArtifact packages are version-pinned in all lock files; yanked versions are not automatically removed from existing lock files (teams must update explicitly).
Access: developers may pull images for local development. Push access to ECR is restricted to the CI pipeline IAM role. No developer has push access to production registries.
Artefact 9: Container Architecture
Base image strategy: all Northline services use one of three approved base images maintained by the platform team:
northline-base-python:3.12-slim(Debian slim + minimal Python runtime)northline-base-node:20-slim(Debian slim + Node.js)northline-base-jvm:21-slim(Eclipse Temurin JRE)
Base images are rebuilt weekly (automated pipeline in platform/iac). Critical CVEs trigger an immediate rebuild. When a base image is rebuilt, Dependabot (configured for container manifests) raises PRs to all service repositories that use it; teams must merge within the patching SLA.
Multi-stage builds: all Dockerfiles use multi-stage builds. The build stage installs build tools; the runtime stage copies only the compiled artefact. Build tools (compilers, test runners, pip, npm ci) do not appear in the production image.
Security defaults (all containers):
runAsNonRoot: true
runAsUser: 10001
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]These settings are enforced by Gatekeeper (Artefact 20). A pod that does not declare them is rejected at admission.
Image layers: layers are ordered from least-changed (OS packages) to most-changed (application code) to maximise build-cache reuse and minimise layer rebuild time.
Artefact 10: Orchestration and Runtime
Platform: AWS EKS (Kubernetes 1.31, managed node groups, Bottlerocket OS on nodes). Three clusters: development, staging, production.
Multi-tenancy model: each team gets three namespaces (one per environment on the cluster matching that environment). Namespace-level NetworkPolicies (Calico) enforce that pods in one team's namespace cannot communicate with pods in another team's namespace except via approved service-mesh routes (AWS App Mesh).
Resource management:
- Every pod must declare CPU and memory requests and limits (enforced by POL-003 in Gatekeeper).
- LimitRange objects set namespace-level defaults and maximum values.
- Vertical Pod Autoscaler (VPA) in recommendation mode: platform team reviews VPA recommendations monthly and raises PRs to update manifests.
- Cluster Autoscaler provisions and deprovisions EC2 nodes within defined min/max bounds.
- Spot instances for non-production clusters; on-demand + savings plan for production.
Kubernetes version policy: the platform team upgrades the EKS cluster within 30 days of a new minor release reaching general availability. Teams receive 14 days' notice; breaking changes are documented in the platform changelog.
Runtime security: Falco DaemonSet runs on every node. Rules alert on shell spawned in a container, write to sensitive paths, outbound connection to an unapproved IP range, and privilege escalation attempts.
Artefact 11: IaC Approach
Tool: Terraform (OpenTofu compatible) with Atlantis for PR-based plan and apply.
Module structure:
platform/iac/modules/: reusable modules (EKS cluster, RDS, ECR repository, VPC, IAM role). Teams compose their infrastructure from approved modules; they cannot create arbitrary IAM policies without a platform-team review.platform/iac/environments/: environment-specific root modules (dev,staging,prod). Each environment is a separate Terraform workspace with a separate state file in an S3 backend with DynamoDB locking.services/{team}/{service}/iac/: service-level infrastructure (e.g., RDS instance, S3 bucket, SQS queue). Teams write Terraform in this directory; platform modules are the only way to provision compute and network resources.
Plan/apply workflow:
- Developer raises a PR with a Terraform change.
- Atlantis automatically runs
terraform planand posts the plan as a PR comment. - The plan is reviewed by a required reviewer (platform SRE for production changes; team lead for staging).
- On approval, Atlantis runs
terraform apply. The apply log is posted to the PR. - No one runs
terraform applylocally against production. Local applies are blocked by a Sentinel policy on the production workspace.
Drift detection: a nightly job runs terraform plan -detailed-exitcode on all workspaces. Any detected drift creates a Jira ticket in the PLATFORM project.
Tagging policy: all resources must have team, service, environment, and cost-centre tags (enforced by Checkov POL-TF-001). Resources without required tags are flagged in the nightly drift report.
Artefact 12: Environment and Configuration Strategy
Environments: development → staging → production. Promotion from staging to production requires: all CI stages passing, DAST scan clean, smoke tests passing, and for Tier 1 services a manual approval gate with IC sign-off.
Configuration management:
- Non-secret configuration (feature flags, timeout values, log levels) is stored in ConfigMaps and maintained in the service repository as Helm values files (one per environment).
- Secrets (API keys, database passwords, TLS private keys) are stored in Vault (C-08) and injected at pod startup by External Secrets Operator, which writes them to a tmpfs-backed Kubernetes Secret. The Secret is not logged and is not exported from the cluster.
- Feature flags: managed via a feature-flag service (LaunchDarkly or equivalent). Flags are the primary mechanism for releasing features to production without a code deployment.
- Configuration changes follow the same PR review process as code changes. No direct edits to production ConfigMaps via
kubectl.
Environment parity: the staging environment runs at 20–30 % of production scale but uses the same Kubernetes version, the same Vault configuration, and the same Terraform modules. Environment-specific differences are limited to instance sizes, replica counts, and external endpoints.
Artefact 13: Deployment Strategy
Default strategy by tier:
| Tier | Strategy | Promotion gate |
|---|---|---|
| Tier 1 (revenue-critical) | Blue/green via Argo Rollouts; automated SLO check at 10 % traffic, 50 %, 100 % | SLO error-budget burn rate < 1× at each step; IC approval for 100 % shift |
| Tier 2 (important) | Canary via Argo Rollouts; 5 % → 25 % → 100 % with automated SLO gate | SLO error-budget burn rate < 1× at each step |
| Tier 3 (internal) | Rolling update (Kubernetes default) | Smoke tests passing |
Argo Rollouts analysis:
- At each traffic step, an AnalysisRun queries Prometheus for the error rate and p95 latency over the last 5 minutes for the canary pods vs. the stable pods.
- If the error rate on the canary exceeds 1 % or p95 latency exceeds 1.2 × the SLO threshold, the rollout is automatically aborted and traffic is shifted back to stable.
- Aborted rollouts create a PagerDuty incident (SEV3 by default; escalated to SEV2 if the abort itself caused user impact).
Deployment frequency target: Tier 1 and Tier 2 services: daily deployments achievable; no batch deployments.
Artefact 14: Rollback and Kill-Switch
Rollback mechanisms (in order of preference and speed):
| Mechanism | Activates when | Time to effect | Automated? |
|---|---|---|---|
| Argo Rollouts automatic abort | SLO gate fails during canary step | < 30 s | Yes |
| Feature flag disable | Bug is in a feature-flagged code path | < 5 s (SDK propagation) | No (human decision) |
| Argo Rollouts manual rollback | IC calls rollback post-deployment | 1–3 min | No (human-initiated) |
kubectl rollout undo | No Argo Rollouts available (Tier 3) | 2–5 min | No |
IaC rollback (Terraform apply of previous state) | Infrastructure-level failure | 10–20 min | No |
| DNS failover to DR environment | Regional failure | 5–15 min (TTL-dependent) | Partially (Route 53 health checks) |
Kill-switch policy:
- Every Tier 1 and Tier 2 service must have at least one kill-switch mechanism (feature flag or Argo Rollouts abort) that can stop the problematic behaviour without a new deployment.
- Kill-switch activation is always a human decision. The IC must authorise it, the technical lead must execute it, and the communications lead must update the status page within 5 minutes.
- After a kill-switch activation, the service is treated as in an active SEV2 incident until root cause is identified and a fix is deployed.
Rollback testing: every new service goes through a rollback rehearsal in staging before its first production deployment. The rehearsal is documented in the PIR log.
Artefact 15: Observability
Stack: Prometheus (metrics) + Loki (logs) + Jaeger (traces) + Grafana (dashboards), deployed in the platform-observability namespace with dedicated node groups. All telemetry flows to this centralised stack; teams do not run their own observability infrastructure.
Instrumentation requirements (enforced at onboarding):
- Every service must expose a
/metricsendpoint in Prometheus format (Kubernetesannotations.prometheus.io/scrape: "true"on the pod). - Every service must emit structured JSON logs with
trace_id,span_id,service,version,environmenton every line. - Every service must instrument HTTP server and client spans with OpenTelemetry. Language SDKs are provided by the platform team as Docker image layers and Helm chart defaults.
- Correlation IDs (
traceparent) must be propagated in all HTTP and gRPC calls and in all message-queue message attributes.
Privacy controls:
- Log scrubbing middleware is included in every platform-provided base image. It redacts values matching patterns for card numbers, passwords, and national identity numbers before the log line is emitted.
- Trace attribute scrubbing is configured in the OpenTelemetry Collector to remove
http.request.header.authorization,http.request.body., and any attribute key matchingpasswordortoken*. - Logs and traces containing PII beyond what is required for accountability are treated as a SEV3 security incident.
Dashboard tiers: executive (C-12 cost view + SLO compliance per service in Backstage), service health (four golden signals + burn-rate chart per service in Grafana), and debug (per-endpoint histograms + trace samples in Grafana + Jaeger).
Artefact 16: SLIs and SLOs
Platform-level SLOs (owned by platform team):
| Service | SLI | SLO | Window | Error budget |
|---|---|---|---|---|
| CI pipeline | Proportion of pipeline runs completing successfully within 15 min | 99 % | 30 days | 7.2 h |
| Secrets manager (C-08) | Proportion of secret reads completing in < 100 ms | 99.9 % | 30 days | 43 min |
| Developer portal (C-11) | Proportion of HTTP requests returning 2xx within 2 s | 99.5 % | 30 days | 3.6 h |
| Artifact registry (C-05) | Proportion of image push/pull operations completing within 60 s | 99.9 % | 30 days | 43 min |
Product-service SLOs (template; each team owns their own):
| SLI type | Measurement point | Default SLO target | Minimum acceptable |
|---|---|---|---|
| Availability | API gateway (non-health-check HTTP 2xx or 4xx) | 99.5 % over 30 days | 99.0 % |
| Latency | p95 at API gateway | 99 % of minutes < service-defined threshold | p95 < 1 s |
| Error rate | 5xx rate at API gateway | < 0.5 % of requests | < 1 % |
Error budget policy (all services):
| Budget remaining | Mandatory action |
|---|---|
| > 50 % | Normal release cadence |
| 25–50 % | Platform SRE notified; one reliability work item per sprint |
| < 25 % | Engineering manager approval required for new Tier 1/2 deployments |
| Exhausted | Feature freeze; incident declared if not already open |
SLO targets and error budget status for every service are visible in Backstage (C-11) and in the executive scorecard (Artefact 26).
Artefact 17: Alerting
Alert strategy: burn-rate alerting (Google SRE Workbook pattern) for all SLO-backed alerts. No raw-threshold alerts for user-facing behaviour.
Standard alert rules (platform-provided Prometheus recording rules and alert rules, in platform/policy/alerts/):
| Alert name | Condition | Severity | Action |
|---|---|---|---|
SLOBurnRateHigh | Burn rate ≥ 14.4× over 1-hour window | SEV2 | PagerDuty page to primary on-call |
SLOBurnRateWarn | Burn rate ≥ 6× over 6-hour window | SEV3 | PagerDuty notification to secondary |
PodRestartLoop | Pod restarts ≥ 5 in 10 minutes | SEV3 | PagerDuty notification |
NodeDiskPressure | Node disk > 85 % | SEV2 | PagerDuty page to platform SRE |
CertificateExpiryImminent | TLS cert expires in < 14 days | SEV2 | PagerDuty page to platform SRE |
VaultSealDetected | Vault health endpoint returning non-200 | SEV1 | Immediate PagerDuty page; IC activated |
RegistryPushFailure | ECR push failure rate > 1 % over 5 min | SEV2 | Platform SRE notified |
FalcoSecurityAnomaly | Any Falco HIGH rule match | SEV2 | Security lead notified + PagerDuty |
Alert routing: PagerDuty escalation policy per team; primary → secondary → engineering manager at 5-minute steps for SEV1; 15-minute steps for SEV2. Platform SRE owns platform component alerts.
Runbook links: every alert rule carries a runbook_url annotation linking to the relevant runbook in Backstage (C-11). Runbooks are owned by the team responsible for the alerted service.
Synthetic monitoring: Grafana synthetic monitoring (or Prometheus Blackbox Exporter) runs external HTTP probes every 60 seconds against all Tier 1 and Tier 2 service health endpoints and against the Backstage developer portal. Probe failures fire SLOBurnRateHigh if sustained for > 3 minutes.
Artefact 18: Incident Response
Incident command model:
| Role | Owner | Responsibility |
|---|---|---|
| Incident Commander (IC) | Primary on-call engineer | Declares severity, assigns tasks, calls recovery, owns the timeline |
| Communications lead | Engineering manager on rotation | Status page, stakeholder notifications, external communications |
| Technical lead | Subject-matter expert (assigned by IC) | Root cause diagnosis, fix design and execution |
Incident channel protocol:
- SEV1/SEV2: a Slack channel
#inc-YYYY-MM-DD-{slug}is created automatically by the PagerDuty–Slack integration when a SEV1/SEV2 incident is declared. - IC posts a status update every 15 minutes.
- All external communications go through the communications lead. Engineers do not communicate directly with stakeholders during an incident.
Incident lifecycle targets:
| Phase | SEV1 target | SEV2 target |
|---|---|---|
| Detection to severity declaration | < 5 min | < 15 min |
| Severity to containment | < 30 min | < 60 min |
| Containment to recovery | < 60 min | < 4 h |
| Recovery to PIR meeting scheduled | < 4 h | < 24 h |
| PIR document completed | < 5 working days | < 5 working days |
PIR policy: mandatory for SEV1 and SEV2. Optional (but encouraged) for SEV3. The PIR document uses the template from Artefact 10 of Reliability Engineering & Incident Management. All CAPA items are tracked in the RELIABILITY Jira project.
Automation and human accountability: PagerDuty automatically creates the incident, creates the Slack channel, and sends the status page notification. A named IC must acknowledge within 5 minutes (SEV1) or 15 minutes (SEV2) or the escalation policy escalates to the secondary. Every recovery decision requires IC sign-off. Automated rollback (Argo Rollouts abort) is a containment action, not a recovery; the IC must still verify the system state and declare recovery.
Artefact 19: Backup and Disaster Recovery
RTO / RPO targets by tier:
| Tier | RTO | RPO |
|---|---|---|
| Tier 1 (revenue-critical) | 30 minutes | 5 minutes |
| Tier 2 (important) | 4 hours | 1 hour |
| Tier 3 (internal) | 24 hours | 24 hours |
Backup strategy:
| Data store | Backup type | Frequency | Retention | Location |
|---|---|---|---|---|
| RDS PostgreSQL (Tier 1) | Automated snapshot + WAL shipping to read replica | Continuous (WAL); daily snapshot | 30 days (snapshots); continuous (replica) | Same region primary; cross-region snapshot to eu-west-1 |
| RDS PostgreSQL (Tier 2) | Automated snapshot | Hourly | 30 days | Same region; nightly cross-region export |
| ECR images | Registry replication | On push | 90 days (production) | eu-west-1 primary; eu-central-1 replica |
| Terraform state (S3) | S3 versioning + cross-region replication | On every apply | 1 year | eu-west-1 primary; eu-central-1 replica |
| Vault data | Vault Raft snapshot | Hourly | 30 days | S3 with delete protection + cross-region replication |
| Kubernetes etcd (EKS) | EKS managed backup (Velero + S3) | Daily | 30 days | Separate S3 account |
Restore testing schedule:
- Tier 1 databases: quarterly restore test (full restore from snapshot into a clean RDS instance; measure RTO vs. target; document result in
docs/restore-test-log.md). - Vault: monthly snapshot restore test.
- etcd: quarterly Velero restore test into a dev cluster.
- First restore test for each data store must be completed before the service's first production deployment.
DR runbook: the DR runbook is version-controlled in platform/iac/dr/ and linked from Backstage. It is reviewed and validated at each quarterly restore test. Any step that fails during a restore test is treated as a SEV3 finding and creates a CAPA item.
Artefact 20: Platform Security
IAM model:
| Principal | Access | Credentials | Rotation |
|---|---|---|---|
| CI runner (GitHub Actions) | Push to ECR; deploy to EKS staging/prod (separate roles); Vault read for pipeline secrets | OIDC-federated; no long-lived key | N/A (time-limited tokens per job) |
| Application pod | Read from own Vault path; access to own RDS; publish to own SQS queue | Kubernetes service account (IRSA) | Automatic (Vault leases, 1-hour TTL) |
| Platform SRE | Admin on platform namespaces; read on team namespaces; break-glass on team namespaces with audit | AWS SSO with MFA; short-lived credentials | 8-hour session; daily re-auth |
| Developer | Pull from ECR; read from dev namespace; no production access by default | AWS SSO with MFA | 8-hour session |
| Break-glass | Temporary production write access | Separate role; requires approval in PagerDuty + audit log entry | Expires after 4 hours; triggers security-team notification |
Policy-as-code (OPA/Gatekeeper) policies in production:
| Policy ID | Description | Effect |
|---|---|---|
| POL-001 | No root containers (runAsNonRoot: true) | Admission reject |
| POL-002 | No privileged containers | Admission reject |
| POL-003 | Resource limits required (CPU + memory) | Admission reject |
| POL-004 | No :latest image tag | Admission reject |
| POL-005 | Images from approved ECR registry only | Admission reject |
| POL-006 | Valid Cosign signature from Northline CI identity | Admission reject |
| POL-007 | No host network or host PID | Admission reject |
| POL-008 | NetworkPolicy must exist in namespace | Admission reject (namespace-level) |
Audit logging: all Kubernetes API server events, CloudTrail events, Vault audit events, and application-level payment/authentication events flow to OpenSearch with 1-year retention and delete protection. Anomaly rules: > 5 failed API server auth attempts per identity per 10 minutes; any access to a production secret from an unapproved IP.
Vulnerability programme KPI: % of critical CVEs resolved within 24 hours; % of high CVEs resolved within 7 days. Reported monthly to engineering leadership.
Artefact 21: Cost and Capacity
Cost allocation model: all AWS resources are tagged with team, service, environment, and cost-centre (enforced by Checkov, Artefact 11). Kubecost allocates Kubernetes resource cost by namespace (proxy for team). Monthly showback report is generated automatically and emailed to each team lead and engineering manager.
Current cost baseline (illustrative, Q3 2026 pre-IDP):
- Total AWS spend: £380,000/month (15 teams, unoptimised, fragmented pipelines).
- Estimated IDP target: £290,000/month (savings from consolidated runners, rightsizing, spot, and reserved instances).
Rightsizing guardrails:
- Gatekeeper enforces
requests.cpu ≤ limits.cpu × 4andrequests.memory ≤ limits.memory × 2(prevents over-requesting). - VPA recommendations reviewed monthly; teams that consistently run below 30 % CPU utilisation receive a Jira ticket with a recommended values update.
- Spot instances for all non-production node groups; on-demand + 1-year savings plan for production baseline; savings plan purchased centrally by FinOps team.
Capacity planning: Cluster Autoscaler min/max nodes are reviewed quarterly. A load test runs in staging each quarter using k6 to validate that the autoscaler can scale to peak-quarter traffic within 5 minutes.
FinOps guardrails:
- Infracost runs on all Terraform PRs; changes adding > £5,000/month to the bill require FinOps lead approval.
- Idle resources (persistent volumes, ELBs unused for 14 days) are flagged by a nightly Lambda and deleted after a 14-day notification period.
- Chargeback is planned for Q2 2027 after showback has been running for two quarters.
Artefact 22: Risk Register
| ID | Risk | Likelihood | Impact | Mitigation | Owner | Residual risk |
|---|---|---|---|---|---|---|
| R-01 | Platform team becomes single point of failure | Medium | High | On-call rotation; runbooks in Backstage; bus-factor review quarterly | Platform lead | Medium |
| R-02 | EKS version upgrade breaks a team's workload | Low | High | 14 days' notice; staging validation required; platform changelog; Tier 1 rollback tested | Platform engineering lead | Low |
| R-03 | Vault outage blocks all deployments | Low | Critical | HA Vault cluster (3 nodes); DR snapshot to S3; fallback secret injection procedure documented | Platform SRE | Low |
| R-04 | High-severity CVE in a widely used dependency | High | High | SCA scan on every PR; nightly fleet scan; SBOM fleet query; patching SLA; CAPA for missed SLAs | Security lead | Medium |
| R-05 | Platform adoption remains low (teams use own pipelines) | Medium | Medium | DX metrics tracking; platform NPS; mandatory adoption for Tier 1 services by Q1 2027 | Platform lead | Low–Medium |
| R-06 | CI runner compromise (supply chain) | Low | Critical | Ephemeral runner pods; OIDC (no static credentials); image signing; Falco runtime detection | Security lead | Low |
| R-07 | FinOps: unexpected cost spike | Medium | Medium | Budget alerts in AWS; Infracost gate on PRs; monthly showback | FinOps lead | Low |
| R-08 | GDPR: personal data in logs or traces | Medium | High | Scrubbing middleware in base images; trace attribute filter in OTel Collector; quarterly audit | Security lead | Low |
| R-09 | Chaos experiment causes unplanned production impact | Low | High | Experiments in staging only; IC approval + abort condition required; rehearsal protocol | Platform SRE | Low |
| R-10 | Key person dependency (platform lead) | Medium | Medium | Documentation in Backstage; quarterly knowledge-transfer sessions; succession plan | CTO | Medium |
Artefact 23: Developer Self-Service Catalogue
Platform: Backstage (C-11), deployed at https://platform.internal.northline.com.
Self-service capabilities:
| Capability | What it does | Time to complete |
|---|---|---|
| New service scaffolding | Creates repository from template, registers in Backstage, creates CI pipeline, creates dev namespace, creates Vault path | < 10 minutes |
| Environment provisioning (dev) | Provisions a new dev namespace with default policies and LimitRange | < 5 minutes |
| Secret creation | Creates a Vault path entry with appropriate IAM policy; approved by platform SRE via PR | < 24 hours (approval) |
| SLO configuration | Registers an SLO in the Prometheus recording rules and creates a Grafana dashboard | < 10 minutes (self-service form) |
| Runbook creation | Creates a runbook page in Backstage from a template; links to the service's alert rules | < 5 minutes |
| On-call rotation setup | Creates a PagerDuty service and escalation policy for the team | < 10 minutes |
| Cost showback view | Shows the team's current-month AWS and Kubernetes spend by service | Always available |
| SBOM viewer | Shows the SBOM for any deployed image in ECR; highlights active CVEs | Always available |
Service catalogue entry (required fields for all Tier 1 and Tier 2 services):
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: order-processing
description: Processes customer orders; validates inventory; charges payment gateway
annotations:
backstage.io/techdocs-ref: dir:.
pagerduty.com/service-id: PD-ORDS-01
prometheus.io/slo-dashboard: https://grafana.internal/d/order-slo
spec:
type: service
lifecycle: production
owner: orders-team
tier: tier-1
system: order-management
dependsOn:
- component:payment-gateway-client
- resource:orders-rds
providesApis:
- api:order-api-v2Catalogue completeness KPI: % of Tier 1/2 services with a complete Backstage entry (all required fields, valid runbook link, valid SLO dashboard link). Target: 100 %.
Artefact 24: Adoption Metrics
Measurement baseline: Q3 2026 (pre-IDP). Measurement cadence: monthly.
| Metric | Baseline (Q3 2026) | Target (Q3 2027) | Source |
|---|---|---|---|
| Services using IDP pipeline | 0 % | 100 % (Tier 1/2) | GitHub pipeline template usage |
| Deployment frequency (Tier 2) | Weekly | Daily | GitHub Actions deploy events |
| Change lead time | 4 days | < 1 hour | GitHub commit → PagerDuty deploy event |
| Change failure rate | 22 % | < 5 % | Argo Rollouts abort events / total deploys |
| MTTR | 6 hours | < 1 hour | PagerDuty incident resolved time |
| Critical CVE remediation | 45 days | < 24 h (critical), < 7 d (high) | Jira SECURITY project |
| Developer NPS | 28 | > 60 | Quarterly survey |
| Self-service adoption | — | > 80 % of onboardings self-served | Backstage + Jira (platform tickets) |
| Runbook coverage | 18 % | 100 % | Backstage catalogue completeness check |
| SLO coverage | 6 % | 100 % | Backstage + Prometheus recording rules |
Reporting: adoption metrics are reviewed in the monthly platform operations review. The platform lead presents a trend dashboard to engineering leadership. Metrics that are off-track generate a platform CAPA.
Artefact 25: Roadmap
Phases:
| Phase | Timeline | Deliverables | Success criterion |
|---|---|---|---|
| Phase 0: Foundation | Oct – Nov 2026 | C-01 to C-05 (source control, CI, testing, security scanning, registry) configured; first 2 teams onboarded; Backstage deployed | 2 teams using IDP pipeline; 0 CVE findings blocked post-scan |
| Phase 1: Orchestration & Deployment | Nov 2026 – Jan 2027 | C-06, C-07, C-08 (EKS, Terraform/Atlantis, Vault) deployed; deployment strategies (Artefact 13) implemented for all Tier 1 services; SLOs configured for all Tier 1 | All 5 Tier 1 services on IDP; rollback rehearsal completed for each |
| Phase 2: Observability & Reliability | Jan – Mar 2027 | C-09, C-10 (Prometheus/Grafana/Jaeger/Loki, PagerDuty) for all Tier 1/2 services; PIR template in use; DORA metrics visible | MTTR < 1 h for Tier 1; DORA dashboard live |
| Phase 3: Platform Security & Governance | Mar – May 2027 | OPA/Gatekeeper policies enforced; audit log centralised; SBOM fleet scan live; DX metrics reported | Policy compliance rate ≥ 98 %; CVE remediation SLA met for all critical |
| Phase 4: Full Adoption & Self-Service | May – Sep 2027 | All 15 teams onboarded; self-service catalogue complete; FinOps showback live; chargeback planned | 100 % adoption Tier 1/2; developer NPS > 60; cost target met |
| Phase 5: Continuous Improvement | Oct 2027 onwards | Quarterly DX survey; platform KPI review; chaos engineering programme; VPA / rightsizing cycle | All KPIs at or above target; platform NPS stable or improving |
Dependencies and risks: Phase 1 depends on EKS cluster provisioned by Phase 0 end. Phase 3 depends on audit log pipeline standing up in Phase 2. R-05 (low adoption) is the most likely risk to delay Phase 4.
Artefact 26: Executive Scorecard
Presented monthly to the CTO and engineering managers.
| Dimension | Metric | Status (Oct 2026) | Trend | Target (Sep 2027) |
|---|---|---|---|---|
| Delivery speed | Change lead time | 4 days | Baseline | < 1 hour |
| Delivery reliability | Change failure rate | 22 % | Baseline | < 5 % |
| Reliability | MTTR (Tier 1) | 6 hours | Baseline | < 1 hour |
| Security | Critical CVE remediation time | 45 days | Baseline | < 24 hours |
| Security | Security incidents from pipeline | 4 (last 12 months) | Baseline | 0 |
| Developer experience | Developer NPS | 28 | Baseline | > 60 |
| Platform adoption | % Tier 1/2 on IDP pipeline | 0 % | Baseline | 100 % |
| Cost | Monthly AWS spend | £380,000 | Baseline | £290,000 |
| Governance | Policy compliance rate | — | Not yet measured | ≥ 98 % |
| Observability | % of services with SLO | 6 % | Baseline | 100 % |
Narrative (October 2026): Phase 0 begins this month. All metrics are at baseline. The first two teams are scheduled for IDP onboarding by end of October. No pipeline security incidents have occurred since the IDP programme was announced; this will be tracked monthly going forward.
Key risks to flag: R-03 (Vault HA not yet deployed); R-05 (adoption dependent on team bandwidth). Both are tracked in the risk register with owners.
Artefact 27: Scoring Rubric
Each section is assessed at three levels. A complete pack must score at least Satisfactory on all sections and Excellent on at least half to be ready for a production review board.
| Artefact | Excellent | Satisfactory | Needs Work |
|---|---|---|---|
| 1: Business problem | Measurable baseline and targets; business case in financial or operational terms | Baseline described; targets stated | Vague problem statement; no measurement |
| 2: Stakeholders | Named owners; RACI per key decision; accountability principle stated | Key roles identified; escalation path present | "Team" as owner; no escalation path |
| 3: Source control workflow | Mono/poly repo decision justified; PR workflow; audit log routing documented | PR workflow described; audit mentioned | No workflow; ad hoc |
| 4: Branching policy | Branch model table; protection rules; emergency change path with human gate | Protected branches described | No protected branches; no review gate |
| 5: CI pipeline | All required stages; OIDC auth; ephemeral runners; reusable template | Core stages present; no static keys | Ad hoc pipeline; static credentials |
| 6: Testing gates | Test pyramid with gates; coverage threshold; no prod data in tests | Unit + integration; gates described | No coverage threshold; no gates |
| 7: Security scanning | All scan types; SBOM generated and linked to artefact; image signing | SAST + SCA; container scan | Secret scanning only; no SBOM |
| 8: Artifact management | Tagging convention; immutable tags; retention policy; access restricted to CI | Registry used; retention stated | Manual pushes; no retention policy |
| 9: Container architecture | Approved base images; multi-stage; all security defaults; weekly rebuild | Multi-stage; non-root | No security defaults; latest base |
| 10: Orchestration | Multi-tenancy; NetworkPolicy; resource limits; autoscaler; version policy | Namespaces; resource limits | No resource limits; no isolation |
| 11: IaC approach | Module structure; PR-based plan/apply; drift detection; tagging enforced | Terraform; PR review for prod | Ad hoc; manual apply; no state locking |
| 12: Env/config strategy | Secrets in Vault; config in ConfigMap; feature flags; env parity described | Secrets in secrets manager; envs described | Secrets in env vars or source code |
| 13: Deployment strategy | Tier-based strategy; Argo Rollouts; SLO gate; frequency target | Canary or blue/green for Tier 1; gate described | Rolling update only; no gate |
| 14: Rollback/kill-switch | Multiple rollback mechanisms; kill-switch policy; human accountability; rollback test | Rollback described; < 5 min time | Rollback is redeploy only; no time target |
| 15: Observability | All three pillars; correlation IDs; privacy scrubbing; three dashboard tiers | Metrics + logs; two dashboard tiers | No traces; no correlation ID |
| 16: SLIs/SLOs | SLI/SLO table; error budget; budget policy; platform and service level | SLO per service; budget stated | No SLO; target chosen arbitrarily |
| 17: Alerting | Burn-rate alerting; runbook links; synthetic monitoring; routing | SLO-based alerts; runbook links | Raw-threshold alerts; no routing |
| 18: Incident response | IC/comms/tech lead roles; channel protocol; lifecycle targets; PIR policy | Severity model; IC role; PIR required | No IC; no PIR policy |
| 19: Backup/DR | RTO/RPO by tier; 3-2-1 strategy; tested restore with documented result | RTO/RPO stated; backup schedule | RTO/RPO not tested; single copy |
| 20: Platform security | IAM model; OIDC; Gatekeeper policies listed; audit log; vuln programme | Least privilege; policy-as-code | Static credentials; no audit log |
| 21: Cost/capacity | Cost allocation model; rightsizing guardrails; FinOps guardrails; baseline vs target | Cost tagging; showback planned | No cost tracking; no tagging |
| 22: Risk register | ≥ 8 risks; likelihood + impact + mitigation + owner + residual risk | 5+ risks; mitigation and owner | < 5 risks; no owner |
| 23: Self-service catalogue | Backstage entry with all required fields; self-service capabilities listed with time | Backstage entry; key capabilities | No catalogue; wiki page only |
| 24: Adoption metrics | DORA + NPS + coverage; baseline and target; monthly cadence | DORA metrics; baseline and target | No baseline; no measurement cadence |
| 25: Roadmap | Phases with timeline, deliverables, success criterion; dependencies and risks | Phases with deliverables and timeline | Single list of tasks; no phases |
| 26: Executive scorecard | All dimensions; trend column; narrative; risks to flag | Key metrics; targets; narrative | Metrics without targets or narrative |
| 27: Scoring rubric | Three-level rubric for all 28 artefacts; applied before presenting | Three-level rubric for most artefacts | Not present; or present but not applied |
| 28: Self-review checklist | All checklist items completed; findings recorded | Most items completed; open items noted | Not completed |
Artefact 28: Self-Review Checklist
Complete this checklist before presenting the pack to a review board. Mark each item DONE, PARTIAL, or MISSING. Do not present if any critical item is MISSING.
Traceability
- [ ] Every component identifier (C-01 through C-12) appears in at least Artefacts 1, 9–11, 21, and 22.
- [ ] Every risk in Artefact 22 maps to a mitigation that references a specific artefact.
- [ ] Every SLO in Artefact 16 has a corresponding alert in Artefact 17 and a runbook entry linked from Artefact 17.
- [ ] Every deployment strategy (Artefact 13) has a rollback mechanism (Artefact 14) and a containment time target.
Security
- [ ] No static credentials appear anywhere in the pack.
- [ ] All IAM roles in Artefact 20 follow least privilege (no
*permissions). - [ ] Every secret store referenced in Artefact 12 uses a secrets manager (not environment variables or source code).
- [ ] SBOM generation and image signing are present in Artefact 7.
- [ ] Audit log retention is stated and is ≥ 90 days for security events.
- [ ] No policy in Artefact 20 can be disabled for performance reasons without a documented exception and owner.
Reliability
- [ ] RTO and RPO targets in Artefact 19 have been tested (not assumed). Test date and result are recorded.
- [ ] Error budget policy in Artefact 16 is documented and has a named owner.
- [ ] Rollback has a measured time-to-effect (Artefact 14) that is < 5 minutes for Tier 1.
- [ ] PIR policy in Artefact 18 is mandatory for SEV1/SEV2 and has a named owner per incident.
Privacy
- [ ] Log scrubbing is described in Artefact 15 and applies at the point of emission (not downstream).
- [ ] Trace attribute scrubbing is described in Artefact 15.
- [ ] No artefact describes logging or tracing being disabled for performance reasons.
- [ ] Test data (Artefact 6) does not include production personal data.
- [ ] Audit logs (Artefact 20) contain pseudonymised identifiers, not raw personal data beyond what accountability requires.
Governance and accountability
- [ ] Every artefact has a named owner (human, not "the team").
- [ ] Automated actions in Artefacts 13, 14, 17, and 18 each have a statement that human accountability is retained.
- [ ] Change governance matrix (Artefact 11) covers all four change types.
- [ ] Risk register (Artefact 22) has ≥ 8 risks with likelihood, impact, mitigation, and owner.
- [ ] Executive scorecard (Artefact 26) includes a narrative and a risks-to-flag section.
Completeness
- [ ] All 28 artefacts are present and written (not "TBD").
- [ ] Scoring rubric (Artefact 27) has been applied and results are recorded.
- [ ] All artefacts score at least Satisfactory in the rubric.
- [ ] At least 14 artefacts score Excellent in the rubric.
Worked example
The script below implements a self-review checker and a scoring summariser for the Northline IDP pack. It demonstrates how a team could automate the pre-presentation validation. All data is synthetic and deterministic.
# devops12_capstone_checker.py
# Automated self-review checker and rubric summariser for the Northline IDP pack.
# All data is illustrative.
CHECKLIST = [
# (item, critical, status) — status: True=DONE, False=MISSING, None=PARTIAL
("Every C-01..C-12 identifier present in Artefacts 1, 9-11, 21, 22", True, True),
("Every risk in A22 maps to a specific artefact mitigation", True, True),
("Every SLO has a corresponding alert and runbook link", True, True),
("No static credentials in the pack", True, True),
("All IAM roles follow least privilege (no * permissions)", True, True),
("All secrets in secrets manager (not env vars or source code)", True, True),
("SBOM generation and image signing present in A7", True, True),
("Audit log retention >= 90 days for security events", True, True),
("RTO/RPO tested and test result recorded", True, None), # PARTIAL
("Rollback time-to-effect < 5 min for Tier 1 (measured)", True, True),
("PIR mandatory for SEV1/SEV2 with named owner", True, True),
("Log scrubbing at emission (not downstream)", True, True),
("No logging or tracing disabled for performance", True, True),
("Test data excludes production personal data", True, True),
("Every artefact has a named human owner", True, True),
("Human accountability retained for automated actions", True, True),
("All 28 artefacts present and written (no TBD)", True, True),
("Scoring rubric applied; results recorded", False, True),
("Platform NPS survey planned (quarterly)", False, True),
("FinOps showback report scheduled (monthly)", False, None), # PARTIAL
]
RUBRIC_RESULTS = {
"1-Business problem": "Excellent",
"2-Stakeholders": "Excellent",
"3-Source control": "Excellent",
"4-Branching policy": "Excellent",
"5-CI pipeline": "Excellent",
"6-Testing gates": "Excellent",
"7-Security scanning": "Excellent",
"8-Artifact management": "Excellent",
"9-Container architecture": "Excellent",
"10-Orchestration": "Satisfactory",
"11-IaC approach": "Excellent",
"12-Env/config strategy": "Excellent",
"13-Deployment strategy": "Excellent",
"14-Rollback/kill-switch": "Excellent",
"15-Observability": "Excellent",
"16-SLIs/SLOs": "Excellent",
"17-Alerting": "Excellent",
"18-Incident response": "Excellent",
"19-Backup/DR": "Satisfactory",
"20-Platform security": "Excellent",
"21-Cost/capacity": "Satisfactory",
"22-Risk register": "Excellent",
"23-Self-service catalogue": "Excellent",
"24-Adoption metrics": "Excellent",
"25-Roadmap": "Satisfactory",
"26-Executive scorecard": "Excellent",
"27-Scoring rubric": "Excellent",
"28-Self-review checklist": "Excellent",
}
def run_checklist(checklist):
missing_critical = []
partial = []
for item, critical, status in checklist:
if status is True:
continue
if status is None:
partial.append((item, critical))
else:
if critical:
missing_critical.append(item)
return missing_critical, partial
def score_rubric(results):
counts = {"Excellent": 0, "Satisfactory": 0, "Needs Work": 0}
for v in results.values():
counts[v] += 1
all_pass = counts["Needs Work"] == 0
ready = all_pass and counts["Excellent"] >= 14
return counts, ready
# --- Run ---
missing, partial = run_checklist(CHECKLIST)
print("=== Northline IDP Design Pack — Pre-Presentation Self-Review ===")
print()
print(f"CHECKLIST RESULTS ({len(CHECKLIST)} items):")
if missing:
print(f" CRITICAL MISSING ({len(missing)} items) — do NOT present:")
for m in missing:
print(f" ✗ {m}")
else:
print(" All critical items: DONE")
if partial:
print(f" PARTIAL ({len(partial)} items) — resolve or accept with justification:")
for p, crit in partial:
tag = "[CRITICAL]" if crit else "[NON-CRITICAL]"
print(f" ~ {tag} {p}")
print()
counts, ready = score_rubric(RUBRIC_RESULTS)
print("RUBRIC SUMMARY:")
for level in ["Excellent", "Satisfactory", "Needs Work"]:
print(f" {level:15s}: {counts[level]:2d} artefacts")
print()
if ready:
print("VERDICT: READY FOR REVIEW BOARD")
else:
if counts["Needs Work"] > 0:
print("VERDICT: NOT READY — address 'Needs Work' artefacts first")
else:
print("VERDICT: NOT READY — fewer than 14 'Excellent' scores; strengthen weak artefacts")
print()
print("NEXT ACTION:")
if missing:
print(" Complete all CRITICAL MISSING checklist items before scheduling the review.")
elif partial:
print(" Resolve or document partial items; then the pack is ready for a review board.")
else:
print(" Pack is complete. Schedule the review board. Bring the risk register.")Expected output (deterministic with synthetic data above):
=== Northline IDP Design Pack — Pre-Presentation Self-Review ===
CHECKLIST RESULTS (20 items):
All critical items: DONE
PARTIAL (2 items) — resolve or accept with justification:
~ [CRITICAL] RTO/RPO tested and test result recorded
~ [NON-CRITICAL] FinOps showback report scheduled (monthly)
RUBRIC SUMMARY:
Excellent : 24 artefacts
Satisfactory : 4 artefacts
Needs Work : 0 artefacts
VERDICT: READY FOR REVIEW BOARD
NEXT ACTION:
Resolve or document partial items; then the pack is ready for a review board.The CRITICAL PARTIAL item ("RTO/RPO tested") means the restore test exists in the plan (Artefact 19) but the test has not yet been run. The pack is ready for review but the reviewer will ask for the test result. The team's answer should be: "Scheduled for [date]; we accept this as an open risk item in the risk register (R-03) with a mitigation owner."
Check your understanding
- A reviewer reads Artefact 14 (rollback) and finds no mention of who authorises the rollback—only that "Argo Rollouts will abort automatically." Which principle does this violate, and what should the artefact add?
- The risk register (Artefact 22) lists "EKS upgrade might break things" with no likelihood, impact, mitigation, or owner. Which rubric score does this earn, and what must the team add?
- A team's self-review checklist has "All secrets in secrets manager: DONE" but Artefact 12 describes secrets as environment variables passed from CI. Which score is correct and why?
- The executive scorecard (Artefact 26) shows MTTR improving from 6 hours to 4 hours. The team marks this as "Excellent." A reviewer says the number is not credible. What evidence should be attached to make the claim credible?
- A team completes 27 of the 28 artefacts and omits the self-review checklist (Artefact 28), arguing "we reviewed everything informally." Should the review board accept this pack? What is the cost of skipping the formal checklist?
- Artefact 15 states that debug-level logging is disabled in production "to reduce costs." Which checklist item does this fail, and what is the correct design decision?
Summary
| Artefact group | Covers | Key principle |
|---|---|---|
| 1–2: Context and ownership | Business problem, stakeholders | Every artefact has a named human owner. |
| 3–8: Delivery pipeline | Source control, CI, testing, security, artifacts | The safe path and the fast path are the same path. |
| 9–14: Infrastructure and deployment | Containers, orchestration, IaC, config, deploy, rollback | Human authorisation is retained for every automated action that affects production. |
| 15–18: Observability and incidents | Metrics/logs/traces, SLOs, alerting, incident response | SLOs drive prioritisation; incidents are managed by named roles, not heroics. |
| 19–20: Resilience and security | Backup/DR, platform security | RPO and RTO are measured, not assumed; audit logging is never disabled. |
| 21–22: Economics and risk | Cost/capacity, risk register | Cost is visible to teams; every risk has a mitigation and an owner. |
| 23–26: Platform operations | Catalogue, adoption, roadmap, scorecard | The IDP is a product; its success is measured by adoption and developer experience. |
| 27–28: Quality assurance | Rubric, self-review | Present only what you have verified; the checklist is the team's evidence of due diligence. |
The Northline IDP design pack is not a project plan—it is a living document. Phase delivery updates Artefacts 24 (adoption metrics) and 26 (scorecard) monthly. Every incident updates Artefact 22 (risk register) and potentially Artefacts 15–18 (observability and response). Every quarterly restore test updates Artefact 19. The pack is the team's accountability record to the organisation.