Backstage #2

Nobody Maintains a Catalog for SRE

The first article ended on the catch: a service catalog is only as good as its data, and the people who want it most — SREs — aren’t the people who can keep it accurate. The engineering teams are.

This one is about that part. Standing up Backstage was real work, but it was the easy part. The hard part was getting engineering teams to care about a YAML file in their repo.

What can happen

A catalog can fail without anyone doing anything wrong. Nobody clearly owns it, the data drifts, people stop trusting it, and once people stop trusting it they stop looking. That’s the normal life cycle of a catalog that one group wants and another group is supposed to maintain.

So before writing any YAML, I opened a Slack channel and asked the uncomfortable questions out loud:

  • Who owns it? Two answers, really. SRE owns the platform: running it, upgrading it, keeping the plugins working. The data has to end up owned by the developers. If either half has no owner, entropy wins.
  • What’s in it for the developers? The SRE benefits were obvious. The developer benefits were not.
  • What does it cost us? It’s free software, which means it’s one more thing we run ourselves. Our SRE team was not a TypeScript shop.

Those questions shaped everything that followed. Most of the answers came down to one idea: if the information is unreliable, people won’t use it, and if people don’t use it, nobody will fix it. Breaking that loop was the whole job.

Don’t start with an empty catalog

An empty catalog asks every team to do work up front for a benefit they can’t see yet. That’s a hard sell.

So we filled it in ourselves with automation, and asked teams to correct it rather than create it:

  • Ownership from history, not just CODEOWNERS. CODEOWNERS files were incomplete. Commit history was a better signal: who actually changes this code, and which team are they on? That gave a first-pass owner for a couple of hundred components.
  • Coverage from what’s actually running. A script compared the workloads running in production Kubernetes against the catalog. The first run showed about 62% coverage, with 113 workloads nobody had cataloged.
  • Drafts, not blank pages. For each uncataloged workload, another script drafted a catalog-info.yaml — source repo derived from the container image, a best guess at the owner and parent system — and grouped them by repo so each one could go out as a single merge request.

The first pass was rough. One early look showed 27 components owned by “unknown,” and 20 assigned to a team that said, reasonably, that they didn’t actually own them. That was fine. A wrong answer in front of the right team gets corrected quickly. A blank field in front of nobody stays blank.

Enrich it while you still control the files

This turned out to be the most useful sequencing decision we made.

At first, all the catalog entries lived in one central repo that SRE controlled. That’s not where they belong — the whole point is that each service describes itself in its own repo — but it meant changes merged in minutes instead of waiting days, so corrections turned around fast.

We did the enrichment first, while it was still cheap: dependencies, annotations for Kubernetes and Argo CD, links to dashboards and on-call, developer docs. Only after the entries were worth having did we move each one into the owning team’s repo.

Once a file lives in someone else’s repo, every fix is a merge request waiting in someone else’s queue. Hand over a good file, not a stub.

The handover itself was a bulk operation: one merge request per repo, merged by SRE. We briefly relaxed the merge-approval rules on about 50 repos, restoring each one right after its merge. We told the teams ahead of time that it was coming, and by then most of the entries had already been reviewed by the owning teams while they lived in the central repo. It was a text file with no code changes, so there was little risk in merging it. From that point on, the file was theirs to update, rewrite, or replace.

Give developers their own reason to look

This is the part that matters most, and the part I’d emphasize to anyone starting out.

SREs want ownership and dependency data. Developers mostly don’t, at least not day to day. But developers do want to know whether their service is healthy, whether their deploy went out, and whether their pipeline is green. If the catalog page answers those questions, they visit it — and when they visit it, they notice when the ownership or the dependencies are wrong.

So the service page became the place for things developers already cared about:

  • A dashboard for every service. We generated a standard Grafana dashboard — request rate, error rate, p50 and p99 latency — from a template, for hundreds of services, and linked each one from its catalog page. Nobody had to build one.
  • Live Kubernetes status across all the clusters, on one tab.
  • Argo CD sync status and pipeline history, so “did my change go out?” has a one-click answer.
  • On-call and runbooks, a click away from the service.
  • Dependents, not just dependencies. “Who calls my service?” turns out to be a question developers care about too, especially before a breaking change.
  • A homepage with favorites, so a developer’s own services are front and center rather than buried in a list of hundreds.

One line from my planning notes summed it up: they won’t improve what they cannot see. The plan was to keep adding things developers would want to see about their own services — latency trends, error budget burn, what the service costs to run — for the same reason.

You don’t have to build most of this yourself. The Backstage plugin directory has a long list of plugins for CI/CD, Kubernetes, on-call, monitoring, cost, security scanning and more. Pick the ones that answer questions your developers already ask. Quality and documentation vary a lot from plugin to plugin, so try one before you promise it to anyone.

Make the right thing easy

If updating the catalog information requires a ticket to SRE, the catalog belongs to SRE, and it will go stale at SRE’s pace. Remove the friction.

  • Self-service. Edit catalog-info.yaml in your own repo, open a merge request, and Backstage picks up the change within about half an hour. SRE isn’t in the loop.
  • A validator. A YAML validator in the portal catches the obvious mistakes before they turn into a silent gap in the catalog.
  • Documentation people will read. We wrote a short onboarding booklet: what the catalog is for, how to find things, and what to do if your repo is already cataloged versus starting from scratch. It lives in Backstage itself as TechDocs and as a downloadable PDF. (More on the booklet in a later article.)
  • One place for questions — and catalog gripes — in the SRE Slack channel.

Measure it

“Adoption” is vague. We picked three goals we could actually check for the MVP (minimum viable product):

  • Engineers can find a service’s owner in under 30 seconds.
  • 70% of services declare their dependencies.
  • At least two development teams are actively using the portal each week.

The coverage script did double duty here. Uncataloged workloads became a visible list that got shorter, rather than a general complaint that the catalog was incomplete.

If I remember right, coverage ended up around 80%, up from about 62% on the first run, and we met the early goals before handing the catalog files to the engineering teams to keep up-to-date.

What I’d tell someone starting out

  • Expect the dependency data to be the hardest. Ownership can be inferred from history. Dependencies are harder. Our first idea — mining the API gateway’s access logs — turned out to see only external traffic. The service-to-service edges were in a different layer’s logs entirely.
  • Treat the first pass as a conversation starter. Wrong data that someone corrects is progress. Missing data just stays missing.
  • Say clearly that the bootstrap is a starting point. Not everyone will read a bulk merge request the way you meant it. Some engineers will want to own the process their own way, and that’s fine — the file is theirs to change or replace. Say so early and more than once, and accept that it won’t convince everyone. Give the do-it-yourselfers the tools and documentation.
  • Decide who owns what before you build it. SRE owns the platform; the developers own their data. Everything else depends on that split.

Summary

A catalog doesn’t stay current because people are told to keep it current. It stays current because the people who own the data look at it every day for their own reasons, and fixing it is a two-minute merge request in their own repo.

SRE’s job is to make that true: fill it in so nobody starts from nothing, put things on the page that developers actually want, and then get out of the update path.

Next: the onboarding booklet.