Golden Paths & Paved Roads
Spotify coined golden path for "the opinionated and supported way to build something": for example, a backend service in Java with their standard stack. Netflix used paved road for the same idea. Both mean a well-lit route from an empty folder to a service in production that is supported by the platform team, and that teams choose because it is the easiest one.
What a golden path contains
For a linkly-style Go service, the golden path is not just a code skeleton. It is every decision the Capstone made, packaged:
| Part | Decision already made | Where you learned it |
|---|---|---|
| Code skeleton | net/http routing, slog JSON logs, /healthz /readyz /metrics, graceful shutdown |
Capstone: the application |
| Container | distroless, non-root, multi-stage | Capstone: container |
| CI | test, lint, scan, sign, push; OIDC to the registry | CI/CD |
| Chart | probes, resources, PDB, HPA, NetworkPolicy, HTTPRoute | Capstone: the production chart |
| Delivery | an entry in the GitOps repo for staging and production | GitOps: promotion |
| Observability | ServiceMonitor, a RED dashboard, structured logs | Observability: RED & USE |
| Reliability | an SLO file that generates burn-rate alerts | SRE: multiwindow alerts |
| Ownership | catalog-info.yaml with owner, system and lifecycle |
The Software Catalog |
| Docs | a runbook and an architecture page next to the code | TechDocs |
A team that runs the golden path gets all of that in one step, and later gets improvements to it (a new scanner, a better alert) through template updates.
Paved road vs freedom
Golden paths are opinionated, and opinions constrain. Good platforms treat them as a strong default with a clear exit:
| On the paved road | Off-road | |
|---|---|---|
| Who keeps CI, chart and alerts up to date | the platform team, through template updates | the team itself |
| Security patches to base images | automatic | the team's job |
| On-call support from the platform team | yes | best effort |
| Approval needed | none | none, but the team records why (an ADR) |
| Outcome requirements (owner, scanning, SLO) | met by construction | must still be met |
The key line is the last one: mandate outcomes, not paths. A team writing a Rust service with its own pipeline is fine, as long as it still has an owner in the catalog, image scanning, an SLO and a runbook. The platform can check those outcomes automatically with scorecards.
The cost of leaving the road
Going off-road looks free on day one and costs every month after. A small model: a team either takes the golden path (setup is quick, the platform team absorbs upgrades) or builds its own (setup is longer, and every platform-wide change, such as a new scanner or a Kubernetes API removal, lands on the team):
months = 24
changes_per_month = 1.5 # platform-wide changes (scanner, base image, k8s API, CI runner...)
hours_per_change_offroad = 3.0 # the team adapts its own pipeline/chart
hours_per_change_paved = 0.25 # review and merge the template update PR
def total_hours(setup, per_change, months):
hours = [setup]
for _ in range(months):
hours.append(hours[-1] + changes_per_month * per_change)
return hours
paved = total_hours(setup=4, per_change=hours_per_change_paved, months=months)
offroad = total_hours(setup=40, per_change=hours_per_change_offroad, months=months)
for m in (0, 6, 12, 24):
print(f"month {m:2}: paved {paved[m]:6.1f} h off-road {offroad[m]:6.1f} h")
print(f"off-road costs {offroad[-1] / paved[-1]:.1f}x more over {months} months")month 0: paved 4.0 h off-road 40.0 h
month 6: paved 6.2 h off-road 67.0 h
month 12: paved 8.5 h off-road 94.0 h
month 24: paved 13.0 h off-road 148.0 h
off-road costs 11.4x more over 24 months
The model ignores the hardest cost: the off-road service's pipeline drifts from the company's security baseline because nobody had time for change number seventeen. That's why platform teams track off-road services in the catalog rather than forbidding them.
Golden path design rules
- One path per kind of thing, not per team: "HTTP service in Go", "scheduled job", "event consumer", "static site". Start with the kind most new services are.
- Inputs are few and meaningful: name, owner, description, maybe a port and an SLO target. If the form has 25 fields, the path isn't opinionated enough.
- Output is ordinary code the team owns: plain YAML, a plain workflow file, a plain chart. No magic that only the platform team can debug.
- It works on day one: the first commit builds, deploys to staging and shows up on a dashboard. Test the template itself in CI by rendering it and running the result (the Mini Project does exactly that).
- It evolves: version the template, publish release notes, and ship updates to existing services as pull requests.
Test yourself
What distinguishes a golden path from a mandated standard?
- Golden paths are written in YAML
- Teams choose it because it is the easiest supported route; leaving it is allowed if the required outcomes are still met
- Golden paths only cover CI
- Standards are optional
Why does leaving the paved road get more expensive over time?
- Licences
- Every platform-wide change (scanner, base image, API removal) must be adapted by the team itself instead of arriving as a template update
- Kubernetes charges more
- Off-road services can't be monitored
Which is a sign that a golden-path template is not opinionated enough?
- It produces plain YAML
- Its form asks 25 questions
- It deploys to staging on the first commit
- It is versioned