Build an Internal Developer Platform with Backstage: catalog, templates, GitOps wiring, production setup and the adoption work that decides success.
Ask engineers at a fast-growing company what slows them down and you rarely hear "writing code." You hear "waiting for environments," "figuring out how to deploy," and "no idea where the docs are." Those are toolchain and process problems, and platform engineering exists to solve them.
An Internal Developer Platform (IDP) is the answer: a curated, self-service layer between engineers and infrastructure, so teams can create, deploy and operate services without becoming infrastructure experts. This post shows how to build the foundation with Backstage, and what decides whether anyone uses it.
An IDP is a set of self-service tools and workflows that gives developers a "golden path" for common tasks, such as creating a service, deploying it and finding its owner. The goal is to cut waiting and decision fatigue while keeping security and consistency built in.
Without one, a new engineer asks for cluster access, waits for a ticket, hunts for the right Helm chart, finds an outdated README and asks in Slack. With one, they fill in a form, and a repository, pipeline, deployment and catalog entry appear. A flow like that can take minutes instead of days, though your actual numbers depend on how much you automate.
Treat the platform as a product with developers as customers. That means user research, a roadmap and adoption metrics, not just a pile of tools.
Backstage is an open-source developer portal framework created at Spotify and now a CNCF project. It is not a finished product. It is a plugin-based framework that you assemble and host around your own tools and workflows.
Out of the box you get:
The catalog and templates are where most teams start and where the value shows up first.
Backstage is the portal layer, and the platform underneath is a stack of tools wired together. Backstage triggers workflows, and other tools do the heavy lifting.
Keep the boundaries clear. Backstage is the front door and the map. Git holds the desired state, GitOps tools deploy it, and infrastructure tools provision it.
Scaffold an app with create-app, run it locally, and then connect it to your tools through app-config.yaml. Make sure you use a current Node.js LTS version.
npx @backstage/create-app@latestcd my-backstage-app ## start frontend and backend locally on port 3000yarn devThe local setup gives you the UI and an empty catalog. The real work is configuration. This example connects GitHub, loads a catalog location and defines a Kubernetes cluster:
integrations: github: - host: github.com token: ${GITHUB_TOKEN} catalog: locations: - type: url target: https://github.com/example-org/catalog/blob/main/all.yaml rules: - allow: [Component, API, System, Template] kubernetes: serviceLocatorMethod: type: multiTenant clusterLocatorMethods: - type: config clusters: - name: production url: https://k8s.internal.example.net authProvider: serviceAccount serviceAccountToken: ${K8S_SA_TOKEN}Prefer a GitHub App over a personal access token for production, so permissions are scoped and not tied to one person. Store all secrets in your secret manager, never in the file.
A software template is a form plus a sequence of actions that scaffolds a new service. This is a minimal template that creates a Node.js service, publishes a repository and registers it in the catalog.
apiVersion: scaffolder.backstage.io/v1beta3kind: Templatemetadata: name: nodejs-microservice title: Node.js Microservice description: Scaffold a production-ready Node.js servicespec: owner: group:platform-team type: service parameters: - title: Service details required: [name, owner, repoUrl] properties: name: title: Service name type: string owner: title: Owning team type: string ui:field: OwnerPicker repoUrl: title: Repository type: string ui:field: RepoUrlPicker ui:options: allowedHosts: [github.com] steps: - id: fetch name: Fetch skeleton action: fetch:template input: url: ./skeleton values: name: ${{ parameters.name }} owner: ${{ parameters.owner }} - id: publish name: Create repository action: publish:github input: repoUrl: ${{ parameters.repoUrl }} - id: register name: Register in catalog action: catalog:register input: repoContentsUrl: ${{ steps.publish.output.repoContentsUrl }} catalogInfoPath: /catalog-info.yamlThe fetch:template action uses Nunjucks templating. Your skeleton folder should contain the code, a pipeline definition and a catalog-info.yaml, so every new service is registered from day one.
To get the full flow above, add a step that opens a pull request against your GitOps repository, for example with the publish:github:pull-request action, so deployment manifests land in the same review process as everything else.
The catalog is built from catalog-info.yaml files that live in each repository. Each file declares what the thing is, who owns it and what it depends on, and Backstage ingests them continuously.
apiVersion: backstage.io/v1alpha1kind: Componentmetadata: name: order-service description: Handles the order lifecycle annotations: github.com/project-slug: example-org/order-service backstage.io/kubernetes-id: order-service pagerduty.com/service-id: P12345spec: type: service lifecycle: production owner: group:order-squad system: checkout dependsOn: - component:payment-service - component:inventory-serviceThe owner and dependsOn fields make the catalog valuable during incidents: you can open a service and see who owns it, what it depends on and whether those dependencies are healthy. Keep entries fresh with these habits:
Treat Backstage like any other production application: build your own image, use a real database, configure authentication and plan for upgrades. The official Helm chart deploys an image you build from your own app.
## build your own backend imageyarn install --immutableyarn tscyarn build:backenddocker image build . \ -f packages/backend/Dockerfile \ --tag registry.example.net/platform/backstage:1.0.0Configure PostgreSQL for the backend, because the default in-memory database loses the catalog on every restart:
backend: database: client: pg connection: host: ${POSTGRES_HOST} port: ${POSTGRES_PORT} user: ${POSTGRES_USER} password: ${POSTGRES_PASSWORD}Then deploy with Helm, pointing the chart at your image and values:
helm repo add backstage https://backstage.github.io/chartshelm install backstage backstage/backstage \ --namespace backstage --create-namespace \ --values values.yamlChart values change between versions, so check the chart's documentation for the current structure. Before you open the portal to everyone:
The technology is the easy part. The hard part is getting engineers to use the portal, keep entries current and stop deploying around it. Most platform teams underestimate this cultural work.
Two tactics help. First, require new services to be created through templates, so adoption is automatic for new work. Second, make the catalog the source for on-call routing and runbook links, so there is a reason to keep it accurate.
Measure what matters: time to create a first deployment, percentage of services in the catalog with an owner, template usage, and developer satisfaction. Review them quarterly and adjust the roadmap.
Options at a glance:
| Option | Best for | Limitation |
|---|---|---|
| Backstage | Large orgs, deep customization | High setup and upgrade cost |
| Hosted Backstage | Backstage without hosting | Vendor cost |
| Port, Cortex, OpsLevel | Fast time to value | Less flexible, vendor-owned |
Backstage tends to win when you have a dedicated platform team, even if it is one or two people, and enough engineers that the coordination savings matter. Smaller teams are often better served by a hosted portal or a simple, maintained service list.
References and Further Reading
- Backstage Documentation - Official setup, catalog and scaffolder guides
- CNCF Platforms White Paper - Platform engineering principles
- Backstage Plugin Directory - Community and official plugins
- Crossplane Documentation - Infrastructure provisioning layer
No. Backstage is the interface and workflow trigger. A template can open a pull request or call a pipeline, but provisioning should run in a tool built for it, such as Terraform, OpenTofu or Crossplane, so that state, drift and permissions are managed properly outside the portal.
PostgreSQL. The default create-app setup uses an in-memory SQLite database that is wiped every time the backend restarts, so the catalog disappears. Configure backend.database with client pg and credentials from secrets before any shared deployment.
Usually not without at least one engineer who can own it. As a rough rule of thumb, below a few dozen engineers the setup and upgrade cost outweighs the benefit, and a hosted portal or a well-kept service list does the job. Treat that threshold as a guide, not a rule.
Make the catalog the source for things engineers need, such as on-call routing, runbooks and dashboards, so they have a reason to maintain it. Create services only through templates that generate catalog-info.yaml, and add automated checks that flag components with no owner or no recent update.
Three things: the software catalog, one software template for your most common service type, and the Kubernetes plugin. A useful, partly filled catalog delivers more value early than a complete one that ships months later, and it gives you feedback on what to build next.
Discussion0