123DevOps··7 min read

Golden Paths in practice: from zero to production in minutes, without filing an infrastructure ticket

How to build a golden path that delivers a repository, CI/CD, infrastructure as code, observability and security out of the box — with a Backstage Software Template, versioned components and adoption metrics.

Platform Engineering

At many companies, creating a new service is still a weeks-long journey: one ticket to create the repository, another for the pipeline, another for the database, another for DNS, a conversation with security, a meeting with the observability team. By the time the service finally reaches production, each piece has been configured differently.

A golden path (a paved road) solves this with a simple promise: the developer fills out a form and, within minutes, has a service running in staging — with the repository, pipeline, infrastructure, observability and security configured the way the company recommends. No tickets.

What a golden path delivers

A good golden path is not just a “code skeleton.” It delivers the complete package a service needs to go to production:

Layer What comes ready out of the box
Repository Standard structure, README, CODEOWNERS, branch protection
Code Health checks, configuration via environment variables, structured logs
CI Build, tests, lint and security scans via shared workflows
CD Kubernetes manifests and a PR to the GitOps repository
Infrastructure Database, queues and buckets via approved IaC modules, with cost tags
Observability OpenTelemetry SDK, standard dashboard and SLO-based alerts
Security Approved base image, dependency scanning, secrets from a vault
Catalog Registration in the portal with owner, criticality and links

Every row in this table is a ticket that no longer exists.

Step 1: start with the most traveled path

Don’t try to cover every stack on day one. Find out which types of service get created most often — for example, “REST API in Java with PostgreSQL” or “Go worker consuming a queue” — and build the golden path for that case. One excellent path is worth more than five mediocre ones.

Talk to the teams that recently created services: where they got stuck, how long they waited, what they misconfigured. That’s your requirements list.

Step 2: the template (Backstage example)

In Backstage, golden paths are implemented as Software Templates. The template defines a form and a sequence of steps:

apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
  name: java-spring-service
  title: Java Service (Spring Boot) + PostgreSQL
  description: Repository, pipeline, infrastructure, observability and deployment to staging
  tags: [java, golden-path, recommended]
spec:
  owner: group:platform
  type: service

  parameters:
    - title: About the service
      required: [name, team, tier]
      properties:
        name:
          title: Service name
          type: string
          pattern: '^[a-z][a-z0-9-]{2,30}$'
        team:
          title: Owning team
          type: string
          ui:field: OwnerPicker
          ui:options:
            catalogFilter:
              kind: Group
        tier:
          title: Criticality (1 = most critical)
          type: string
          enum: ['1', '2', '3']
        database:
          title: Needs PostgreSQL?
          type: boolean
          default: false

  steps:
    - id: code
      name: Generate the service code
      action: fetch:template
      input:
        url: ./skeleton
        values:
          name: ${{ parameters.name }}
          team: ${{ parameters.team }}
          tier: ${{ parameters.tier }}
          database: ${{ parameters.database }}

    - id: publish
      name: Create the repository
      action: publish:github
      input:
        repoUrl: github.com?owner=your-org&repo=${{ parameters.name }}
        defaultBranch: main
        protectDefaultBranch: true

    - id: manifests
      name: Generate deployment manifests
      action: fetch:template
      input:
        url: ./manifests
        targetPath: ./gitops
        values:
          name: ${{ parameters.name }}
          database: ${{ parameters.database }}

    - id: gitops
      name: Open a PR in the GitOps repository
      action: publish:github:pull-request
      input:
        repoUrl: github.com?owner=your-org&repo=k8s-manifests
        branchName: new-service-${{ parameters.name }}
        title: 'New service: ${{ parameters.name }}'
        description: Created by the java-spring-service golden path
        sourcePath: ./gitops
        targetPath: apps/${{ parameters.name }}

    - id: register
      name: Register in the catalog
      action: catalog:register
      input:
        repoContentsUrl: ${{ steps['publish'].output.repoContentsUrl }}
        catalogInfoPath: /catalog-info.yaml

  output:
    links:
      - title: Repository
        url: ${{ steps['publish'].output.remoteUrl }}
      - title: Deployment PR
        url: ${{ steps['gitops'].output.remoteUrl }}
      - title: View in catalog
        icon: catalog
        entityRef: ${{ steps['register'].output.entityRef }}

The developer answers four questions. Everything else is a platform decision — made once, reviewed by the experts and reapplied across every service.

Not using Backstage? The same idea works with Port self-service actions, a manually triggered GitHub Actions workflow, Cookiecutter, or even a GitHub repository template plus a script. The tool matters less than what goes into the path.

Step 3: the skeleton — thin in the template, strong in the platform

The most common mistake is putting everything inside the template. On day 1 it works; by day 180, every service has a different, outdated copy of the pipeline, the Dockerfile and the alerting rules.

The rule that works: the template copies little and references a lot. The skeleton points to versioned, centralized components:

# .github/workflows/ci.yml generated in the service repository
name: ci
on:
  push:
    branches: [main]
  pull_request:

jobs:
  pipeline:
    uses: your-org/pipelines/.github/workflows/java-service.yml@v3
    with:
      service-name: checkout
      tier: "1"
    secrets: inherit
# infra/main.tf generated in the service repository
module "database" {
  source  = "app.terraform.io/your-org/postgres-standard/aws"
  version = "~> 2.4"

  name     = "checkout"
  team     = "payments"
  size     = "small"   # the platform translates this into instance class, backups and high availability
}

The same applies to the base image, the Helm chart or Kustomize base, the observability module and the library with the OpenTelemetry SDK already configured. When the platform improves the pipeline (for example, to get it under 10 minutes) or adds a security scan, every service gets the improvement by bumping a version — and tools like Renovate open those update PRs automatically.

Step 4: security and observability come built in

The golden path is the cheapest place to put security and observability, because nobody has to “remember” to configure them:

Step 5: a path, not a cage

A golden path is the recommended path, not the mandatory one. If the only way to deploy is to follow the template to the letter, teams with different needs will work around the platform — or start filing tickets again.

  • Defaults that can be overridden: the service uses the standard pipeline, but can add stages.
  • Documented escape hatches: “need something off the path? Here’s the process, and here are the minimum requirements (owner, observability, security).”
  • Transparency: the developer can see and understand everything the template created — no hidden magic (see pragmatic abstraction).

Step 6: measure whether the path is being used

Metric What it tells you
Time to first deployment in staging Is the “minutes” promise being kept?
% of new services created through the golden path Is the path genuinely attractive?
% of services on the current component versions Can the platform keep the fleet up to date?
Infrastructure tickets per new service Is self-service working?
Developer satisfaction with the path Does it help or get in the way?

If adoption is low, don’t mandate it: ask why. Almost always the path is missing something teams need — and that becomes the next roadmap priority (more on this in platform as a product).

Checklist

  • Golden path for the most frequently created service type in the company
  • Form with few questions and sensible default decisions
  • Repository, CI, CD, IaC, observability and security delivered together
  • Thin template, referencing versioned components
  • Automatic version updates (Renovate or similar)
  • Documented escape hatches
  • Time to first deployment and adoption measured

The best golden path is the one developers choose not because they have to, but because it is by far the fastest way to reach production the right way.

Get updates on new posts and stay in the loop!