Building an Internal Developer Platform: From Chaos to Self-Service
Every growing engineering organization hits the same inflection point. The infrastructure team becomes a bottleneck. Developers submit tickets to get a new environment. They wait days for a database. They copy-paste Kubernetes manifests from other projects and hope for the best. The platform team burns out firefighting misconfigurations they did not create.
The answer is not “hire more DevOps engineers.” The answer is to build a platform that codifies your best practices into self-service workflows. An internal developer platform (IDP) does not replace your platform team — it multiplies their impact.
If you have been following this series, you already have most of the building blocks. Now it is time to assemble them.
What an IDP Actually Is
An IDP is not a product you buy. It is a set of tools, templates, and automation that abstracts infrastructure complexity behind developer-friendly interfaces. At its core, an IDP provides:
- Self-service provisioning: Developers create environments, databases, and services without filing tickets.
- Golden paths: Opinionated, pre-built templates that encode your organization’s best practices.
- Guardrails: Automated policies that prevent misconfigurations before they reach production.
- Visibility: A single place to see what is running, who owns it, and how healthy it is.
The goal is to give developers autonomy without giving them enough rope to bring down production.
graph TD
DEV[Developer] --> PORTAL[Developer Portal]
PORTAL --> TPL[Golden Path Templates]
TPL --> CI[GitLab CI Pipelines]
CI --> TF[Terraform - Infra]
CI --> ARGO[ArgoCD - Deploy]
TF --> K8S[Kubernetes Clusters]
ARGO --> K8S
K8S --> OBS[Grafana - Observability]
K8S --> VAULT[Vault - Secrets]
The Architecture: Components You Already Have
If you have followed the earlier posts in this series, your IDP is largely built. Here is how the pieces connect:
| Layer | Tool | Series Reference |
|---|---|---|
| Infrastructure provisioning | Terraform modules | IaC with Terraform |
| Deployment | ArgoCD + GitOps | GitOps foundations |
| CI/CD | GitLab CI/CD | Pipeline design |
| Secrets | HashiCorp Vault | Secrets management |
| Observability | Grafana + OTel | Grafana dashboards |
| Security | OPA/Kyverno policies | Kubernetes security |
| Backup/DR | Velero + automated runbooks | DR as code |
The IDP is the layer that ties these together with a developer-facing interface.
Golden Paths: Opinionated Templates
A golden path is a pre-built, tested, and approved way to accomplish a common task. It is not a restriction — developers can go off-path when they need to — but it is the easiest route, and it encodes everything your organization has learned about doing things safely.
Here is a GitLab CI/CD template that serves as a golden path for deploying a new microservice:
# templates/golden-path-microservice.yml
# Include this template in your .gitlab-ci.yml to get a fully
# configured CI/CD pipeline with best practices built in.
stages:
- build
- test
- security
- deploy-staging
- deploy-production
variables:
DOCKER_REGISTRY: registry.example.com
KUBE_NAMESPACE: ${CI_PROJECT_NAME}
include:
- project: 'platform/ci-templates'
ref: main
file:
- '/templates/docker-build.yml'
- '/templates/security-scan.yml'
- '/templates/deploy-argocd.yml'
build:
extends: .docker-build
variables:
DOCKERFILE_PATH: Dockerfile
IMAGE_NAME: ${DOCKER_REGISTRY}/${CI_PROJECT_PATH}
test:
stage: test
image: ${DOCKER_REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_SHA}
script:
- make test
coverage: '/^TOTAL.*\s+(\d+\%)$/'
security-scan:
extends: .security-scan
deploy-staging:
extends: .deploy-argocd
variables:
ENVIRONMENT: staging
AUTO_DEPLOY: "true"
environment:
name: staging
deploy-production:
extends: .deploy-argocd
variables:
ENVIRONMENT: production
AUTO_DEPLOY: "false"
environment:
name: production
when: manual
rules:
- if: $CI_COMMIT_BRANCH == "main"
A developer starting a new service includes one line in their .gitlab-ci.yml:
include:
- project: 'platform/ci-templates'
file: '/templates/golden-path-microservice.yml'
They get container building, security scanning, automated staging deployment, and manual production promotion — all configured according to your organization’s standards. No copy-pasting. No guessing.
Self-Service Infrastructure Provisioning
The most impactful capability of an IDP is self-service infrastructure. Developers should be able to request a database, a Redis instance, or a complete environment without waiting on anyone.
Using Terraform modules wrapped in GitLab CI/CD, you can build a catalog of provisionable resources:
# modules/developer-database/main.tf
variable "team" {
type = string
description = "Team name (used for labeling and access control)"
}
variable "environment" {
type = string
default = "staging"
validation {
condition = contains(["staging", "production"], var.environment)
error_message = "Environment must be staging or production."
}
}
variable "engine" {
type = string
default = "postgresql"
validation {
condition = contains(["postgresql", "mysql"], var.engine)
error_message = "Supported engines: postgresql, mysql."
}
}
variable "size" {
type = string
default = "small"
validation {
condition = contains(["small", "medium", "large"], var.size)
error_message = "Size must be small, medium, or large."
}
}
locals {
size_map = {
small = { cpu = "500m", memory = "1Gi", storage = "10Gi" }
medium = { cpu = "1", memory = "4Gi", storage = "50Gi" }
large = { cpu = "2", memory = "8Gi", storage = "100Gi" }
}
}
# The actual database provisioning (simplified)
resource "kubernetes_namespace" "db" {
metadata {
name = "${var.team}-${var.engine}-${var.environment}"
labels = {
"platform.example.com/team" = var.team
"platform.example.com/environment" = var.environment
"platform.example.com/managed-by" = "idp"
}
}
}
# Store credentials in Vault automatically
resource "vault_generic_secret" "db_credentials" {
path = "secret/teams/${var.team}/${var.environment}/database"
data_json = jsonencode({
host = kubernetes_service.db.metadata[0].name
port = 5432
username = random_string.db_user.result
password = random_password.db_password.result
database = var.team
})
}
A developer requests a database by creating a merge request that adds a file to an infrastructure repository:
# infrastructure-requests/acme-team/staging-database.yaml
kind: DatabaseRequest
team: acme
environment: staging
engine: postgresql
size: medium
The merge request triggers a Terraform plan. A platform engineer reviews and approves. Terraform provisions the database, stores credentials in Vault, and the developer can access their new database within minutes of approval.
Automated Environment Creation With ArgoCD
For development and testing, developers often need complete environments — not just a single resource, but an entire stack. ArgoCD’s ApplicationSet controller makes this straightforward:
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: developer-environments
namespace: argocd
spec:
generators:
- git:
repoURL: https://gitlab.example.com/platform/environments.git
revision: HEAD
directories:
- path: "environments/dev-*"
template:
metadata:
name: "{{path.basename}}"
spec:
project: developer-environments
source:
repoURL: https://gitlab.example.com/platform/environments.git
targetRevision: HEAD
path: "{{path}}"
destination:
server: https://kubernetes.default.svc
namespace: "{{path.basename}}"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
A developer creates a new environment by adding a directory to the environments repository. ArgoCD detects it and provisions everything automatically. When the branch is merged or deleted, the environment is cleaned up.
This is the self-service model in practice. No tickets. No waiting. Full audit trail through Git history.
The Developer Portal: A Single Pane of Glass
With all the automation in place, developers need a way to discover and interact with it. A developer portal serves as the front door to your IDP.
Backstage (by Spotify) is the most established open-source option, but you do not need to start there. A simple internal documentation site that catalogs your golden paths, links to your Terraform module registry, and provides runbooks for common tasks is a strong starting point.
What matters is that developers can answer these questions without asking anyone:
- How do I deploy a new service? → Golden path template documentation
- How do I get a database? → Self-service provisioning guide
- What is running in my namespace? → ArgoCD dashboard link
- Why is my service slow? → Grafana dashboard link (see our Grafana post)
- How do I access secrets? → Vault integration guide
Platform Team Operating Model
Building the platform is one challenge. Operating it sustainably is another. The platform team should function like a product team:
Treat developers as customers. Gather feedback. Measure adoption. Prioritize features based on developer pain points, not technical elegance.
Keep the team small and focused. A platform team of 3-5 engineers can support an organization of 50-100 developers if the platform is well-designed. The leverage comes from automation, not headcount.
Define an API boundary. The platform team owns everything below the boundary (infrastructure, CI/CD templates, security policies). Application teams own everything above it (application code, business logic, feature flags). The boundary should be clear and documented.
Measure platform health:
- Time from “new service idea” to “running in staging” (target: under 1 hour)
- Number of support tickets per developer per month (target: fewer than 2)
- Percentage of teams using golden paths (target: above 80%)
- Mean time to recovery for platform incidents (target: under 30 minutes)
What Not to Build
The biggest risk in platform engineering is over-engineering. You do not need to build:
- A custom UI for everything when a Git-based workflow works fine
- Your own service mesh when your scale does not require one
- A bespoke container registry when GitLab or Harbor works
- An abstraction layer so thick that debugging requires understanding two systems instead of one
Start with the workflows that cause the most friction. Automate those. Gather feedback. Iterate. The best IDPs are grown incrementally, not designed in a six-month planning phase.
From Chaos to Platform
The journey from ad-hoc infrastructure to a self-service platform is not a weekend project. But if you have been building the foundational pieces — infrastructure as code, GitOps deployments, automated security, observability, and disaster recovery — you are closer than you think.
The IDP is not the destination. It is the operating model that lets your organization scale engineering without scaling operational overhead linearly. Every golden path saves hundreds of hours. Every self-service workflow removes a bottleneck. Every automated guardrail prevents an incident.
In our next post, we will zoom out and look at the complete reference architecture that ties all of these components together into a production-grade, multi-cloud Kubernetes platform.