Backstage #1

Who Owns This? Why SREs Want a Service Catalog

If you’ve spent any time on call, you’ve asked every one of these questions, usually at the worst possible moment:

  • Who owns this service?
  • Who owns this repo?
  • What does it depend on, and what depends on it?
  • Who are the subject-matter experts (SMEs)?
  • Who is on call for it right now?

None of them are hard questions. Somebody always knows the answer. The problem is that the somebody is usually asleep, on vacation, in a different time zone, or left the company eight months ago.

This is the first of a short series on Backstage: why SREs want a service catalog, how we got engineering teams to actually keep one current, and how it was built. This one is about the why.

The 2am version

Most of us have lived some version of this.

An alert fires for a service you’ve never touched. The dashboards say error rates are climbing, but the service itself looks healthy — so it’s probably something it calls. You open the repo to find out what that is. The README was last updated two years ago and describes an architecture that no longer exists. The config references three other services by hostname. One of them sounds familiar.

So you go to Slack. You search the service name and find a thread from last spring where someone named a team that has since been reorganized into two other teams. You page the on-call rotation you think is right. They reply, politely, that it isn’t theirs, but they think Sam used to work on it. Sam is on vacation.

Twenty minutes in, you haven’t started diagnosing anything. You’ve been doing archaeology.

None of that is a failure of the people involved. Everyone answered as best they could. The information just didn’t live anywhere you could look it up.

Each question costs something different

Who owns this service? Ownership drifts. Teams reorganize, services get handed off, and the person who built it moves on. If ownership is recorded at all, it’s usually recorded as a person, which is the one thing guaranteed to go stale. It needs to be a team — and a team that still exists.

Who owns this repo? This is a separate question, and the answer is often different. One repo can produce several deployable services, and one service can be assembled from several repos. A CODEOWNERS file tells you who reviews changes; it doesn’t tell you who gets woken up.

What does it depend on, and what depends on it? This is the blast radius question, and you need it both during an incident (“is the problem here, or upstream?”) and before a change (“if I upgrade this database, or drain this node pool, what breaks?”). Most organizations can answer the first half by reading code. Almost none can answer the second half — who breaks if this does? — without asking around.

Who are the SMEs? Every system has one or two people who really understand it. They’re the ones who get pulled into every incident, every design review, every “quick question.” That’s a single point of failure, just one made of people instead of hardware. Knowing who they are is the first step; spreading what they know is the second.

Who is on call for it right now? The rotation lives in your paging tool, such as PagerDuty. The mapping from this service to that rotation usually lives nowhere at all, or in the head of whoever set it up for the team.

Where the answers usually live

Ask around and you’ll find the answers scattered across:

  • tribal knowledge, which leaves when people do;
  • wiki pages, accurate on the day they were written;
  • a spreadsheet someone started during the last reorg;
  • Slack search, which finds the conversation but not the conclusion;
  • CODEOWNERS and git blame, which tell you who touched the code, not who runs it.

Each one is partly right. None of them is the place you can trust at 2am, and none of them updates itself when things change.

It isn’t only an incident problem, either. New engineers — and new SREs — rebuild the same mental map by asking the same questions of the same busy people. Orphaned services keep running, and keep costing money, because nobody is sure they’re safe to turn off.

What a catalog changes

A service catalog puts the answers in one place, with a few properties that the wiki and the spreadsheet never had:

  • It lives with the code. Each service describes itself in a small file in its own repo. Changes go through the same review as any other change, by the people who own it.
  • Ownership points at a team, not a person. The team page has the roster, the Slack channel, and links to the on-call rotation.
  • Dependencies are declared, so they can be reversed. If every service lists what it depends on, the catalog can answer “what depends on me?” — the half nobody could answer before.
  • Live status sits on the same page. Links to pod health, deploy status, pipeline history, the current on-call, a link to the dashboard. You stop flipping between five browser tabs to answer one question.

Backstage (backstage.io) is one way to get there: the open-source developer portal originally built at Spotify and now a CNCF project. Each service gets a catalog-info.yaml file along these lines:

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: checkout-api
  description: Cart checkout and payment handoff
  annotations:
    pagerduty.com/service-id: PXXXXXX
    backstage.io/kubernetes-id: checkout-api
spec:
  type: service
  lifecycle: production
  owner: group:payments
  system: storefront
  dependsOn:
    - component:inventory-api
    - resource:orders-db

That’s most of the five questions answered in about fifteen lines: an owning team, a system it belongs to, what it depends on, which on-call service to show, and which Kubernetes workloads to pull live status from. The SME question is the only one a file can’t fully answer — but the team page gets you to the right people instead of the loudest search result.

Backstage isn’t the only way to do this, and this isn’t a product review. What mattered to us was that the data lived in the repos, the updates went through normal merge requests, and the plugins could put live operational data next to the ownership data.

The catch

A catalog is only as good as its data.

SREs are the people who want this most. We’re the ones doing the 2am archaeology. But we’re not the people who can keep it accurate — the owning teams are. A catalog that SRE wants and engineering doesn’t maintain is just a newer, shinier wiki page, and it will go stale on the same schedule.

So the hard question was never “can we stand up Backstage?” That was real work, but it was bounded. The question was how to get every engineering team to care about a YAML file in their repo — enough to fix it when it’s wrong, and enough to add one when they ship something new.

That’s the next article.

Summary

Every one of those five questions has an answer. The cost is in finding it, and that cost always lands at the worst time — in the middle of an incident, or right before a change you can’t easily undo.

A service catalog doesn’t make any of those answers smarter. It makes them findable, by anyone — or any AI agent helping diagnose an incident — in seconds, without waking up the one person who knows. For an SRE, that’s most of the battle.

Next: Nobody Maintains a Catalog for SRE — getting engineering teams to keep the catalog current.