The Simplest Way to Make Backstage and CircleCI Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link backstage and circleci so teams can view build status in one portal. Developers check test runs, read build logs, and trigger new jobs right from the catalog. Without a clean setup, developers jump between tabs to find broken builds. Bringing both tools together cuts context switching and speeds up daily release work. How backstage and circleci share data and permissions Backstage acts as the central catalog for all your software services and teams. CircleCI runs the automated tests

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You link backstage and circleci so teams can view build status in one portal. Developers check test runs, read build logs, and trigger new jobs right from the catalog.

Without a clean setup, developers jump between tabs to find broken builds. Bringing both tools together cuts context switching and speeds up daily release work.

How backstage and circleci share data and permissions

Backstage acts as the central catalog for all your software services and teams. CircleCI runs the automated tests and builds whenever engineers push new code.

To link them, the portal sends API requests to the build service. An admin sets up a dedicated service token in the build tool first. The portal backend stores this token in its secret manager. When a developer opens a service page, the portal backend calls the build API. It fetches recent job runs, pass rates, and step logs for that specific repo.

Catalog files in each code repo map the service to its build project. The portal reads an annotation in the catalog file to know which project to query. User identity starts in your main login provider and flows into the portal. From there, internal role rules decide if a user can only read builds or trigger new runs.

Common failure modes and how to scope roles

Many teams make the mistake of using one personal API token for the whole portal. If that engineer leaves the company, the integration breaks right away for every team. Even worse, a personal token often carries broad write permissions across all company repos. Anyone who can trigger a portal action then inherits those wide build rights.

Shared service accounts also ruin your audit logs during a security review. Every build restart looks like it came from the same generic bot account. Security teams cannot tell which developer actually triggered a production deployment job. Unlogged queries also hide slow API calls and rate limit errors from platform admins.

End-to-End Encryption + Backstage Security Plugins: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, scope your tokens and network paths down to the bare minimum. Use project tokens with read-only rights when teams only need to check build status. If teams trigger builds from the portal, map portal groups to strict project roles. Keep the API tokens on the backend server so browser clients never hold raw keys.

Log every outbound API call with the real user email from the portal session. Set up strict network rules so only the portal backend can reach your build runners. Rotate your project keys on a fixed schedule to limit the blast radius of leaks.

Keeping build logs clean and safe for every team

Build logs often print sensitive values when a test fails or a script errors out. Developers might dump database strings or customer records into standard output by mistake. When the portal pulls those logs in, any signed-in viewer can read that output.

Platform teams should scrub sensitive patterns before logs leave the build step. Good masking rules rewrite matched emails, phone numbers, card numbers, and national IDs in results. This keeps debug output useful for developers while keeping sensitive records out of shared views.

You should also separate prod build pipelines from dev test pipelines at the project level. Give the portal read access to prod builds, but block manual job triggers there. Force production changes to flow through signed git commits and peer reviews instead.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

How does Backstage know which CircleCI project belongs to a service?

Each service has a catalog file stored in its source code repo. You add a project slug annotation to that file so the portal knows which builds to fetch.

Should the portal use a personal API token or a project token?

Use a scoped project token or a dedicated machine user with narrow rights. Personal tokens break when staff leave and often grant too much access across repos.

Can developers trigger new CircleCI builds straight from the Backstage page?

Yes, if the backend token has write rights and your portal role rules allow it. Always log the signed-in user identity whenever someone starts or restarts a build job.

The query runs. The emails stay hidden.