Software Engineering

Platform Engineering: Building an Internal Developer Platform

Deciding you need a platform is the easy part. This practical guide covers how to build an internal developer platform: the reference architecture, the build-versus-buy decisions, a minimum viable platform, and the mistakes that make developers route around it.

By EthicalHat Research · · 3 min read
Infographic: The planes of an internal developer platform

Last year, platform engineering went from a niche idea to a mainstream priority. Many organisations now have a platform team, or plan to create one. The next question is harder: what exactly should that team build, and in what order?

This guide is a practical answer based on platforms we have helped design and build.

A reference architecture

Most mature internal developer platforms (IDPs) can be described as five planes. The terminology varies, but the responsibilities do not.

flowchart TB
  subgraph DCP["Developer control plane"]
    Portal[Portal / catalogue]
    CLI[CLI]
    Spec[Workload spec in repo]
  end
  subgraph IDP["Integration & delivery plane"]
    CI[CI pipelines] --> Reg[(Image registry)]
    Reg --> CD[GitOps / CD]
  end
  subgraph RP["Resource plane"]
    K8s[Kubernetes]
    DB[(Managed databases)]
    MQ[Queues & caches]
  end
  subgraph OP["Observability plane"]
    Tel[Logs, metrics, traces]
  end
  subgraph SP["Security plane"]
    Sec[Secrets, identity, policy]
  end
  DCP --> IDP --> RP
  RP --> OP
  SP -.-> IDP
  SP -.-> RP
  • Developer control plane: how developers interact with the platform: a portal, a CLI, templates and a workload specification that lives with the code.
  • Integration and delivery plane: CI pipelines, artefact registries, deployment (often GitOps) and environment promotion.
  • Resource plane: the infrastructure workloads run on and depend on, such as clusters, databases, queues, storage and DNS.
  • Observability plane: logs, metrics, traces, dashboards and alerting, wired up automatically.
  • Security plane: secrets management, workload identity, policy enforcement and scanning.

Build the thinnest viable platform

The most common failure is trying to build all five planes before anyone uses them. Instead:

  1. Pick the most common workload. For many organisations that is "a stateless HTTP service in our main language, with a Postgres database".
  2. Map the current journey from "I need a new service" to "it is serving traffic in production". Time each step and note every ticket, wait and manual action.
  3. Automate that journey end to end as one golden path, even if parts of it are rough.
  4. Onboard two or three friendly teams, collect feedback and iterate.
  5. Only then expand to other workload types and more self-service capabilities.

Workload specifications

A powerful pattern is to let developers describe what their workload needs in a small file next to their code, and let the platform decide how to provide it in each environment:

yaml
# platform.yaml, owned by the service team
service: invoice-api
owner: team-billing
runtime: java17
port: 8080
tier: 2
resources:
  database:
    type: postgres
    size: small
  queue:
    type: sqs
exposure: internal

The platform translates this into Kubernetes manifests, Terraform or Crossplane resources, pipeline configuration, dashboards and alert rules. Developers do not need to write any of those directly, and the platform team can improve them for everyone at once.

Composing, not reinventing

Most of the capabilities already exist as good tools. The platform's value is in composing them with sensible defaults:

CapabilityCommon choices
Portal and catalogueBackstage, Port, or a lightweight internal site
Templates / scaffoldingBackstage templates, Cookiecutter, internal CLI
Infrastructure provisioningTerraform modules, Crossplane compositions
DeliveryGitHub Actions, GitLab CI, Argo CD, Flux
SecretsVault, cloud secret managers, External Secrets Operator
PolicyOPA Gatekeeper, Kyverno, cloud policies
ObservabilityOpenTelemetry, Prometheus, Grafana, vendor platforms

Write custom code where your organisation is genuinely different, such as your approval flows, your cost allocation or your compliance evidence, not where a mature tool already exists.

Security as a platform feature

A platform is the most effective place to improve security for every team at once:

  • Templates start secure: non-root containers, network policies, dependency and image scanning, and least-privilege IAM.
  • Secrets are never pasted: workloads receive credentials through workload identity or a secrets operator.
  • Policy guardrails block dangerous configurations (public buckets, privileged pods) with clear, actionable error messages.
  • Compliance evidence is automatic: the platform records who deployed what, when, with which approvals and scan results.

Crucially, a secure default only helps if developers use the platform. Security teams should treat developer experience as a security control.

Mistakes to avoid

  • Building a portal before the plumbing. A beautiful catalogue in front of manual processes adds little.
  • Mandating adoption too early. If the platform is not better than what teams have, they will resent it.
  • Hiding everything. Developers still need to debug. Provide escape hatches and visibility into what the platform generated.
  • No product management. Without user research, roadmaps and documentation, platforms drift towards what the platform team finds interesting.
  • Ignoring day two: upgrades, deprecations and migrations across hundreds of services need to be a platform capability too.

Measuring success

Useful measures include:

  • time from "new service" to first production deploy,
  • percentage of services on the golden path,
  • DORA metrics (deployment frequency, lead time, change failure rate and time to restore) for teams on the platform,
  • number of platform support requests per team, and
  • developer satisfaction surveys.

The bottom line

An internal developer platform is a product whose customers are your own engineers. Build it iteratively around the journeys they repeat most, compose proven tools, and make the secure, reliable way the path of least resistance.

Our secure SDLC and DevSecOps teams build internal platforms, from golden-path templates to full self-service environments.

EthicalHat Research

The EthicalHat research team: penetration testers, SOC analysts and engineers writing about security, software engineering and AI.

Want an expert opinion on your own systems?

Email info@ethicalhat.com or call +1-844-838-4422. Our security engineers are happy to talk it through.