Build an Internal Developer Platform — Backstage, Golden Paths & Crossplane›04 · The software catalog

Lesson 04 of 11 · The golden path

The software catalog

Model your software in the Backstage catalog: entity kinds and relations, catalog-info.yaml next to the code, discovery instead of manual registration, users and groups synced from the identity provider, and the habits that keep a catalog of hundreds of services accurate.

Advanced
Key wordssoftware catalogcatalog-info.yamlentityComponentAPIResourceSystemDomainGroupUserLocationownershiprelationsdiscoveryentity providerorg syncannotationsscorecards

Why a catalog first

Before any template, a platform needs to answer: what do we run, who owns it, how do the pieces connect? The catalog answers that, and every other feature (templates, docs, scorecards, cost, on-call) hangs off it.

The school keeps a register: every club, who runs it, which room it uses, which clubs share equipment. When the gym floods, the office knows at once which clubs to warn and who to call.

The entity model

Kind What it is Example
Component A piece of software (service, website, library) orders
API An interface a component provides or consumes orders-api (OpenAPI, gRPC, AsyncAPI)
Resource Infrastructure a component needs orders-db (PostgreSQL)
System A group of components and APIs delivering one capability checkout
Domain A business area grouping systems commerce
Group / User Teams and people team-shop, asha
Template A software template (scaffolder) golden-service
Location A pointer to more entity files a repo or a folder

Relations connect them: ownedBy, partOf, providesApi, consumesApi, dependsOn, memberOf. Those relations draw the dependency graphs people use during incidents.

catalog-info.yaml lives with the code

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: orders
  description: Takes and tracks customer orders
  tags: [ golden-path, tier-2 ]
  annotations:
    backstage.io/techdocs-ref: dir:.
    backstage.io/kubernetes-id: orders
    argocd/app-name: orders
spec:
  type: service
  lifecycle: production
  owner: group:team-shop
  system: checkout
  providesApis: [ orders-api ]
  dependsOn: [ resource:orders-db ]

The owning team edits it in the same pull request as the code. The golden-path template generates it, so new services are in the catalog from minute one.

Fill it automatically

  • Discovery providers scan an organisation in GitHub, GitLab, Bitbucket or Azure DevOps (or Gitea, with a module) for catalog-info.yaml files on a schedule. No manual registration.
  • Org providers sync users and groups from Microsoft Entra ID (Graph), LDAP, Okta or similar. Ownership then means a real, current team.
  • Static locations in app-config.yaml for a few special files (templates, shared systems).
  • Custom providers (a backend module) for anything else: clusters, cloud accounts, databases from an inventory API.

Keep it accurate

Catalogs rot when nobody needs them. Make them load-bearing:

  • Validate in CI: the schema, an owner that exists in the org, required annotations, lifecycle set.
  • Use ownership elsewhere: alert routing and on-call, cost reports per team, access reviews, which team gets a security finding. Wrong data now has a visible cost.
  • Scorecards (for example the Tech Insights plugin or a commercial equivalent): "has an owner", "has docs", "base image is current", "has alerts". Use them to nudge, not to shame.
  • Handle reorganisations: groups come from the IdP, so a renamed team updates everywhere; orphaned components (owner no longer exists) appear on a report.

Start with what exists

On day one, generate catalog-info.yaml for existing repositories with a script (name from the repo, owner from the repo's team or CODEOWNERS) and open pull requests to every team. A rough catalog everyone can improve beats a perfect one for ten services.

Try it

In the lab, add a Group file for team-shop and platform as a static location, then commit a catalog-info.yaml to a Gitea repo and register it (UI: Create → Register existing component). Open the entity, check its relations, and call the catalog API from the cheat sheet.

Recap

  • The catalog answers what runs, who owns it and how it connects; everything else builds on it.
  • Model Components, APIs, Resources, Systems and Domains, owned by Groups.
  • Keep catalog-info.yaml next to the code, discover it automatically, sync people from the IdP.
  • Make the catalog load-bearing (on-call, cost, access, security) so it stays accurate.

This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.