← All writing

Platform Engineering: Building an Internal Developer Platform with Backstage & GitOps

· Sourabh G Kulkarni

How platform teams build self-service developer portals using Spotify Backstage, golden paths, and GitOps workflows.

Platform Engineering: Building an Internal Developer Platform with Backstage & GitOps

In traditional organizations, when a developer needs a new microservice, database, or DNS record, they open a ticket with the Operations team. Ops manually executes Terraform scripts, sets up Kubernetes manifests, and replies three days later.

This ticket-based ops model creates bottlenecks that stifle engineering velocity. Platform Engineering solves this not by giving every developer raw AWS console access (which leads to runaway bills and security vulnerabilities), but by building an Internal Developer Platform (IDP).

flowchart LR
    Dev["Product Developer"]
    
    subgraph IDP["Internal Developer Platform (Backstage)"]
        UI["Self-Service Portal (UI Form)"]
        Template["Software Template (Golden Path)"]
    end

    subgraph Automation["GitOps Automation Engine"]
        Repo["Git Repository (App Code + Helm/K8s)"]
        Argo["ArgoCD Controller"]
        Cluster["Production Kubernetes Cluster"]
    end

    Dev -->|Fill service details in 2 min| UI
    UI -->|Render boilerplate| Template
    Template -->|Commit & Create| Repo
    Repo -->|Webhook / Polling| Argo
    Argo -->|Sync & Deploy| Cluster

1. What Makes an Internal Developer Platform?

An IDP is a layer of abstraction that sits between product engineering and cloud infrastructure:

  1. Self-Service Capabilities: Developers provision compliant infrastructure on demand without waiting for ops approval.
  2. Golden Paths (Paved Roads): Pre-packaged templates that encode company standards (logging, metrics, authentication, security scanning) automatically.
  3. Guardrails, Not Gates: Policies enforced transparently (via OPA Gatekeeper, Kyverno, or IAM boundaries) so developers cannot accidentally expose a database publicly.

2. Implementing Software Templates in Spotify Backstage

Spotify Backstage has become the standard open-source framework for building developer portals. Through Software Templates, developers answer three simple form questions, and Backstage generates a production-ready repository:

# template.yaml - Golden Path for Go Microservice
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
  name: go-microservice-template
  title: Production Go Microservice
  description: Creates a standard Go API with Dockerfile, Helm charts, and CI/CD pipelines
spec:
  owner: platform-team
  type: service

  parameters:
    - title: Service Information
      required:
        - service_name
        - port
      properties:
        service_name:
          title: Service Name
          type: string
          description: Unique kebab-case name of the microservice
        port:
          title: HTTP Listening Port
          type: integer
          default: 8080

  steps:
    - id: fetch-template
      name: Fetch Skeleton Code
      action: fetch:template
      input:
        url: ./skeleton
        values:
          service_name: ${{ parameters.service_name }}
          port: ${{ parameters.port }}

    - id: publish-github
      name: Publish to GitHub
      action: publish:github
      input:
        repoUrl: github.com?repo=${{ parameters.service_name }}&owner=company
        defaultBranch: main

    - id: register-argocd
      name: Register in ArgoCD
      action: argocd:create-app
      input:
        appName: ${{ parameters.service_name }}
        project: default

3. The Platform Engineer's Mindset: Developer as Customer

The most critical transition in platform engineering is philosophical:

  • Old Ops Mindset: "I manage the infrastructure; developers must submit requests to me."
  • Platform Engineering Mindset: "My product is the developer platform; developers are my customers. My job is to minimize their cognitive load so they can ship value safely."

By pairing a Backstage service catalog with automated GitOps pipelines, teams reduce onboarding time from weeks to twenty minutes while maintaining enterprise-grade security and governance.