Backstage Developer Portal: Software Catalog, Templates and TechDocs

When we first adopted Backstage at a mid-sized SaaS company with around 180 engineers and close to 400 services, the problem wasn't tooling - it was discoverability. Onboarding a new engineer took nearly two weeks before they could confidently trace ownership of a service, find its runbook, and understand its dependencies. We had services documented in Confluence, ownership tracked in a spreadsheet, and deployment metadata scattered across GitHub and Kubernetes. Backstage didn't magically fix our platform, but it gave us a single, extensible framework to consolidate that tribal knowledge into a Software Catalog, enforce consistency through Templates, and make documentation something engineers actually maintain with TechDocs. In my experience, the value of Backstage isn't the UI itself - it's the forcing function it creates for modeling your software ecosystem properly.

Taming Service Sprawl: Making the Software Catalog Your System of Record

The Software Catalog is the core of Backstage, and if you get this wrong, everything else feels like a veneer. The catalog is not a CMDB you populate by scraping. It's an opinionated graph of entities - Components, Systems, Resources, APIs, Groups, and Users - that you declare explicitly. That declarative approach is intentional. I've found that teams who try to auto-discover everything without curation end up with a catalog full of stale, low-trust data that nobody looks at.

A healthy catalog starts with a clear ownership model. Every Component must have an owner that resolves to a Group entity, not an individual. People leave, groups persist. We mapped our existing GitHub teams and LDAP groups directly into Backstage via the GitHub and LDAP org processors, which meant ownership stayed in sync with how we already managed access. The second non-negotiable is a lifecycle field - experimental, production, deprecated - that gates visibility and sets expectations. Deprecated services still show up, but they are clearly flagged and filtered out of default search.

Structuring Domains, Systems, and Components Without Over-Modeling

Early on we made the mistake of modeling every nuance: Domains containing Product Areas containing Systems containing Components. The hierarchy became so deep that service owners didn't know where to put things. We simplified to three levels: Domain (e.g., Payments), System (e.g., Payment Processing), and Component (e.g., payment-api, payment-worker). A System groups related Components and Resources that deliver a business capability together. An API is its own entity, which lets you track consumers and providers independently.

This maps cleanly to how platform teams already think about Internal Developer Platform: Self-Service Infrastructure for Engineering Teams. Your catalog should mirror your architecture, not create a new one. If your architecture is messy, the catalog will surface that - which is uncomfortable but valuable.

Writing catalog-info.yaml Files That Survive Real-World Drift

The catalog is populated by catalog-info.yaml files, typically at the root of each repository. Keeping these files accurate is an operational problem. We lint them in CI and block merges if the file is invalid or missing required annotations.

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: payment-api
  description: Core API for processing card payments and refunds
  annotations:
    github.com/project-slug: my-org/payment-api
    backstage.io/techdocs-ref: dir:.
    backstage.io/kubernetes-id: payment-api
  tags: [payments, java, spring-boot]
  links:
    - url: https://grafana.mycompany.com/d/payment-api
      title: Grafana Dashboard
      icon: dashboard
spec:
  type: service
  lifecycle: production
  owner: group:payments-team
  system: payment-processing
  dependsOn:
    - resource:payments-db
    - resource:kafka-payments
  providesApis:
    - payments-rest-api
  consumesApis:
    - fraud-detection-api

In my experience, the most useful fields are the ones that connect to other systems: github.com/project-slug for GitHub integration, backstage.io/kubernetes-id for the Kubernetes plugin, and dependsOn relationships that power the dependency graph. We also added custom annotations for our internal tooling, like jira/project-key and pagerduty.com/service-id, which let us build a single service overview page without context switching. For validation, we use the @backstage/catalog-model package in a GitHub Action. It fails fast if someone typos a kind or forgets a required field, which saves a lot of catalog ingestion errors later.

Defining Component Metadata and Relationships That Remain Maintainable

Once you move beyond 50 components, consistency matters more than completeness. We standardized a minimal set of required metadata for every Component: name (kebab-case, DNS-compatible), owner, lifecycle, system, type, and at least one link to runbooks or dashboards. Everything else is optional but encouraged via scaffolding rather than policy.

Relationships are where the catalog actually delivers insight. A Component dependsOn a Resource, providesApis or consumesApis. An API entity itself has a definition - typically OpenAPI - which Backstage can render. This lets new engineers answer the question "What does this service call, and who calls it?" without Slack archaeology. We found that explicitly modeling Resources for shared infrastructure - like a Postgres cluster, a Kafka topic, or an S3 bucket - was critical. Without it, you get phantom dependencies that don't show up in any diagram.

To keep the catalog fresh, we enabled the scheduled GitHub discovery processor to scan our organization daily, but we disabled auto-registration. Instead, discovered repos without a catalog-info.yaml appear in a "Unregistered Entities" list that platform engineering triages weekly. It creates gentle pressure without flooding the catalog with noise. We also federate user and group data from GitHub and Azure AD every six hours, so when someone changes teams, their service ownership view updates automatically.

From Copy-Paste to Golden Paths: Building Software Templates That Engineers Trust

Templates are Backstage's implementation of Golden Paths: Reducing Cognitive Load for Development Teams. A good template does not just generate boilerplate; it encodes your organization's hard-won opinions about security, observability, and delivery. In my experience, the adoption bottleneck is not the template engine itself, but whether the paved road it creates is actually faster than copy-pasting the last service.

Our most used template creates a Spring Boot microservice with a complete delivery path: GitHub repository with branch protection, Gradle build with dependency scanning, Dockerfile based on our hardened base image, Kubernetes manifests with PodDisruptionBudgets and resource limits, and a TechDocs skeleton. The entire flow completes in about 90 seconds. If it took longer, engineers would bypass it.

Anatomy of a Production-Ready Template

Templates are defined as Template entities and use a combination of Nunjucks-style templating and a series of actions. We prefer to use Cookiecutter or Yeoman for the file generation step because it keeps the template logic testable outside Backstage, but you can also use the built-in fetch:template action.

apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
  name: spring-boot-service
  title: Spring Boot Microservice
  description: Creates a production-ready Spring Boot service with CI/CD and observability
  tags: [java, spring-boot, recommended]
spec:
  owner: group:platform-team
  type: service
  parameters:
    - title: Service Metadata
      required: [name, owner, system]
      properties:
        name:
          title: Service Name
          type: string
          pattern: ^[a-z0-9-]+$
          ui:help: Use kebab-case, e.g. payment-refund-worker
        owner:
          title: Owner
          type: string
          ui:field: OwnerPicker
          ui:options:
            catalogFilter:
              kind: [Group]
        system:
          title: System
          type: string
          ui:field: EntityPicker
          ui:options:
            catalogFilter:
              kind: [System]
        description:
          title: Description
          type: string
  steps:
    - id: fetch-base
      name: Fetch Service Skeleton
      action: fetch:cookiecutter
      input:
        url: https://github.com/my-org/service-templates
        subdirectory: java-spring-boot
        values:
          service_name: ${{ parameters.name }}
          owner: ${{ parameters.owner }}
          java_package: com.mycompany.${{ parameters.name | replace(from="-", to="") }}
    - id: publish
      name: Publish to GitHub
      action: publish:github
      input:
        allowedHosts: [github.com]
        description: ${{ parameters.description }}
        repoUrl: github.com?owner=my-org&repo=${{ parameters.name }}
        defaultBranch: main
        protectDefaultBranch: true
    - id: register
      name: Register in Catalog
      action: catalog:register
      input:
        repoContentsUrl: ${{ steps.publish.output.repoContentsUrl }}
        catalogInfoPath: /catalog-info.yaml

A few lessons from running this at scale: First, keep parameter schemas strict. A loose regex on service names will create downstream failures in Kubernetes where names must be DNS-1123 compliant. See the Kubernetes Documentation on naming conventions if you need to align Backstage validation with cluster constraints. Second, version your template repository independently from Backstage itself. We tag releases and pin templates to a SHA, so a breaking change in the skeleton doesn't break scaffolding for everyone. Third, every template should publish and register in one atomic flow. If the catalog registration fails, you end up with a repo that exists but is invisible in the portal.

Keeping Templates From Becoming Stale Forks

Templates rot. Libraries get updated, base images get patched, and security policies evolve. We treat our service-templates repo like a product: it has its own CI pipeline that nightly builds all templates, runs Trivy scans on the generated Docker images, and verifies that the generated service passes our platform checks (OPA policies for Kubernetes manifests, Checkov for Terraform). When we updated to Java 21, we updated the template once and sent automated pull requests to all services that were still on Java 17, with a link to the migration guide in TechDocs. That workflow is far more effective than a wiki page asking teams to upgrade.

Treating Docs Like Code: Implementing TechDocs Without Creating Another Wiki

TechDocs is Backstage's docs-as-code solution, built on MkDocs and Material for MkDocs. The core idea is simple: documentation lives in the same repository as the code, written in Markdown, built in CI, and rendered inside Backstage. I've found that this proximity is what actually drives adoption. When docs are in Confluence, they drift. When they are in /docs next to the service code and rendered automatically, pull requests that change behavior naturally include doc updates.

Each component references its docs via the backstage.io/techdocs-ref: dir:. annotation, which points to the directory containing mkdocs.yml. The build can run either locally or via an external builder. We use the external builder pattern with a dedicated builder image to avoid coupling Backstage to our build environments.

# mkdocs.yml at the root of your service repo
site_name: payment-api
site_description: Payment API - Developer Documentation
nav:
  - Home: index.md
  - Architecture: architecture.md
  - Runbook: runbook.md
  - API Spec: api.md
  - ADRs: adr/index.md

plugins:
  - techdocs-core

markdown_extensions:
  - pymdownx.highlight:
      anchor_linenums: true
  - pymdownx.superfences
  - admonition

# docs/index.md
# Payment API

## Ownership
* Team: Payments (Slack: #payments-team)
* On-call: PagerDuty - Payments Service
* Source: [my-org/payment-api](https://github.com/my-org/payment-api)

## Quick Start
```bash
./gradlew bootRun
curl http://localhost:8080/health
```

We enforce a lightweight docs structure via the templates: every new service gets an index.md, architecture.md with a C4 diagram, and a runbook.md that must include alert runbooks and rollback steps. The platform team doesn't review prose quality; we review whether the required files exist and whether the TechDocs build succeeds. The build step itself is a simple CI job that uses the TechDocs container to generate the static site and publish it to our S3 bucket, where Backstage reads it. For local preview, engineers run npx @techdocs/cli serve, which mirrors what the portal will render.

One operational tip: don't try to migrate all existing documentation at once. We started with a "docs debt" label in the catalog. Services without TechDocs were flagged, and we prioritized migration for Tier 1 services and anything with high onboarding traffic. Linking to external docs is supported via the links field in catalog-info.yaml, so you can gradually consolidate without breaking references.

Wiring Backstage Into Your Ecosystem: GitHub, Kubernetes, and Secrets

Backstage becomes valuable when it aggregates data from systems you already use. Out of the box, the integration is configured in app-config.yaml. In production, you should externalize secrets and not commit tokens to this file. We use the approach described in Secrets Management: HashiCorp Vault, External Secrets and SOPS to inject GitHub tokens and database credentials via External Secrets Operator.

Key integrations we found essential: the GitHub discovery and authentication provider, the Kubernetes plugin for showing pod status and logs per component, and the Lighthouse and SonarQube plugins for quality signals. The Kubernetes plugin deserves special attention - it uses the backstage.io/kubernetes-id annotation to match a Component to its workloads. You need to configure a kubernetes section with your cluster locator method, typically via a service account with read-only RBAC.

Authentication is another area where you want to get it right early. We use GitHub OAuth for login and then map the GitHub identity to catalog Groups for authorization. Backstage's permission framework is powerful but verbose; we started with a simple policy: only the platform team can create or delete Template entities, any authenticated user can scaffold, and only owners can edit their component's metadata. This prevents accidental catalog vandalism without creating a bottleneck.

Capability Backstage Self-Hosted Commercial IDP / SaaS Catalog
Software Catalog Model Fully extensible entity graph, you define kinds and relations Opinionated, often limited to services and resources
Software Templates Open scaffolder with 50+ actions, fully customizable Guided setup wizards, less flexible for org-specific pipelines
TechDocs MkDocs-based, docs live with code, self-hosted storage Integrated wiki or external doc link aggregation
Plugin Ecosystem 150+ open-source plugins, write your own in TypeScript Curated integrations, vendor roadmap dependent
Operational Cost You run Node.js backend, Postgres, search index, auth proxy Per-seat pricing, vendor manages upgrades and availability
Best Fit Platform teams wanting control and deep customization Teams needing fast value with minimal platform investment

I've seen teams try to use Backstage as a replacement for their CI/CD or observability stack. That's a misuse. Backstage is a presentation and orchestration layer. It should link to Grafana, not replace it; it should trigger GitHub Actions, not run builds itself. When we kept that boundary clear and linked Backstage to our Building Multi-Tenant Observability: Centralized Monitoring for Platform Teams dashboards, engineers actually used the portal as a launchpad instead of seeing it as yet another competing tool.

Running Backstage Reliably: Authentication, Permissions, and Day-Two Operations

Running Backstage in production is running a stateful Node.js application with a Postgres backend and a search index. The Docker Documentation patterns for multi-stage builds apply directly - we build a lean production image that contains only the compiled backend and frontend assets. The backend needs persistent storage for the catalog database and TechDocs artifacts, and it needs to scale horizontally for availability, so we run at least two replicas behind an internal ALB.

Upgrades are the most underestimated operational cost. Backstage releases monthly and frequently contains breaking changes in plugin APIs. We pin the Backstage version in package.json and upgrade on a quarterly cadence, not continuously. Before upgrading, we run the backstage-cli versions:check and test all custom plugins in a staging environment that mirrors production catalog data. I've found that skipping this step leads to a broken search index or a blank catalog page that erodes trust quickly.

Observability for Backstage itself matters. We expose Prometheus metrics from the backend, trace scaffolder runs with OpenTelemetry, and alert on catalog ingestion failures. A common failure mode is a single malformed catalog-info.yaml in a large repository scan that causes the entire ingestion to fail. We configured the catalog processor to use the orphan strategy and set catalog.processingInterval to log-and-skip rather than fail-closed, so one bad file doesn't take down the whole catalog.

Finally, measure adoption beyond page views. We track three signals: percentage of components with an owner and lifecycle, template adoption rate (services created via templates vs. manually), and TechDocs coverage for Tier 1 services. Those three metrics tell you whether Backstage is driving platform consistency or just providing a pretty service list. For a broader view on what to measure, our approach aligns with Developer Productivity Metrics: DORA, SPACE and What Actually Matters - focus on behavioral change, not vanity metrics.

Frequently Asked Questions

How do I handle catalog ownership when a team is reorganized or renamed?

Model ownership as Groups and federate them from your identity provider. When we migrated from GitHub Teams to Azure AD groups, we kept the old group entities but marked them as deprecated and added a relation to the new group. Update the owner field in catalog-info.yaml via automated pull requests rather than manual edits - we run a script that opens PRs to all affected repos when a group rename occurs. Backstage will resolve the old owner reference until you migrate, so there is no outage, but you should clean up within a sprint to avoid confusion.

Should I auto-discover all repositories or require manual registration?

Use discovery for visibility but not for auto-registration. Enable the GitHub discovery processor to find repositories and surface unregistered entities in the catalog, then let owners explicitly register by adding a catalog-info.yaml. Auto-registering everything creates a catalog full of forks, archived repos, and experiments that dilute search relevance. In my experience, a weekly triage of unregistered entities by platform engineering, plus a Slack reminder to teams with unregistered production repos, provides the right balance between coverage and quality.

What is the best way to keep Software Templates from drifting from current best practices?

Treat your templates repository as a product with its own CI pipeline. Build and test every template nightly: scaffold a test service, run its full pipeline, build its Docker image, and deploy it to a ephemeral namespace validated against your Terraform Documentation and Kubernetes policies. When you update a base image or library version, update the template first, then use a tool like Renovate or a custom script to open automated update PRs to all services generated from that template. Track template version usage via an annotation in catalog-info.yaml so you know which services are stale.

How resource-intensive is Backstage to run in production?

For a catalog of 300-500 entities and 150 users, a modest deployment is sufficient: 2 backend replicas with 1 CPU and 2GB RAM each, a managed Postgres instance (db.t3.medium or equivalent), and 10GB of storage for TechDocs and search indexes. The real cost is not infrastructure but maintenance - expect 0.5 FTE of platform engineering time for upgrades, plugin maintenance, and catalog curation. Search indexing and catalog ingestion are the most CPU-intensive operations; schedule full re-indexes during off-peak hours if you have a large catalog.

Related Articles

References & Standards: Kubernetes Documentation · Docker Documentation · Terraform Documentation