Skip to content

Backstage software catalog — entities, ownership, and discoverability

The catalog is the heart of a Backstage install. Entity model, ingestion sources, ownership graph, and the conventions we ship for clients.

Backstage’s software catalog is the data layer that everything else in the portal hangs off — TechDocs, CI/CD integrations, scorecards, the API explorer all read entities from it. Get the catalog right and the rest of Backstage becomes useful; get it wrong and it’s a directory nobody trusts. This article covers the entity model, the ingestion patterns we use, the ownership graph, and the conventions that keep a catalog accurate over time.

How to verify

curl -s http://backstage.internal/api/catalog/entities | jq 'length'
curl -s "http://backstage.internal/api/catalog/entities?filter=kind=Component" | jq '.[].metadata.name'
yarn backstage-cli repo lint     # catalog-info.yaml linting
yq '.spec.owner' catalog-info.yaml
kubectl -n backstage logs deploy/backstage --tail=100 | grep -i catalog

The first curl confirms the catalog has entities at all; the second filters to a kind. If a component you expect doesn’t appear, the entity-processor logs (in the Backstage server logs) explain why — usually a YAML validation error or a missing owner.

What’s happening

The catalog stores typed entities. The core kinds:

  • Component — a thing your team owns and runs (a microservice, a library, a frontend, a CLI). The most common kind.
  • API — an interface a Component exposes (OpenAPI, gRPC, GraphQL, AsyncAPI). Components can providesApis and consumesApis.
  • Resource — an infrastructure thing (a database, a queue, a bucket) that Components depend on.
  • System — a grouping of Components that form a logical service (e.g., “checkout-system” contains the checkout API, the payment processor, the order DB).
  • Domain — a higher-level grouping of Systems (e.g., “commerce”).
  • Group and User — the org chart; every entity has an owner, which references a Group or User.
  • Template — Scaffolder templates; used to create new entities.
  • Location — a catalog source (a URL or git path that the catalog reads from).

Ingestion: Backstage’s catalog-backend reads from configured providers. The two patterns:

  1. Location entities. A Location points at a catalog-info.yaml URL; the file declares the actual entities. This is how each repo registers its own components: a catalog-info.yaml in the repo root, registered once as a Location.
  2. Auto-discovery. Providers (GitHub, GitLab, AWS, Kubernetes) scan and create Locations or entities automatically. The GitHub provider can scan an org for any repo containing catalog-info.yaml; the Kubernetes provider can create Resource entities from kubectl get output.

The ownership graph is everything. Every entity must have a spec.owner that resolves to a Group or User. This is what powers the “who do I ask about this” view, the alert routing, the on-call schedule lookup. An owner that doesn’t exist or that points at a defunct team is worse than no owner.

The procedure

  1. Pick a single source of truth for the org chart. Backstage can read groups from LDAP, Okta, MS Graph, GitHub teams, or a static org.yaml. Pick one. Stick with it. The most common shape we ship: GitHub teams as the source, synced into Backstage on a schedule.

  2. Per-repo catalog-info.yaml — the standard pattern:

    apiVersion: backstage.io/v1alpha1
    kind: Component
    metadata:
      name: payments-api
      description: Payments processing API
      annotations:
        github.com/project-slug: acme/payments-api
        backstage.io/techdocs-ref: dir:.
        prometheus.io/rule: 'job="payments-api"'
        pagerduty.com/integration-key: ${PAGERDUTY_KEY_PAYMENTS}
      tags: [java, payments, tier-1]
    spec:
      type: service
      lifecycle: production
      owner: group:payments-team
      system: checkout
      providesApis:
        - payments-api-v2
      dependsOn:
        - resource:payments-postgres
        - resource:payments-redis

    annotations are how Backstage plugins find supplementary data — the GitHub plugin reads github.com/project-slug, the PagerDuty plugin reads pagerduty.com/integration-key. Get these right once per repo and the plugin pages fill themselves.

  3. Register the location in app-config.yaml:

    catalog:
      providers:
        github:
          providerId:
            organization: 'acme'
            catalogPath: '/catalog-info.yaml'
            filters:
              branch: 'main'
              repository: '.*'
            schedule:
              frequency: { hours: 1 }
              timeout: { minutes: 10 }

    This scans every repo in acme and registers any catalog-info.yaml it finds. New repos appear without manual onboarding.

  4. Org and users. A static org.yaml for bootstrap, then a provider for ongoing sync:

    apiVersion: backstage.io/v1alpha1
    kind: Group
    metadata: { name: payments-team, description: "Payments team" }
    spec:
      type: team
      profile: { displayName: "Payments", email: "payments@acme.example" }
      parent: engineering
      children: []
      members: ["alice", "bob"]
  5. Validation. Add a CI check that runs backstage-cli repo lint against the catalog-info.yaml in every repo; reject PRs that introduce invalid catalog files. Without this, broken catalog-info.yaml files silently disable a repo’s catalog entry.

  6. Scorecards. The Roadie or Spotify Soundcheck plugins (or hand-rolled checks) read entities and apply rules: “every Component must have an owner that is a Group not a User”, “every Component must have a TechDocs reference”, “every API entity must have a definition URL that resolves to a valid OpenAPI”. The scorecard surfaces the gaps; the catalog owner closes them.

  7. Search. The Backstage search plugin indexes the catalog plus TechDocs. With 200+ entities, search is the primary navigation — make sure it’s running and the index is fresh.

Operational notes

  • Location entities are the parent. Deleting the Location deletes everything it created. A botched provider config that emits the wrong Location URL deletes large swaths of the catalog.
  • Entity processors run in series. A slow processor (a misconfigured Kubernetes plugin hitting a dead cluster) blocks the queue. Disable problematic plugins or scope them to specific clusters.
  • metadata.namespace defaults to default. Multi-tenant catalogs use the namespace to scope visibility; if you’re going to use it, set it everywhere consistently.
  • Annotations are free-form strings. Typos in annotation keys silently disable plugins. A linter that knows the supported annotation set catches these before merge.
  • The org chart should not be hand-edited daily. Sync from a source of truth (HR system, IdP) — the catalog reflects the org, it doesn’t define it.

Common pitfalls

  • spec.owner pointing at a User instead of a Group. Person leaves the company; entity becomes orphaned. Always use Groups.
  • System entities not used. Components float without a System grouping; the “Domains and Systems” view is empty. The pattern needs adoption from day one.
  • Auto-discovery on a 5000-repo org without filters. The catalog ingestion takes forever and indexes hundreds of unwanted entries. Filter to active repos with the right convention.
  • TechDocs not registered. backstage.io/techdocs-ref: dir:. annotation missing; the Docs tab on the entity is empty.
  • Catalog DB not backed up. PostgreSQL behind Backstage holds the materialized entity graph. Losing it means re-ingesting from sources, which works but is slow and might lose annotations added in the UI.

We deploy and operate Backstage for clients building an internal developer portal, typically alongside the rest of the platform we run. The catalog conventions, the providers, the org-chart sync, the scorecard rules, and the on-call response to “catalog has gone stale” are all part of /en/services/managed-operations/. The Score (workload spec, /en/knowledge-base/score-dev-workload-spec/) and OAM (application model, /en/knowledge-base/oam-open-application-model-overview/) standards both fit naturally as workload definitions referenced from Backstage Components.